KW36 reading flash data caused HardFault_Handler

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

KW36 reading flash data caused HardFault_Handler

2,330 次查看
wjw2023
Contributor I

Hi:

KW36 reading flash data caused HardFault_Handler!


1、different data is written to the same flash address twice consecutively。

uint8_t wdata[8] = {0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88};
NV_FlashProgram(0x00073778, 8, wdata);
wdata[0] = 0x00;
NV_FlashProgram(0x00073778, 8, wdata);

2、reading flash data caused HardFault_Handler。

uint8_t rdata[8] = {0};
memcpy(rdata, 0x00073778, 8);

3、The ecc verification error may occur because data is written to the same address twice;How does this error not trigger HardFault_Handler; can trigger FTFE_IRQHandler !

0 项奖励
回复
5 回复数

2,310 次查看
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Hope you are doing well. Could you please clarify what SDK version are you using?

 

Are you using an SDK example as a base? What modifications did you make?

 

Are you using a FRDM?

 

Why are you writing different data on the same address consecutively?

 

Regards,

Ricardo

0 项奖励
回复

2,279 次查看
wjw2023
Contributor I

sdk ver 2.25

Continuously write different data on the same address just to repeat the problem, the actual application does not know how to produce, the phenomenon is to read flash cause  HardFault_Handler.

NV FlashProgram for write and memcpy for read.

0 项奖励
回复

2,271 次查看
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

The recommended API's are located on <SDK_Path>\middleware\wireless\framework\Flash\Internal\. The main functions are:

NV_FlashEraseSector

NV_FlashProgram

NV_FlashRead (FLib_MemCpy)

 

Regards,

Ricardo

0 项奖励
回复

2,186 次查看
wjw2023
Contributor I

Hello,

      Hope to get your help!

0 项奖励
回复

2,260 次查看
wjw2023
Contributor I

My requirement is very simple, is to read flash exception when do not trigger HardFault_Handler, can trigger FTFE_IRQHandler, how to configure? 

0 项奖励
回复