Skip to main content
874364169
Associate
September 23, 2014
Question

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

  • September 23, 2014
  • 2 replies
  • 748 views
Posted on September 23, 2014 at 05:31

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

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    September 23, 2014
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    874364169
    874364169Author
    Associate
    September 23, 2014
    Posted on September 23, 2014 at 16:02

    Gùjiàn kù

    Translate from: 

    Firmware Library