cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f4 and USART2 communication with PC

pgmoschetti
Associate
Posted on March 21, 2016 at 12:32

Hi,

I'm a newby in  firmware programming, therefore sorry for my simple question. I need to send some data to the PC via serial communication from a board equipped with an STM32F4. I chose to set up the communication through the USART2 interface on PINS 5 and 6. What I'm experiencing is as follows:

- after programming the board with the ST-LINK V2 going to debug mode the communication on the RS232 is ok: I can see just what I'm expecting.

- if while debugging I disconnect the ST-LINK V2, the program stop sending characters to the PC

- if I power on the board with no ST-LINK V2 connected, I receive strange characters on the PC, as if the RS232 communication format were not set correctly.

Any suggestion?

Thanks in advance, regards

#stm32 #stm32f4 #usart
1 REPLY 1
Posted on March 21, 2016 at 13:28

Check your grounds.

JW