How to erase the Sector containing Flash Config bits from Flash drivers?

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

How to erase the Sector containing Flash Config bits from Flash drivers?

485 Views
virendrakumar
Contributor I

Kinetis Microcontrollers : KEAZ64 Kinetics M0+ 

My task is to Re-flash the boot loader residing from 0x00000 to 0xFBFF using an Application which resides at 0x5E00.

When I am erasing all sectors from 0x00000 to 0xFBFF using flash drives in Application code.

The device becomes unresponsive after Erase.

I am suspecting the corruption of Flash config bits at 0x400 to ox40F.

Please let me know if I have to take any special care for erasing this particular sector using flash drivers or the problem is somewhere else.

0 Kudos
1 Reply

296 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi Virendra Kumar 

If your Application resides in 0x5E00, then when you erase all sectors from 0x00000 to 0xFBFF, you are eraseing also your application. If you bootloader was programmed in seccion 0x0000 to 0xFBFF, then it shouldn't be overlapping with your application.

Hope this could help
Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos