MCSPTE1AK144 – Motor Faults Immediately After Starting MATLAB Host Model

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

MCSPTE1AK144 – Motor Faults Immediately After Starting MATLAB Host Model

113 Views
Thishal
Contributor I

I am facing an issue while controlling the MCSPTE1AK144 kit using the MATLAB/Simulink open-loop and closed loop examples available.

The target model builds and the generated file can be flashed to the S32K144 successfully. MATLAB also detects the OpenSDA CDC serial port and the host model is able to establish communication.

However, whenever I start the host model and switch the motor ON, the motor shaft either twitches briefly or does not run, and the D11 red LED immediately turns ON/flashes, indicating a fault. The motor then stops responding.

Basic board communication has been verified separately using the LPUART Hello World example, which builds, flashes, and communicates successfully through the OpenSDA serial port.

Could you please advise what could cause the motor-control application to enter a fault immediately after starting control from the MATLAB host model, and which fault/status variables should be checked to identify the root cause?

Hardware: MCSPTE1AK144 (S32K144-EVB + DEVKIT-MOTORGD)
Motor: Sunrise 42BLY3A78-24110
MATLAB/Simulink with NXP MBDT

Thanks.

Labels (1)
0 Kudos
Reply
0 Replies
%3CLINGO-SUB%20id%3D%22lingo-sub-2418418%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMCSPTE1AK144%20%E2%80%93%20Motor%20Faults%20Immediately%20After%20Starting%20MATLAB%20Host%20Model%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2418418%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EI%20am%20facing%20an%20issue%20while%20controlling%20the%20MCSPTE1AK144%20kit%20using%20the%20MATLAB%2FSimulink%20open-loop%20and%20closed%20loop%20examples%20available.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThe%20target%20model%20builds%20and%20the%20generated%20%3C%2FSPAN%3E%3CSPAN%3Efile%20can%20be%20flashed%20to%20the%20S32K144%20successfully.%20MATLAB%20also%20detects%20the%20OpenSDA%20CDC%20serial%20port%20and%20the%20host%20model%20is%20able%20to%20establish%20communication.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EHowever%2C%20whenever%20I%20start%20the%20host%20model%20and%20switch%20the%20motor%20ON%2C%20the%20motor%20shaft%20either%20twitches%20briefly%20or%20does%20not%20run%2C%20and%20the%20D11%20red%20LED%20immediately%20turns%20ON%2Fflashes%2C%20indicating%20a%20fault.%20The%20motor%20then%20stops%20responding.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EBasic%20board%20communication%20has%20been%20verified%20separately%20using%20the%20LPUART%20Hello%20World%20example%2C%20which%20builds%2C%20flashes%2C%20and%20communicates%20successfully%20through%20the%20OpenSDA%20serial%20port.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ECould%20you%20please%20advise%20what%20could%20cause%20the%20motor-control%20application%20to%20enter%20a%20fault%20immediately%20after%20starting%20control%20from%20the%20MATLAB%20host%20model%2C%20and%20which%20fault%2Fstatus%20variables%20should%20be%20checked%20to%20identify%20the%20root%20cause%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EHardware%3A%20MCSPTE1AK144%20(S32K144-EVB%20%2B%20DEVKIT-MOTORGD)%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EMotor%3A%20Sunrise%2042BLY3A78-24110%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EMATLAB%2FSimulink%20with%20NXP%20MBDT%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2418418%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EHotFix%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E