S3k311 Flash erase and write hitting hard fault

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

S3k311 Flash erase and write hitting hard fault

811 Views
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 Kudos
Reply
8 Replies

786 Views
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 Kudos
Reply

775 Views
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 Kudos
Reply

772 Views
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 Kudos
Reply

766 Views
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 Kudos
Reply

765 Views
Emguy
Contributor I

this is the project

0 Kudos
Reply

740 Views
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 Kudos
Reply

599 Views
Emguy
Contributor I

its working

0 Kudos
Reply

776 Views
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 Kudos
Reply