How to destroy a partition when FLASH_DRV_DEFlashPartition is used (without CSEc enabled)

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

How to destroy a partition when FLASH_DRV_DEFlashPartition is used (without CSEc enabled)

Jump to solution
873 Views
baichuan
Contributor II

Hi

like the Subject said, FLASH_DRV_DEFlashPartition(without CSEc enabled) called in the existing code, we need to destroy the partition and repartition it(CSEc enabled) and LoadKey to CSEc. 

Currently we use j-flash to erase the chip, the borad will be unsecure, So we still have to unlock the device. And then do repartition and LoadKey to CSEc.

Is there any other way to repartition?

Thanks

Tags (1)
0 Kudos
Reply
1 Solution
859 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @baichuan,

If the MCU has been partitioned with CSEc disabled, the partition can be removed by Mass Erase.

You should see DEPART register in its default state after the Mass Erase.

Then, it can be partition again with CSEc enabled.

 

BR, Daniel

 

View solution in original post

0 Kudos
Reply
1 Reply
860 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @baichuan,

If the MCU has been partitioned with CSEc disabled, the partition can be removed by Mass Erase.

You should see DEPART register in its default state after the Mass Erase.

Then, it can be partition again with CSEc enabled.

 

BR, Daniel

 

0 Kudos
Reply