I can't seem to get printf going on my system. I've declared putchar as extern and written a routine called putchar to output to the serial port, but the application dies whenever I try to printf. I dare say I'm not doing something fairly fundamental!
Are you using the KEIL compiler or the GNU compiler? Jon
I'n using the GNU toolchain. With the tinyarm board they supply the IAR tools but there was no sample programs and I couldn't get a piece of code to run, so I tried the Keil demo that had the blinky demo. That ran first time so I've stuck with the Keil tools. I'm porting across some of my 8bit code to do a comparison in terms of performance and to get a feel for the ARM tools. Now I've overcome the printf problem, I can forge ahead! Cheers.
There is a generic GNU example that shows printf I/O in the folder: Keil\ARM\GNU\Examples\Hello. It is written for a Atmel device, but can be easily adapted to any other part. Change the following: