Hello Fanqi,
Thank you for the details provided above, they helped me understand better your issue,
As a starting point, I recommend using the following software:
Following the described workflows above, all should be fine, I have the same setup on my end, and tested it fine.
- Workflow 1 - Run 3-Phase PMSM in Open-Loop Control and Calibrate ADC Offset.
- Workflow 2 - Calibrate Hall Sensor Offset for PMSM Motor.
- Workflow 3 - Field-Oriented Control of PMSM Using Hall Sensor.
Workflow 2
From all of the above I find the workflow 2 very important since this will impact the Speed control of the Motor.
In my case, I had to change two motor phases, in order to change the rotation direction for the calibration:

Then I have added this value into the mcb_pmsm_foc_hall_MCSPTE1AK144_data.m script:

Then I save and run the mcb_pmsm_foc_hall_MCSPTE1AK144_data.m again.
Workflow 3
Opening the mcb_pmsm_foc_hall_MCSPTE1AK144.slx model, I flashed it on the S32K144 board, pressing Build ( or Ctrl+B on keyboard):

Then opening the mcb_hall_foc_host.slx model and open com port settings, and setting COM4:

You can see in the device manager what COM port your particular board has.
Then I press Run and also toggle from Stop to Start. If the motor does not Start, press the reset button on the board.
The final result with the motor spinning, after pressing the reset button on the board, looks like:

Hope all of the above instructions help you to spin the motor
Best regards,
Stefan