Hello,
Recently I try to modify the demo project MCSPTE1AK144_PMSM_FOC_2Sh for EVB(S32K144) to be applicable on S32K144W platform using SDK. The debug tool is PEmicro.
But when I download the project into the new S32K144W board and run it, soon errors occur in initialization, the program hangs on WDOG_EWM_IRQHandler().
Here is the initialization sequence:
McuClockConfig(); //Modified according to the board i used
McuCacheConfig();
McuPowerConfig();
McuIntConfig();
McuSimConfig();
McuTrigmuxConfig(); //Modified according to the board used
McuPinsConfig(); //Modified according to the board used
// McuLpuartConfig();
McuAdcConfig(); //Modified according to the board used
McuPdbConfig(); //Modified according to the board used
McuFtmConfig(); //Modified according to the board used
McuFlexCANConfig(); //Modified according to the board used
GD3000_Init(); //Modified the SPI port
First time the problem occurs in McuClockConfig(), in HSRUN mode related function configuration, then I have just remove the function and write it without SDK and it works. Then the problem occurs a little bit later in GD3000 initialization, please see the picture below. The problem always occur in calling SDK function.

I guess it may be caused by difference betweern K144 and K144W, OR some settings needs to be renewd outside.
And now how can I deal with this problem, may I just modified the drivers again without SDK?
Thanks.