Hi All,
Having just written the core of my project, I'm moving into the debugging phase ...
The first thing that struck me is how "old" this approach is with Unit testing and all of the JTAG like functionality that just isn't there in Mbed.
So I have few "shoot the breeze" ideas:
1) Using the "Magic" chip to support Hardware debugging
I don't know how this chip is entwined into the "main" LPC but would it be possible (even with a hardware spin) to have this chip support hardware debugging such that it generates debug to the serial port or dumps a file to the flash or some other functionality that allows developers, at a hardware level get amongst the code?
The ability to configure a breakpoint that sends the value of various variables would be awesome.....
2) Enable Unit testing
In my "work life" unit testing is a core part of development - in most projects, the unit tests are actually coded before the code gets written. Could we have some sort of framework for this built into the IDE? I understand that this would be tough to scale, but the code doesn't really have to be compilied and run on an ARM - you could compile to say Intel and farm the execution out to a bunch of VM's
3) Provide a debug "channel"
The current "printf" is rather rudimentry, what about a second (eg stddbg) stream that wrote to a file on the flash. Preferrably without getting mangled by interrupts (which kinda links to item 1 above)
Lastly, I've tried to used the DBG(...) macro provided in the NetServices code but it gets stuck. Would I be right to assume that the vprintf() that it uses isn't as "clean" as the printf() recommended by MBed ?
Cheers,
Anthony
Hi All,
Having just written the core of my project, I'm moving into the debugging phase ... The first thing that struck me is how "old" this approach is with Unit testing and all of the JTAG like functionality that just isn't there in Mbed.
So I have few "shoot the breeze" ideas:
1) Using the "Magic" chip to support Hardware debugging I don't know how this chip is entwined into the "main" LPC but would it be possible (even with a hardware spin) to have this chip support hardware debugging such that it generates debug to the serial port or dumps a file to the flash or some other functionality that allows developers, at a hardware level get amongst the code? The ability to configure a breakpoint that sends the value of various variables would be awesome.....
2) Enable Unit testing In my "work life" unit testing is a core part of development - in most projects, the unit tests are actually coded before the code gets written. Could we have some sort of framework for this built into the IDE? I understand that this would be tough to scale, but the code doesn't really have to be compilied and run on an ARM - you could compile to say Intel and farm the execution out to a bunch of VM's
3) Provide a debug "channel" The current "printf" is rather rudimentry, what about a second (eg stddbg) stream that wrote to a file on the flash. Preferrably without getting mangled by interrupts (which kinda links to item 1 above)
Lastly, I've tried to used the DBG(...) macro provided in the NetServices code but it gets stuck. Would I be right to assume that the vprintf() that it uses isn't as "clean" as the printf() recommended by MBed ?
Cheers,
Anthony