Skip to content

SAMR21x16 Cannot write > 3840 bytes #108

Open
@Gadgeteering

Description

@Gadgeteering

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions