S3k311 Flash erase and write hitting hard fault

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S3k311 Flash erase and write hitting hard fault

808件の閲覧回数
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 返答(返信)

783件の閲覧回数
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 件の賞賛
返信

772件の閲覧回数
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 件の賞賛
返信

769件の閲覧回数
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 件の賞賛
返信

763件の閲覧回数
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 件の賞賛
返信

762件の閲覧回数
Emguy
Contributor I

this is the project

0 件の賞賛
返信

737件の閲覧回数
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 件の賞賛
返信

596件の閲覧回数
Emguy
Contributor I

its working

0 件の賞賛
返信

773件の閲覧回数
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 件の賞賛
返信