Skip to main content
Visitor II
September 27, 2025
Solved

STM32 Nucleo-F439ZI Serial Communication via Simulink Not Working

  • September 27, 2025
  • 1 reply
  • 645 views

Hi all,

I'm working with a STM32 Nucleo-F439ZI board and using MATLAB Simulink (Embedded Coder + STM32 support package) to generate code and deploy to the target. I’m trying to set up serial communication (USART) between the STM32 Nucleo-F439ZI and my PC using MATLAB R2025a + Simulink + Embedded Coder. I am using the onboard ST-Link virtual COM port via USB.

I’ve tried using the Serial Transmit and Serial Receive blocks in Simulink, mapped to USART3. However: No data is being received on the PC using a terminal (TeraTerm, PuTTY). I have also switched to other UARTs like USART2. Still it is not working.

Are there known issues or required initialization steps when using Serial blocks in Simulink with STM32 targets?Any working example models or documentation for basic serial I/O using Simulink and STM32 boards?

Thanks in advance for any help or pointers!

Best answer by mƎALLEm

Hello,

For Matlab Simulink environement, you need to ask your question in Mathworks forums. https://www.mathworks.com/matlabcentral/discussions/thingspeak

1 reply

mƎALLEm
mƎALLEmBest answer
Technical Moderator
October 15, 2025

Hello,

For Matlab Simulink environement, you need to ask your question in Mathworks forums. https://www.mathworks.com/matlabcentral/discussions/thingspeak

"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."