MCXC444 hard fault after writing flash

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

MCXC444 hard fault after writing flash

389 Views
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

 

Labels (2)
0 Kudos
Reply
1 Reply

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