Thank you for your reply,
yes, I imported the project generated by Matlab into S32 Design Studio. I only used Matlab/simulink to generate the core code, and then built a new MPC5744P project in S32DS, where the underlying code and core algorithm code were performed Integrated and modified, and then used Deign Studio to burn it to the board.
I am not familiar with the built-in debugger of S32DS, and I have not used the built-in debugger of S32DS to check whether these values have my expected values.
In response to what you said "TrackSignal_Mode is declared as a floating point number in MatLAB, but it is an unsigned int type in FreeMASTER", I tried to change the data type of TrackSignal_Mode in FreeMASTER, but it did not change. The display result is still 0.
I want to know whether the model I built in simulink can be used to measure and calibrate variables, and whether to add a FreeMASTER module in simulink. I used NXP's MBD Toolbox MPC5744P before, without adding the FreeMASTER module, and successfully burned a relatively simple program built in simulink into the board through the same operation method, and can be measured and calibrated in FreeMASTER software.

Looking forward to your reply