How to unprotect the FRDM-KW41Z to flash the program?

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

How to unprotect the FRDM-KW41Z to flash the program?

859 Views
bhavyamathukiya
Contributor II

Hi There,

I am using FRDM-KW41Z in one of my projects. I was able to reprogram it many times during the development but all of a sudden I am not able to reprogram it. I am using "OpenSDA-Jlink" bootloader on FRMD-KW41Z. I was able to use J-link Commander to flash binary on FRDM board. But now whenever I am trying to program it using J-Link Commander I am getting the error mentioned below. Is there any way I can fix this or need to change the MCU on the board?

J-Link Commander Error:

InitTarget()
Readout protection is set and mass erase is disabled. J-Link cannot unprotect the device.
Found SW-DP with ID 0x0BC11477
Scanning AP map to find all available APs
AP[2]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x04770031)
AP[1]: JTAG-AP (IDR: 0x001C0020)
Iterating through AP map to find AHB-AP to use
AP[0]: Skipped. Invalid implementer code read from CPUIDVal[31:24] = 0x00
AP[1]: Skipped. Not an AHB-AP
Cannot connect to target.

Any help is highly appreciated as I am stuck here.

Thanks,

Bhavya

0 Kudos
1 Reply

573 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Bhavya,

The only method to recover a secured device is to launch a mass erase command.

Unfortunately, if you Jlink debugger mas your device as protected and mass erase disable. There is no way to recover your device.

Please look at the next link.

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

Regards,

Mario

0 Kudos