Skip to main content
Associate
May 3, 2024
Solved

Serial communication between linux host and target

  • May 3, 2024
  • 2 replies
  • 1628 views

Hi,

 

"I'm using an STM32MP157F-DK2. I'm struggling with the serial connection between my Linux host and my target board (STM32MP157). I'm using the command 'minicom -D /dev/ttyACM0', but I've been waiting for more than 2 hours for the connection to be established, yet it's still not connected.

What can I do to connect to the target device?"

Best answer by Nathan_Xi

Hi @medex , and welcome to the community!

To connect your device, it's better to use PuTTY, either in ssh or serial. However, the serial connection is the stabler of the two.

Download PuTTY, and connect the ST-LINK port to the USB port of your PC. Find the right serial port, and set the speed to 115200. Finally, click on "Open".

You'll then make a stable connection to your Discovery board.

If this solves your question, it'll be nice of you to click on "Accept as solution".

Good luck!

Nathan Xi

2 replies

Nathan_Xi
Nathan_XiBest answer
Associate III
May 3, 2024

Hi @medex , and welcome to the community!

To connect your device, it's better to use PuTTY, either in ssh or serial. However, the serial connection is the stabler of the two.

Download PuTTY, and connect the ST-LINK port to the USB port of your PC. Find the right serial port, and set the speed to 115200. Finally, click on "Open".

You'll then make a stable connection to your Discovery board.

If this solves your question, it'll be nice of you to click on "Accept as solution".

Good luck!

Nathan Xi

medexAuthor
Associate
June 20, 2024

Thank you for your prompt and helpful response; it resolved the issue perfectly. Your assistance is greatly appreciated.