UDS Stack to Simulink Environment for S32K3 Application

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UDS Stack to Simulink Environment for S32K3 Application

364 Views
noobsplzwin
Contributor III

Hello NXP friends,

I am currently working on a project that involves implementing various UDS (Unified Diagnostic Services) functions, such as diagnostic session control, ECU reset, DTC control, and reading in a MATLAB/Simulink environment, along with the S32k3 MBD toolbox.

Previously, we have successfully used the UDS unified bootloader for our S32K3 application, which includes a comprehensive UDS CAN TP stack. Given our new requirements, I am considering migrating this UDS stack to the Simulink environment using a code block.

  1. Is it feasible to migrate the UDS stack from the UDS unified bootloader to the Simulink environment using a code block? If so, what are the recommended steps for this process?
  2. Is there any chance there are specific tools or libraries provided by NXP that facilitate the implementation of UDS in the Model-Based Design Toolbox (MBDT) for Simulink?

I appreciate any guidance or suggestions.

Best Regards,
Connor

0 Kudos
Reply
2 Replies

292 Views
Irina_Costachescu
NXP Employee
NXP Employee
Hello @noobsplzwin
 
As MBDT does not provide support for UDS, could you please share more details on your use case with us? We would be interested in the following:
  • UDS software version that you have used
  • targeted MCU from the S32K3 family
  • functionalities you would like to have available inside your Simulink model
Based on this information, we could analyze what would be the best option for you to approach such scenario.
 
Thank you,
Irina
0 Kudos
Reply

260 Views
noobsplzwin
Contributor III

Hello Irina,

Thank you for your response.

  1. We are developing a suspension and an ESC module using our ECU with the MBD toolbox, which requires ASIL B and ASIL D, respectively. UDS is a significant part of our project, especially ECU reset and DTC-related services.

  2. The chipset we are using is the S32K344 257-pin one.

  3. The services we are interested in include:

    • 0x10 - Diagnostic Session Control
    • 0x11 - ECU Reset
    • 0x22 - Read Data By Identifier
    • 0x31 - Routine Control
    • 0x14, 0x19, 0x85 - DTC related services

Based on this information, please guide the best approach for implementing these services in the Simulink environment? Any specific tools or libraries from NXP that could facilitate this would be highly appreciated.

Thank you,
Connor

0 Kudos
Reply