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
McuTrigmuxConfig(); //Modified according to the board used
McuPinsConfig(); //Modified according to the board used
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?
SDK 3.x.x does not support S32K14xW MCU.
SDK 4.x.x available in S32DS 3.3 does.
There are differences between S32K1xx and S32K14xW.
And the demo was built with SDK 3.0.2 in S32DS 2.2 for S32K144.
I would recommend using SDK 4.x.x in S32DS 3.3 but as far as I know we don't have any demo for S32K14xW.
Sorry for the late response.
Actually I finally did the two changes:
1. Disable HSRUN feature in the include files.
2. Disable the modules that are not usable in S32K144W, like FlexCAN2.
Then it works for me by now.
Thanks for your information.
By the way, is S32DS v3.2 and SDK 4.x.x as you mentioned released?
S32DS 3.3 can be downloaded here:
At nxp.com, go to My NXP / Software Licensing and Support / Software accounts / Automotive SW - Software Development Kit for Cortex-M
If I'm not mistaken, you should see the latest SDK 4.0.x there.