How to solve the Error: Error: Erase failed. Flash driver reports the following error(s): Sector Protection Error?

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

How to solve the Error: Error: Erase failed. Flash driver reports the following error(s): Sector Protection Error?

1,106 Views
patric
Contributor I

Hi,

I want to flash my FRDM-KL25Z with the openSDA debugger, but after some erased sectors I got the following massage:

Erasing Sector 0x00015800 to 0x00015BFF  

Erasing ...

Error:  Erase failed. Flash driver reports the following error(s):  Sector Protection Error

Error: Erase failed. Flash driver reports the following error(s):  Sector Protection Error

How cann I solve that?

Tags (2)
0 Kudos
Reply
2 Replies

604 Views
miduo
NXP Employee
NXP Employee

Hi,

Please let me know the CW version you used? How about the CW license?

0 Kudos
Reply

604 Views
patric
Contributor I

I have 10.6 and a valid licence.

I found out that the Project I work with has a protected flash area Flash protection.jpg

The unprotectet start at 0x00018000. So I startet flashing there:

Flasch target offset.jpg

So I didn't got the error, but after a reset I didn't have the new flashed code running!?

0 Kudos
Reply