Hello,
I am working with the NXP MCSPTE1AK144 # and a Sunrise PMSM motor, using the Hall-sensor PMSM FOC example
Software setup:
MATLAB R2025b
NXP Support Package for S32K1xx 2.2.0
NXP Model-Based Design Toolbox for S32K1xx 4.3.0
The model builds successfully and generates the .mot file. When I manually copy the .mot file to the EVB-S32K144 drive, the motor runs successfully. Using the host model, I am able to start and stop the motor and change the speed reference.
I am currently facing two issues.
Motor stops above approximately 600 rpm
The motor operates correctly at low speeds. I have tested operation from around 10 rpm and also increased the speed gradually.
When the speed is increased above approximately 600 rpm, the motor stops and D11 starts flashing red.
How can I identify the exact fault responsible for this shutdown? Which fault variable or register should I monitor?
Automatic deployment from Simulink
The Simulink model builds successfully and generates the .mot file, but the firmware is not automatically flashed to the board. Manually copying the same .mot file to the EVB-S32K144 drive works correctly.
What is the correct configuration for automatically deploying the generated code to the S32K144 through OpenSDA?
I also found an older NXP recommendation for this example using MATLAB R2021a with NXP Support Package S32K1xx 2.3.0. Would you recommend using this configuration instead of R2025b with MBDT 4.3.0?
Thank you.