Hello @RajG , @ruihang_wu ,
How do you import the project in S32DS? On my end, I've tried to import the generated code for the PMSM_OpenLoop_s32k144 model and I am able to build the generated code. Let me explain the steps:
1. Make sure that the Simulink model has the "Generated S32DS ProjectInfo.xml checked in the Config model.

2. Go to S32DS for ARM 2.2 go to File > Import, and under S32 Design Studio check the ProjectInfo.xml Importer

3. In the newly opened window, please select the ProjectInfo.xml file from the generated code, and make all the below checks.

4.Once the import process has been completed, open the PMSM_OpenLoop_s32k144.c and you should now able to build the project.

In my console log, you can see that the project has been successfully built and now you can go to the Debug configuration and start debugging the code on the board.

Hope this helps,
Marius