stm32f103 usart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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 #discovery- Labels:
-
UART-USART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-05-15 10:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-05-15 11:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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''...A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-05-16 4: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
Up vote any posts that you find helpful, it shows what's working..
