cancel
Showing results for 
Search instead for 
Did you mean: 

Bidirectional Serial Communication with ST-Link using FreeRTOS on NUCLEO Boards

Gretchev
Visitor

The integrated ST-Link debugger/programmer on STMicroelectronics NUCLEO boards is widely appreciated for its ability to output messages to a serial port, enabling easy debugging and communication with host PCs. However, setting up the board to not only send but also receive commands from PC-based applications such as Tera Term requires additional programming effort. This guide will walk you through the steps to implement bidirectional serial communications, allowing your NUCLEO board to interact dynamically with your computer.

3 REPLIES 3
Andrew Neil
Super User

@Gretchev wrote:

setting up the board to not only send but also receive commands from PC-based applications such as Tera Term requires additional programming effort.


No it doesn't.

Nucleo boards come out-of-the box with connections fully-wired for full-duplex comms.

There is no more setup for RX than for TX.

 

The Guide focusses on setting up FreeRTOS - which is, of course, a lot more work ...

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Thanks for pointing this out, Andrew. I searched all over for a simpler solution and found none. My work with CAN FD always included FreeRTOS, so this was a natural fit.

I've edited the title to make that clear.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.