S32K324:SEMA43 init into hardfault

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

S32K324:SEMA43 init into hardfault

692 Views
hejun
Contributor I

HI!

I created a new project based on SW32K3_S32M27x_RTD_R21-11_5.0.0.
The code generated by the EB configuration RM routine enters the hardfault when RM_INIT is initialized, which is found to be entered after manipulating the register.
Is the address of the register inoperable? Or is there a problem with my project configuration?

Thank you!!

9148E46D-0C51-4c24-8DAD-CBF999ECBBAA.pngCBF0370D-3C29-49f3-B1FD-C8623BAF1946.png

 

0 Kudos
Reply
1 Reply

639 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Just a blind shot: are you doing the register configuration from user mode or supervisor mode?

If from user mode, then there is by default register protection active.

But to understand how to debug the hard fault, have a look at this document:

https://community.nxp.com/t5/S32K-Knowledge-Base/How-To-Debug-A-Fault-Exception-On-ARM-Cortex-M-V7M-...

Best regards,
Peter

0 Kudos
Reply