S3k311 Flash erase and write hitting hard fault

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

S3k311 Flash erase and write hitting hard fault

804 次查看
Emguy
Contributor I

S3k311 Flash erase and write hitting hard fault I have tried the solution in nxp like ram copy 

but it was nt working for me pleas check this below code 

0 项奖励
回复
8 回复数

779 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Emguy

Below is a demonstration of mapping C40_Ip related APIs to RAM to avoid RWW error.

This demo is base on S32K312 and I think there is no big difference between S32K311 and S32K312.

So you can refer to the demo in the attachments.

0 项奖励
回复

768 次查看
Emguy
Contributor I
Thank you for your support

Hai I am abele to write to specific memory location but the issue is i am abele to write with break point

if i remove break point it is hitting hard fault error

I had downloaded the code and implemented in s32k312 board but it is also causing same issue
0 项奖励
回复

765 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Emguy

"I had downloaded the code and implemented in s32k312 board but it is also causing same issue"

Please provide me with a screenshot of the error message and I will try to reproduce your problem

0 项奖励
回复

759 次查看
Emguy
Contributor I

if i put break point to this api's

C40_Ip_Status = C40_Ip_MainInterfaceSectorEraseStatus();

C40_Ip_Status = C40_Ip_MainInterfaceWriteStatus();

then it will work fine, without break point it will hit hard fault 

 

 

0 项奖励
回复

758 次查看
Emguy
Contributor I

this is the project

0 项奖励
回复

733 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Emguy

I checked the project you provided me, and I found that the highlighted functions are still not put into RAM.

You can see that the left side is your project, and the right side is my project.

Senlent_2-1719284255017.png

Senlent_1-1719284244101.png

 

0 项奖励
回复

592 次查看
Emguy
Contributor I

its working

0 项奖励
回复

769 次查看
Emguy
Contributor I

Thank you for your  support

Hai I am abele to write to specific memory location but the issue is i  am abele to write with break point 

if i remove break point it is hitting hard fault error 

I had downloaded the code and implemented in s32k312 board but it is also causing same issue 

0 项奖励
回复