by niccl · 11y ago · 0 comments
There the debugging is toggling a port pin and examining with an oscilloscope. I typically toggle it different numbers of times at different places in the code to see where I've got to.
Even if you don't have a uart, you can write a little proc to bit-bang a pin.
#define debugVar ((uint32_t *) 0x10007000)
*debugVar = 1;
*debugVar = 2;
*debugVar = 0xdeadcafe;[1] http://www.sparetimelabs.com/tinyprintf/tinyprintf.php [2] https://github.com/cjlano/tinyprintf (32bit version)