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.
How about showing your code?
type void setup()
// put your setup code here, to run once:
// 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
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.
Update: I have used a Amtel-ICE programmer with Atmel Studio and I am still unable to unlock Flash Memory Section 16. At this point, 2 Due boards have been lost.
My suggestion to everyone out there is to not use DueFlashStorage until this gets figured out.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.