I am debugging some interrupt service routines (ISR) and need to print out the contents of a few registers whenever I enter the ISR. The firmware is in C.
There is an interrupt raised every few milli-seconds and if I printf() to the console, it is too slow and I end up missing interrupts. What is the fastest way to print something - either to a buffer or file or console- and any tips to do that?
[Additional info: I need to do some other things in the ISR -such as interrupt mask and compare, reset interrupts, enable interrupts and finally print out some registers.]
Thanks
printfwill be the console interaction, you're probably better off just storing the register values somewhere, and then doing the text formatting outside your ISR. - Oliver Charlesworth