cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 Nucleo-F439ZI Serial Communication via Simulink Not Working

Madhuvanti
Visitor

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!

0 REPLIES 0