Irreversible secure detected

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

Irreversible secure detected

1,836 Views
Futte
Contributor II

i am stuck..

I am trying to program a TWR-K60F120M, but something is wrong

the program has worked on the board, but now i can't flash program it..

when i try to program it i get this error:

Error: Program with Verify failed. Flash driver reports the following error(s):  Irreversible secure detected

I can erase the board and blank check it,

The error comes after this:

Downloading 0x0000073F bytes to be programmed at 0x00000000  

Executing program ....  

It is CW 10.2 i am using..

I really hope someone have an idea to solve this problem

Labels (1)
0 Kudos
Reply
6 Replies

1,027 Views
BlackNight
NXP Employee
NXP Employee

Hello,

please have a look if you enabled secure and mass erase disable in your program/application. Here is a post about this for the KL25Z, but applies to any Kinetis (the addresses might be different, check your microcontroller manual):

How (not) to Secure my Microcontroller | MCU on Eclipse

0 Kudos
Reply

1,027 Views
apanecatl
Senior Contributor II

Everything indicates the mcu has been blocked and  you will not be able to erase / program it. This might have happened if you programmed a wrong value in the flash security byte from the flash configuration field (address 0x40C), however CodeWarrior 10.2 it will warn you if you try to program a value at this address that would secure the flash irreversibly.


There is a chance you can still unlock it but I cannot assure it will work, the process is performed using a J link segger programming interface, and the J link commander software utility, you can download the J link commander from the following link:


http://www.segger.com/jlink-software.html



  1. Drop the erase_all_pin.jlk in the “C:\Freescale\CW MCU v10.3\MCU\bin” directory (attached to this post)
  2. Power off the board
  3. Assert the reset pin and hold it asserted for the remainder of the process.
  4. Power on the board
  5. Go to a command window navigate to the “C:\Freescale\CW MCU v10.3\MCU\bin” directory and execute the script by typing “jlink.exe erase_all_pin.jlk” .
  6. Release the reset pin
  7. Try to connect with debugger
  8. Send the output of the script out if it didn’t unsecure the part, we should be able to tell what the status of the security byte is.



0 Kudos
Reply

1,027 Views
Futte
Contributor II

I am trying hello world exampled in CW using the OpenSDA JTAG interface i get this error inside CodeWarrior:

"Device is secure. Erase to unsecure?"

0 Kudos
Reply

1,027 Views
BlackNight
NXP Employee
NXP Employee

Hello,

have a look at Unsecuring the KL25Z Freedom Board | MCU on Eclipse

Maybe this is your problem? The above page contains as well a link to a patch which should solve your problem.

0 Kudos
Reply

1,027 Views
Futte
Contributor II

unfortunately i still get the error after trying the link Unsecuring the KL25Z Freedom Board | MCU on Eclipse, maybe it is because i am using CW10.2.

It looks like it is address 0x40C where the problem is because when i try to flash program a larger program errors occur: Error: Program with Verify failed. Flash driver reports the following error(s):  Irreversible secure detected, and

Error:  Program with Verify failed.   Flash driver reports the following error(s):  Chip reported error during program. Pleasecheck that the sector you are programming is erased.

I allways erase before program.

Thanks

0 Kudos
Reply

1,027 Views
Monica
Senior Contributor III

Rasmus, have you found any improvement with CW 10.3?

Let us know! :smileywink:

0 Kudos
Reply