Skip to main content
Visitor II
November 25, 2024
Solved

How to redirect printf to a UART on stm32f429i-disc1

  • November 25, 2024
  • 3 replies
  • 2044 views

how to use printf in stm32f429i-disc1?

    This topic has been closed for replies.
    Best answer by mƎALLEm

    + You asked the same question in this thread: https://community.st.com/t5/stm32-mcus-embedded-software/how-to-use-printf/td-p/733254

    And I provided you a project on which printf is used on stm32f429i board.

    So the question is, are you reading our posts/comments?

    3 replies

    Super User
    November 25, 2024

    You posted this as a reply to the Knowledgebase article:

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

    Have you actually read that article?

    As noted here:

    The first thing you need to do is to get basic, direct UART output working:

    https://wiki.st.com/stm32mcu/wiki/Getting_started_with_UART

     

    You need to get that done before you start thinking about redirecting printf to it!

    See also:

    https://community.st.com/t5/stm32-mcus-embedded-software/how-to-redirect-the-printf-function-to-a-uart-for-debug-messages/m-p/740284/highlight/true#M56711

    mƎALLEmAnswer
    Technical Moderator
    November 25, 2024

    + You asked the same question in this thread: https://community.st.com/t5/stm32-mcus-embedded-software/how-to-use-printf/td-p/733254

    And I provided you a project on which printf is used on stm32f429i board.

    So the question is, are you reading our posts/comments?

    Super User
    November 25, 2024

    @mƎALLEm wrote:

    I provided you a project on which printf is used on stm32f429i board.


    @syedhashmiraza you even marked that as The Solution!

     

    And that thread has already covered the importance of getting basic, direct UART output working first.