This is probably a very silly question, but I have been unable to figure it out.
I am using the ARM7_AT91SAM7X256_Eclipse demo and I want to use simple printf statements to help me debug my program. How can I use the printf function it to write to one of the serial ports? Must I write my own implantation of putchar() etc to implement this functionality, or has this low level stuff been included with the OS?
This worked for me, but it was compiled using the latest Keil toolchain. I’m not sure if it will work with the Eclipse demo, but hopefully this points you in the right direction.
For gcc you need to modify syscalls.c file and call your serial write/send routine there. I guess
you know this already
Another possibility is to use sprintf instead printf in your debug macros. Then you can send
that buffer via your serial,usb,ethernet,etc “send” functions, at least this is what I’m doing
now. Just in case…