cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 Nucleo-F439ZI Serial Communication via Simulink Not Working

Madhuvanti
Associate

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!

1 ACCEPTED SOLUTION

Accepted Solutions
mƎALLEm
ST Employee

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.

View solution in original post

1 REPLY 1
mƎALLEm
ST Employee

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.