Skip to main content
Pranay Dhuri
Associate III
April 24, 2017
Question

STM32Cube_FW_F2_V1.4.0\Projects\STM32F207ZG-Nucleo\Examples\UART\UART_Printf , printing garbage data over the terminal

  • April 24, 2017
  • 1 reply
  • 1073 views
Posted on April 24, 2017 at 09:38

Hi,

I am flashing the UART sample code given in STM32CubeF2 in my STM32F207ZG nucleo board,

It is compiling and flashing well but when I see the output on terminal (Tera term) it is printing garbage data (few characters are matching).

I have seen the baude rate in example is 9600 so a have set the same on tera term as well.

i should get o/p as:-

 UART Printf Example: retarget the C library printf function to the UART

** Test finished successfully. ** 

And what I am getting is-

Õ�RT �òénôæ Eøampìåº òåôaògåô ôhå C ìébòaòy pòénôæ æunãôéïn ôï ôhå Õ�RT

** Tåsô æénéshåd suããåssæuììy® **
    This topic has been closed for replies.

    1 reply

    Technical Moderator
    April 24, 2017
    Posted on April 24, 2017 at 11:19

    Hi,

    Please provide more details about y

    our Hyperterminal configuration: 

    data length

    parity,

    ..

    What's your Data value and

    HSE crystal (Does your board have 

    HSE crystal 25 MHz 

    ) ?

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    Pranay Dhuri
    Associate III
    April 24, 2017
    Posted on April 24, 2017 at 12:21

    thanks Imen.., as you said problem was with hyper terminal configuration.

    My tera term configuration was as-

    data - 8 bit

    parity - none

    It should be -

    data- 7 bit

    parity - odd

    Gabriel Staples
    Associate
    March 22, 2018
    Posted on March 22, 2018 at 23:08

    Perfect! Thanks! I had the same problem with the example for the STM32F103RB_Nucleo board. Fixed now!