2025-09-09 4:50 PM
Is there an STMF4xx example project I can reference for using a virtual COM port to connect to FreeRTOS+CLI? I tried to do this myself by having the FreeRTOS+CLI function _write() call CDC_Transmit_FS() and by having CDC_Receive_FS() call a function that puts the received data into a circular queue, and then calls vTaskNotifyGiveFromISR() to tell the CommandConsoleTask that there is data in the queue for it to process.
I see CDC_Transmit_FS() being called, but a breakpoint in CDC_TransmitCplt_FS() never fires, and no data appears in a Tera Term window connected to the serial port labeled as STMicroelectronics STLink Virtual COM Port (COM4). Likewise, typing into the Tera Term window does not result in a breakpoint in CDC_Receive_FS() ever getting hit.
I'm sure I'm doing something fundamentally wrong, but what?
2025-09-09 9:34 PM
Tera Term can be connected to the serial port labeled as STMicroelectronics STLink Virtual COM Port. There are separate pins configured to connect using virtual com port. Tera term is connected to one of the uart configuration.
You can check using other virtual com port.
2025-09-10 3:10 PM
That much I already figured out. My question is about an example project I can use to see how the embedded side works, so that I can connect the command task to the virtual COM port.
2025-10-08 2:04 AM
Hello @jlthompson
If you still need help on this topic,
You can refer to this knowledge base article, which explains how to integrate and use the FreeRTOS™ command-line interface (CLI) library.
You can also search GitHub for existing projects on this subject.
Gyessine
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-10-08 2:20 AM
Have you seen these examples?
https://github.com/stm32-hotspot/I-CUBE-STDIO/tree/main/Sources/Firmware/Middleware/ST/STDIO