Skip to main content
Associate II
June 28, 2024
Question

Getting trouble with USART data transfer with STM32429I-EVAL1

  • June 28, 2024
  • 2 replies
  • 1446 views

Hello,

I'm trying to do USART data transferring with STM32429I-EVAL1 board.

I used example code on CubeIDE and did nothing to the code.

I connected ST-Link/V2 and USART RS-232 cable to my PC.

 

Then, I got lots of broken letters appears on terminal. (few of them are correct, but almost over 90% of letters are broken)

 

I checked baud rate, stop bits, parity bits, control flow etc. are same with the code.

I don't know how to solve it. Can anybody help me?

 

    2 replies

    mƎALLEm
    Technical Moderator
    June 28, 2024

    Hello,

    Could you please indicate  which example you are using?

    Check first your RS232 cable. It could be a bad contact.

    To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
    UnlimitAuthor
    Associate II
    July 1, 2024

    I bought RS232 cable a few days ago but how can I check its connect is right?

    And I'm using "UART printf" example for STM32429I-EVAL1.

    Tesla DeLorean
    Guru
    July 1, 2024

    You could perhaps check with a multi-meter, look at signals with an oscilloscope or a logic analyzer.

    This stuff is very hard diagnose remotely with vague and non-specific details.

    What cable, wired how? Perhaps link to page for whatever you bought.

    RS232, for sure? Your machine has a serial port? Is this a USB to Serial adapter? CMOS or RS232 Levels?

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Andrew Neil
    Super User
    June 28, 2024

    @Unlimit wrote:

    Then, I got lots of broken letters appears on terminal.


    When you get "junk" characters on a terminal, that generally means your baudrate is wrong:

    https://community.st.com/t5/stm32-mcus-wireless/uart-reception-isssue/m-p/684276/highlight/true#M19562

     


    @Unlimit wrote:

    I checked baud rate,


    How did you check it?

    See the above link for how to check for sure...

     

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    UnlimitAuthor
    Associate II
    July 1, 2024

    In the example code, baudrate is set as 9600 in default.

    I did not edit it and I cannot configure it with .ioc file, so I think it's right.

    If not, how can I check the baudrate without configuring?

    Tesla DeLorean
    Guru
    July 1, 2024

    Perhaps send a lot of 'U' characters, and inspect the signal with a scope?

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..