Bus Fault and Hard Fault in S32K324 Controller

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

Bus Fault and Hard Fault in S32K324 Controller

605 Views
nishanth_s12
Contributor I

Hi all,

I am facing the issue while eraseing the sector in S32K324 Controller.

When i am debugging the code step by step during the Erase, it works fine. When i am giving the continues run, it goes to Bus Fault and Hard Fault handler.

Kindly suggest the solution.

0 Kudos
Reply
3 Replies

598 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @nishanth_s12 

Check the following community post. It has information related to the topic. 

S32K344 C40 IP Hardware Fault Problem

 

B.R.

VaneB

0 Kudos
Reply

592 Views
nishanth_s12
Contributor I

Hi,

Thanks for your reply.

We gone through the document.

We are unable to find  SRAM (".ramcode" section) in our project.

When we configured flash driver only, it was working. But we configured flash driver along with FlexCANPit_Ip and Port driver, it is not working properly. We are getting Bus Fault and Hard Fault.

Please find enclosed our code. Kindly rectify the same.

0 Kudos
Reply

577 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @nishanth_s12 

To place the functions to SRAM, you should do the shown in the following image:

VaneB_0-1709750454185.png

As a result, you need to see the ".ramcode" section (.map file) as follows:

VaneB_1-1709750533253.png

0 Kudos
Reply