cancel
Showing results for 
Search instead for 
Did you mean: 

how to use ' printf ' to send data with stm32l053 nucleo board?

874364169
Associate II
Posted on September 23, 2014 at 05:31

how to use ' printf ' to send data with stm32l053 nucleo board?

2 REPLIES 2
Posted on September 23, 2014 at 14:52

Was there any other detail in your message? The forum doesn't support portable devices (tablet/phone)

How you do this will depend on your tool chain, and how that retargets/semi-hosts the stdio output.

In the general sense you'd set up USART2 via PA2/PA3 and then receive the data via the VCP (Virtual Serial Port) implemented through the ST-LINK, and create a putchar() type function to get data to USART2.

[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Discovery/USART%20example%20code%20for%20Nucleo%20F401RE&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F&currentviews=335]https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2FSTM32Discovery%2FUSART%20example%20code%20for%20Nucleo%20F401RE&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F¤tviews=335
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
874364169
Associate II
Posted on September 23, 2014 at 16:02

Gùjiàn kù

Translate from: 

Firmware Library