2013-05-15 10:49 PM
How can i use printf() with usart, if i want to dump the values on serial window after reading the register and printing it's value.
#rtfm #stm32l #usart #usart #discovery2013-05-15 10:58 PM
2013-05-15 11:00 PM
2013-05-15 11:43 PM
You need to consult the documentation for the particular toolset that you're using - that will tell you how it expects you to customise the printf, etc, support to work with the particular interface(s) that you require...
Keil call this ''Retargetting''...2013-05-15 11:52 PM
yes, i am using keil and i had done the retargeting using retarget.c , it is compiling
but can't see the output on serial window or i don't know how to use it.2013-05-16 04:39 AM
Retargeting Keil's output to a USART is pretty easy. I'd use a terminal app like RealTerm or TeraTerm.
Example of USART2 on a STM32F4-Discoveryhttps://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/DispForm.aspx?ID=2606