Irreversible secure detected

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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):

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Drop the erase_all_pin.jlk in the “C:\Freescale\CW MCU v10.3\MCU\bin” directory (attached to this post)
- Power off the board
- Assert the reset pin and hold it asserted for the remainder of the process.
- Power on the board
- 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” .
- Release the reset pin
- Try to connect with debugger
- 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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?"


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Rasmus, have you found any improvement with CW 10.3?
Let us know! :smileywink:
