Skip to main content
aybala5
Associate III
October 6, 2014
Question

STM32 sends weird characters to COM ???

  • October 6, 2014
  • 14 replies
  • 4254 views
Posted on October 06, 2014 at 17:36

Hello,

I send a char string to com port using sym32f4( with 3 pins only: GND VCC TX) and listen using ''hercules'' program finded on the net. I get weird characters, took a screanshot and uploaded as attachment. Can anyone help me, thnks.
    This topic has been closed for replies.

    14 replies

    aybala5
    aybala5Author
    Associate III
    October 6, 2014
    Posted on October 06, 2014 at 19:40

    Mr clive thanks for the code,

    I put the project under:

    \stm32f4\STM32F4xx_DSP_StdPeriph_Lib_V1.4.0\Project\F4DISCO_USART2HELLO

    Not used

    http://www.st.com/web/en/catalog/tools/PF257904

    but

    http://www.st.com/web/en/catalog/tools/PF257904

    ; and used just one pin PA2 as TX with this cable :

    http://www.aliexpress.com/item/New-USB-to-RS232-COM-Port-Serial-PDA-9Pin-DB9-Cable-Adapter/607153241.html

    Here is my hello world :

    «::.ú‹….'7½ë

    Tesla DeLorean
    Guru
    October 6, 2014
    Posted on October 06, 2014 at 19:57

    The STM32 does not output RS232 compatible voltages.

    http://www.amazon.com/PL2303HX-RS232-Cable-Module-Converter/dp/B008AGDTA4

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    October 6, 2014
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    aybala5
    aybala5Author
    Associate III
    October 6, 2014
    Posted on October 06, 2014 at 20:07

    Thats why.  I confused; so sorry.Thanks Mr Clive, appreciate your help and all your effort.