Re: Debugging: Am I a dreamer. . . ?



In message <JYp7F0WlGlHP@xxxxxxxxxxxxxxxxxxxxxxxx>, Simon Clubley <clubley@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> writes
In article <X0BDLJNJEFGIFAL8@xxxxxxxxxxxxxxxxxxxx>, Chris H <chris@xxxxxxxxxxxx> writes:
In message <48184695$0$23852$8404b019@xxxxxxxxxxxxxxx>, David Brown
<david@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> writes

What's wrong with debugging using printf? I don't mean specifically
"printf", which you should normally avoid in a small embedded system,

Well you have answered the question.

but the general idea of putting out extra information while the program
runs is a very useful debugging technique.

Yes but not the same as using printf.


Are you objecting to the use of the C function printf() within a embedded
environment for debugging or are you objecting to the use of serial port
output as a debugging tool ?

Printf mainly.

The serial port is used by various debug systems. Monitors and some RTOS.

In AVR land, I don't use printf as it's bloated (by embedded standards),
Exactly.

but I do have my own interrupt based UART I/O routines that I use for
normal communication with other serial devices as well as debugging.

The routines implement a tty for the hardware UART as well as a Tx-only
software UART for debugging output. As both UART's are interrupt based,
and the output can be optionally buffered in an application specified
buffer, I see very little overhead in using the software UART for
outputting debug information.

Fair enough. I assume this code is shipped in the release?

Where you need to ship release, not debug, code you can't beat an ICE for full speed non intrusive debugging. They have many features you just can't do with a serial port.

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/



.



Relevant Pages

  • Re: .NET Micro Framework
    ... Angel monitor had when debugging over a serial port. ... illusion of being able to change tools providers even if in practice it's ... the .NET stuff is essentially single source single toolchain. ...
    (comp.arch.embedded)
  • Re: kernel debugging problem
    ... to the serial port. ... that support for debugging it is limited... ... >> heard of any way to get "hardware assistance" but I'll ask around just ... >> Windows Embedded FAQ ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Using Forth at work
    ... It will have a serial port to talk to the outside world and a few accessories such as a keypad, an LCD and a second serial port to connect to a GPS receiver. ... But our software department is separate from ... own debugging code he was happy to oblige since that reduces his part ... it is in my bid and has ...
    (comp.lang.forth)
  • Re: Debugging: Am I a dreamer. . . ?
    ... talking about jtag debugging, single wire debugging on many micros such ... Need to learn how to apply control theory in your embedded system? ... "Applied Control Theory for Embedded Systems" by Tim Wescott ...
    (comp.arch.embedded)
  • Re: Debugging Bootable CD.
    ... WinDbg to do boot-time debugging of VMWare virtual machines running Windows. ... you use a named pipe to simulate a serial port that WinDbg on the ...
    (microsoft.public.win32.programmer.kernel)