BOSSA icon indicating copy to clipboard operation
BOSSA copied to clipboard

SAMR21x16 Cannot write > 3840 bytes

Open Gadgeteering opened this issue 6 years ago • 1 comments

When programming the SAMR21x16 I get an error when programming files greater than 3840 bytes.

3840 Bytes

Device : ATSAMR21x16 Version : v2.0 [Arduino:XYZ] Sep 15 2019 08:29:47 Address : 0x0 Pages : 1024 Page Size : 64 bytes Total Size : 64KB Planes : 1 Lock Regions : 16 Locked : none Security : false BOD : true BOR : true Erase flash

Done in 0.190 seconds Write 3840 bytes to flash (60 pages) [==============================] 100% (60/60 pages) Done in 0.023 seconds Verify 3840 bytes of flash [==============================] 100% (60/60 pages) Verify successful Done in 0.228 seconds

When the file is 3841 bytes it fails

Device : ATSAMR21x16 Version : v2.0 [Arduino:XYZ] Sep 15 2019 08:29:47 Address : 0x0 Pages : 1024 Page Size : 64 bytes Total Size : 64KB Planes : 1 Lock Regions : 16 Locked : none Security : false BOD : true BOR : true Erase flash

Done in 0.190 seconds Write 3841 bytes to flash (61 pages) [ ] 0% (0/61 pages) SAM-BA operation failed

Has anybody got a workaround for this problem ?

Gadgeteering avatar Sep 15 '19 11:09 Gadgeteering

Pull Request submitted with solution #110

Gadgeteering avatar Sep 29 '19 12:09 Gadgeteering