HardFault Error for s32k311 while accessing C40 driver Erase and write

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HardFault Error for s32k311 while accessing C40 driver Erase and write

1,253 Views
Anitha7
Contributor I

While Running Code i am getting Hard fault handler exception for c40 main interface erase and write functions but if i am doing debugging step by step there is no exception .Please help to reslove this issue.I am doing testing on S32k311 board

0 Kudos
Reply
6 Replies

1,226 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Anitha7

Firstly, could you share some information about your project?

Are you running an example from the RTD packages? Could you also share your S32DS version, as well as the RTD release?

These guides for fault handling may prove useful:

Best regards,
Julián

0 Kudos
Reply

1,205 Views
Anitha7
Contributor I
@Julián_AragónM
We are using C40 Driver main interface Erase and write operations for s32k311 MCU and we are facing Hard Fault Handler issue. This Exception hits only by direct run of project but if we are doing Debugging by placing breakpoints at erase and write api’s in code driver, it is working fine. Please suggest some resolution for this issue. we tried example of sdk’s for s32k344 mcu ,which we imported into s32k311,modified the mcu configurations only. We did C40 Driver configurations as per the SDK examples and we verified the flash memory configurations.
Tools used:S32Design Studio (3.5)
RTD Version: PlatformSDK_S32K3_S32K311_M7(3.0.0)
Debugger : WinIdea Bluebox(IC5000)
Target Hardware: PCB based on S32k311 MCU

Please help me to slove this ASP
0 Kudos
Reply

1,143 Views
Anitha7
Contributor I
We are using C40 Driver main interface Erase and write operations for s32k311 MCU and we are facing Hard Fault Handler issue. This Exception hits only by direct run of project but if we are doing Debugging by placing breakpoints at erase and write api’s in code driver, it is working fine. Please suggest some resolution for this issue. we tried example of sdk’s for s32k344 mcu ,which we imported into s32k311,modified the mcu configurations only. We did C40 Driver configurations as per the SDK examples and we verified the flash memory configurations.
Tools used:S32Design Studio (3.5)
RTD Version: PlatformSDK_S32K3_S32K311_M7(3.0.0)
Debugger : WinIdea Bluebox(IC5000)
Target Hardware: PCB based on S32k311 MCU

0 Kudos
Reply

1,209 Views
Anitha7
Contributor I
We are using C40 Driver main interface Erase and write operations for s32k311 MCU and we are facing Hard Fault Handler issue. This Exception hits only by direct run of project but if we are doing Debugging by placing breakpoints at erase and write api’s in code driver, it is working fine. Please suggest some resolution for this issue. we tried example of sdk’s for s32k344 mcu ,which we imported into s32k311,modified the mcu configurations only. We did C40 Driver configurations as per the SDK examples and we verified the flash memory configurations.
Tools used:S32Design Studio (3.5)
RTD Version: PlatformSDK_S32K3_S32K311_M7(3.0.0)
Debugger : WinIdea Bluebox(IC5000)
Target Hardware: PCB based on S32k311 MCU
0 Kudos
Reply

1,210 Views
Anitha7
Contributor I

We are using  C40 Driver main interface Erase and write operations for s32k311 MCU and we are facing Hard Fault Handler issue. This Exception hits only by direct run of project but  if we are doing Debugging by placing breakpoints at erase and write api’s in code driver, it is working fine. Please suggest some resolution for this issue. we tried example of sdk’s for s32k344 mcu ,which we imported into s32k311,modified the mcu configurations only. We did C40 Driver configurations as per the SDK examples and we verified the flash memory configurations.

Tools used:S32Design Studio (3.5)

RTD Version: PlatformSDK_S32K3_S32K311_M7(3.0.0)

Debugger : WinIdea Bluebox(IC5000)

Target Hardware: PCB based on S32k311 MCU

0 Kudos
Reply

1,138 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Anitha7,

Please try updating the RTD version to the newest one (SW32K3_RTD_4.4_2.0.0_D2203), either through this page: S32K3 Auto General-Purpose MCUs, or through the "Extensions and Update" window from the "Help" tab in S32DS.

If you are not able to get the project working let us know to provide further support.

Best regards,
Julián.

0 Kudos
Reply