bus fault in debugging S32K144W

cancel
Showing results for 
Search instead for 
Did you mean: 

bus fault in debugging S32K144W

673 Views
zchy052
Contributor I

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.

zchy052_0-1610026155866.png

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.

 

0 Kudos
5 Replies

643 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

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.

 

Regards,

Daniel 

 

 

 

 

 

 

0 Kudos

614 Views
zchy052
Contributor I

Hi Daniel,

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?

 

Regards.

0 Kudos

584 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

S32DS 3.3 can be downloaded here:

https://www.nxp.com/design/software/development-software/s32-design-studio-ide/s32-design-studio-for...

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.

 

BR, Daniel

 

 

0 Kudos

575 Views
zchy052
Contributor I

Hello Daniel,

It seems S32DS 3.3 only support S32V234 and S32S24 as mentioned in the nxp website you gave.

0 Kudos

547 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

I can see this on the website:

danielmartynek_0-1613119229961.png

BR, Daniel

 

 

0 Kudos