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



Tomás Ó hÉilidhe <toe@xxxxxxxxxxx> writes:

I've been programming in C for the best part of a decade now but it's
only within the last year that I've really started doing embedded
systems programming.

When I did C programming for a personal computer, I commonly debugged
my code simply by putting in printf statements around the place to
check variable values, and also by using the instrument that lets you
check the values of variables at runtime when you're stepping through
the code.


If you really programming in C for years, you know that using printf
or debugger to remove bugs, only gives the design more bugs. Embedded
solutions stay away bugs by careful design (in both IC/HW/BSP/SW).

Anyway, when I was doing my embedded systems project this year for
college, I was kind of in the dark when my board's program started to
malfunction. If I'd been using a PC, I would have used the debugger to
single-step through code to check variables' values. What I eventually
did was take the offending code and move it across to a PC, and then I
used the PC to debug it.

Anyway, here's the dream I had in my head, which may or may not be a
pipe dream:
You know the PIC16F684 chip that costs less than a dollar, well
what if they brought out the debug version of it (that costs maybe 20
dollars). The debug version would fit perfectly into the normal chip
slot, except that it would have some sort of socket on the top of it
for hooking it to a PC for doing stuff like printf's, and also maybe
for running a full debugger that will let you check variables' values?
That means the debugger version has a FSM running to implement a SW
debugger! A 20b dollars's NRE cost may give you the solution.
You need a SW stub, or an ICE stub.
.



Relevant Pages

  • Re: Teaching Assembly Language Programming
    ... And, as I stated, real programmers don't use a debugger at all. ... whereas he does not respond to Rod Pemberton because Rod Pemberton ... I had intended to start a programming ... with you, but my wife, who is a university teacher, in psycho ...
    (alt.lang.asm)
  • Re: Debugging: Am I a dreamer. . . ?
    ... When I did C programming for a personal computer, ... If I'd been using a PC, I would have used the debugger to ... used the PC to debug it. ... You know the PIC16F684 chip that costs less than a dollar, ...
    (comp.arch.embedded)
  • Re: Help me about this question.
    ... documented Intel manual and not in their ability to solve programming ... advantages of the C and Pascal calling conventions. ... I had to use the debugger to follow the data ... Or that you are solving it again, in a diffrent way, under a diffrent sets of environment, with surrounding code that has a set of completely diffrent properties that the last time you solved a similar problem. ...
    (alt.lang.asm)
  • Re: Annoying Error with Salford FTN95 Supplied Debugger Plato3
    ... absence and the compiler I am using is Salford's FTN95. ... There is a debugger that comes with this called Plato3, ... honest I am a bit unused to debuggers as back when I was programming I ... EVERY line I try to set a breakpoint on, ...
    (comp.lang.fortran)
  • Re: What is a stack frame?
    ... this group claim that a good C programmer needs no debugger. ... structured code bases for which you are almost solely responsible for. ... mixture of C and C++ programming (yes, I know many here have longer ... Emacs is falling behind the curve unfortunately. ...
    (comp.lang.c)