Bus Fault and Hard Fault in S32K324 Controller

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Bus Fault and Hard Fault in S32K324 Controller

268 次查看
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 项奖励
3 回复数

261 次查看
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 项奖励

255 次查看
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 项奖励

240 次查看
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 项奖励