Hello,
I'm using a stm32-discovery board and got the Blinky project working using MDK 4.70 without much hassle. Now I'd like to get printf() working on one of the 3 USARTs (don't care which one). However, when I include stdio.h and add a printf("Hello World!\n") statement in my main function, the application will hang before entering main(). The uC has got 128KiB Flash and 8KiB RAM, should be enough for printf() support.
Questions: - Is there an easy way (for example through project configuration or header file configuration) to get the C lib using USART1 for serial I/O? - Maybe even more important, where is the documentation located that would describe how to get printf() working?
I've glanced over some HTML pages on the Keil Website that describe how to re-implement low-level functions or system I/O functions, but that seems a bit an overshoot to me. I'd suspect (maybe I am wrong) that for a standard use case (9600/1/1) on the first USART there must be some default configurations ready.
Glad for any help.
Kind regards, Andy