cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 sends weird characters to COM ???

aybala5
Associate II
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.
14 REPLIES 14
Posted on October 06, 2014 at 19:23

Is your example codes for stm32f4 Discv. Board ?

It says so doesn't it? Assumes

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

is being used, and you have a suitable serial connection wired up.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
aybala5
Associate II
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½ë

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
Up vote any posts that you find helpful, it shows what's working..
Posted on October 06, 2014 at 20:03

http://www.maximintegrated.com/en/products/interface/transceivers/MAX3232.html

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
aybala5
Associate II
Posted on October 06, 2014 at 20:07

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