Skip to main content
Associate
June 27, 2025
Question

STEVAL-CTM012V1A USART CONNECTION ISSUE

  • June 27, 2025
  • 3 replies
  • 551 views

Hi ,

I am using multiple ST Evaluation Boards and all worked well . However , in one of the board i am facing issue of UART connection . Board is ST

IC5151_0-1751010555500.png

 

EVAL-CTM012V1A . STMCSDK is 6.3.2, Keil u vision 5 , STM32cube Mx 6.11.1 . Baud rate tried :- 9600,115200,19200,1843200 . . However board is running fine in debug mode . Please help me in solving this issue

3 replies

cedric H
Technical Moderator
June 27, 2025

Hello @IC5151 

What do you mean by :"However board is running fine in debug mode"

Are you referring to compiler optimization?

Regards

Cedric

 

IC5151Author
Associate
July 3, 2025

Hi Cedric ,

Debug mode means running fine with IDE .

Got this issue rectified as on board Tx and Rx labelled in reverse. 

 

When i connected Tx of USB to ttl to TX of board and Rx to RX of board , connection build .

 

Thanks for your support and reply.

 

IC5151_0-1751523403657.png

 

cedric H
Technical Moderator
July 3, 2025

Hi

When i connected Tx of USB to ttl to TX of board and Rx to RX of board , connection build .

Does it mean that your problem is solved and you can connect the MC Pilot to your board ?

Regards

Cedric

IC5151Author
Associate
July 3, 2025

Yes its solved .

But one more issue occurs  that is connection lost when motor runs . That may be due to interference of magnetic field when motor start running  . If you have any idea to resolve this , it would be helpful for me . Please share .

cedric H
Technical Moderator
July 3, 2025

Hi

The only idea is to configure the UART RX pin with internal pull-up, it could help but it is not guarantee. reducing the baudrate will make the data wider and could also help.

Regards

Cedric

 

IC5151Author
Associate
July 29, 2025

i tried reducing the baud rate still it didnt help . 

GMA
Technical Moderator
July 29, 2025

Hello @IC5151,

Decreasing PWM frequency:

GMA_0-1753773701185.png

 



If you agree with the answer, please accept it by clicking on 'Accept as solution'.Best regards.GMA