Opinions on lack of debugging tools?
Martin Hebel
Posts: 1,239
I'm curious about something. There's some pretty strong coverage here by embedded developers with strong backgrounds on this board. How much of a hinderance has a lack of simulation/emulation tools been in your development with the propeller? Does the simplicity of the Propeller reduce the need for high level debugging tools? Or is it more a case of simply getting by since none exist? I tend to feel the lack of internal hardware greatly simplifies the programming task. It was easier for me to write a serial routine than pouring through pages of reference material in how to configure a typical controller and scratch my head when things didn't work right. And the ability to generate signals in one Cog to test another is really great!
Thanks in advance for your feedback,
Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
Personal Links with plenty of BASIC Stamp info
StampPlot - Graphical Data Acquisition and Control
AppBee - XBee ZigBee / IEEE 802.15.4 Adapters & Devices
Thanks in advance for your feedback,
Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
Personal Links with plenty of BASIC Stamp info
StampPlot - Graphical Data Acquisition and Control
AppBee - XBee ZigBee / IEEE 802.15.4 Adapters & Devices
Comments
I have used one cog as an minimal emulator for a Stamp coprocessor (that was not available) with its own separate display.
Most of the debugging problems that I have had (and continue to have) that are not amenable to debugging with the Propeller itself have involved subtle timing problems that probably need a combination of external logic analyzer and oscilloscope to isolate and examine properly.
-Phil
I expect to use the TV output for initial debugging; later maybe a two wire (I2C) LCD - however the limited size of the code that can run in a cog helps keep bugs to a minimum.
Other than that, I am eager to start experimenting with my propellers.. they should arrive tomorrow [noparse]:)[/noparse]
That said, I also used to use an LCD, but now that I can send my debug data to a TV... oh biy, I ain't ever goin' back Now, if only the TV would do more than 40char's wide (or I could get hold of a decent FP VGA monitor...)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
Code too fast? Add some wait statements and watch some LED's toggle on and off.
Wondering how fast your loop runs in ASM? Toggle a PIN from Hi to Low every time your code cylces.
I never used emulators for coding anything before so I can't really miss them.
When I emulate my code, I run it through my head with the datasheet infront of me.
Guess I'm just low-tech or very retro.
I use an on-board seven-segment LED for low-level IO debugging, and a serial LCD for higher level, and haven't felt the need for any more than those.
But on the other hand, even though I'd never used the sx debugger, when SxSim came along I found uses for it that I'd never imagined. If somebody makes a Propeller simulator, it could well have the same effect.
David