MCXC444 hard fault after writing flash

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

MCXC444 hard fault after writing flash

391件の閲覧回数
Nian8113
Contributor I

Hi support teams,

I'm developing for FRDM-MCXC444 with bootloader.

I'd like to use I2C peripherals to update MCU flash memory in bootloader.
So I wrote some commands to erase and write flash memory.
However, there're some troubles after writing flash memory via I2C.

The MCU stuck at "HardFault_Handler" when I try to use debug with MCUXpresso IDE.

Nian8113_1-1747880179113.png

I use debug to read back the memory as follows.
You can see some wrong data in the corresponding configuration location.
I know this is cased by writing wrong data to flash memory.

Nian8113_0-1747879675363.png

But I can't erase the flash or do anything to recovery it.
Could you please give me some advice?

Thank you for your time and suggestions.

BR,
Nian

 

ラベル(2)
0 件の賞賛
返信
1 返信

348件の閲覧回数
Celeste_Liu
NXP Employee
NXP Employee

Hello @Nian8113 ,

Thanks for your post.

Can you provide more detailed information? Please tell me your operation steps and what your commands for erasing and writing flash memory are.

In addition, you mentioned "can't erase the flash or do anything to recovery it." Does this mean you can't erase it even with an external debugger? Have you tried connecting J10 with JLINK/MULTILink for mass erase?

Celeste_Liu_0-1748229238130.png

Hope this will help you. If this doesn't fully answer your question please contact me again. I will be glad to help you further.

BRs,

Celeste

 

-------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
-------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信