Skip to main content
Visitor II
November 8, 2024
Solved

Simulink External Mode Timeout when using UDP Send

  • November 8, 2024
  • 1 reply
  • 892 views

Hello,

 

I am developing an application using a Nucleo-H723ZG Board in Simulink. I want to read sensor data using I2C and then sending the information to an dSpace Control System using UDP. As I am most knowladgebale using Simulink Code Generation I chose this workflow for this application aswell.

So far I was able to read sensor data using I2C while connected with the Board through Simulink External mode using USART3 through CN1 USB PWR. When I add the UDP Send Block to my model and try using the Monitor&Tune function in Simulink 2023a I get a XCP Timeout error and I can not connect to the Nucleo Hardware. Once I uncomment the UDP Send the model compiles and connects correctly again.

I have configured the ETH using the provided tuorial

https://de.mathworks.com/help/ecoder/stmicroelectronicsstm32f4discovery/ug/ethernet-options.html

External Mode is configured to use serial interface. 

Does anyone have an idea where this sudden behaviour change my come from?

Best Regards

Martin

    This topic has been closed for replies.
    Best answer by mƎALLEm

    Hello @MartinStmmhmmr and welcome to the community,

    For any Simulink subjects please submit your request on Mathworks Community: https://www.mathworks.com/matlabcentral/content/communities.html.

    1 reply

    mƎALLEmAnswer
    Technical Moderator
    November 8, 2024

    Hello @MartinStmmhmmr and welcome to the community,

    For any Simulink subjects please submit your request on Mathworks Community: https://www.mathworks.com/matlabcentral/content/communities.html.