Due - Flash page is locked

He everyone,

I am using Arduino Due.

I have apparently stumbled upon the error "Flash page is locked" when attempting to flash. I have previously used the DueFlashStorage library and it looks that many others who have used this library have also had this error.

I have tried to manually erase and reset the board, and I have also modified platform.txt as prescribed in this thread: DUE with DueFlashStorage.h library "Flash page is locked" error

None of these items fixed the board.

Has anyone figured out how to solve this? All the other threads I look at seem to not have a solution.

Thank You

Hi @dimitri
How about showing your code?

RV mineirin

type void setup() 
{
  // put your setup code here, to run once:

}

void loop()
{
  // put your main code here, to run repeatedly:

}

Just a blank sketch returns this:

Sketch uses 22084 bytes (4%) of program storage space. Maximum is 524288 bytes.
Atmel SMART device 0x285e0a60 found
Erase flash
done in 0.032 seconds

Write 24352 bytes to flash (96 pages)

Flash page is locked
An error occurred while uploading the sketch
[                              ] 0% (0/96 pages)

When I use BOSSAC I can see that Flash Memory section 16 is locked, but the lock bit will never go away. I can lock and unlock all the other sections but section 16 always stays locked.