Skip to main content
Visitor II
October 28, 2024
Solved

How to use printf in stm32f429i-disc2

  • October 28, 2024
  • 3 replies
  • 898 views

Hello,

How to use printf in stm32f429i-disc2 board and my MCU is stm32f103cbt6

    This topic has been closed for replies.
    Best answer by Andrew Neil

    Before getting into printf, do you have the basic HAL UART (or bare-metal) comms working?

    printf relies upon that, so you need to have that working first:

    https://community.st.com/t5/stm32-mcus-embedded-software/how-to-use-printf/m-p/733964/highlight/true#M56212

     

    Then read this Knowledge base article:

    https://community.st.com/t5/stm32-mcus/how-to-redirect-the-printf-function-to-a-uart-for-debug-messages/ta-p/49865

     

    And here's a 3rd-party article on the same:

    https://shawnhymel.com/1873/ 

     

    3 replies

    Super User
    October 28, 2024

    Before getting into printf, do you have the basic HAL UART (or bare-metal) comms working?

    printf relies upon that, so you need to have that working first:

    https://community.st.com/t5/stm32-mcus-embedded-software/how-to-use-printf/m-p/733964/highlight/true#M56212

     

    Then read this Knowledge base article:

    https://community.st.com/t5/stm32-mcus/how-to-redirect-the-printf-function-to-a-uart-for-debug-messages/ta-p/49865

     

    And here's a 3rd-party article on the same:

    https://shawnhymel.com/1873/ 

     

    Visitor II
    October 28, 2024

    You can refer to the web for that. 
    I hope it will be helpful.

    Cheers :)

    Technical Moderator
    October 28, 2024

    Hello,

    Same thread as https://community.st.com/t5/stm32-mcus-embedded-software/how-to-use-printf/m-p/736424.

    It's the same content but not the same user!