arduino / arduino/ArduinoCore-sam
Flash page locked
- Dominant language
- HTML
- Stars
- 91
- Forks
- 112
- PR merge metrics
- No merged PRs in 30d
Description
Hi
I had purchased an Arduino Due a month or two ago for a project that had to stream data from my computer through USB and buffer small amounts of it locally. The controller had to simultaneously provide precise trigger pulses to 7 stepper drivers independently. This lead to my idea of using a portion of the flash storage as buffer. I supposed to have accidentally written and locked pages as i filled the buffers.
Now as i use my Atmel ICE with Atmel studio7 to upload sketch (Even something simple like a "Blink") to the board, it uploads the only if i dont erase the flash. Secondly trying to unlock the flash leaves a lock bit stuck enabled. Finally the sketch runs only if I set the GPNVM bits to 0x01 (USBSerial or Serial doesnt't work as the board doesn't get detected if I set the GPNVM register to 0x01). I have tried SAM-BA, Bossac, composing an empty intel flash hex file and trying to flash it, There must be a way to unlock it, but I could not figure it out. The Due board has never been on ecternal power other than my computer's USB (Absolutely Reliable). The issue exists with a lot of other users who have used the library that I used, the "DueFlashLibrary". So someone please show me a direction to go from here. I am out of options now.


Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the reported DueFlashLibrary use and the flash-lock behavior with SAM-BA, Bossac, and Atmel Studio 7 on an Arduino Due. Reproduce the failed erase, unlock, upload, and GPNVM settings, then document a reliable recovery path or confirm the hardware state that prevents it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- arduino
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100