I am attempting to use atprogram to read from (and later write to) the 512 byte User Signature flash memory area of an ATSAMV71Q21. Here is what I am getting:
>atprogram -t atmelice -i swd -d atsamv71q21 read -us -s 8 -o 0x00
Firmware check OK
[ERROR] An error occurred executing a command (read): No matching memory segment found on the device: None
I am a newbie to this sort of thing.
If you look at "atprogram help read", it states that several of the memory areas are ONLY for certain devices.
-fl (flash) is only for tinyAVR/megaAVR, AVR XMEGA, and AVR32 UC3
-ee (eeprom) is only for tinyAVR/megaAVR, AVR XMEGA
-us (usersignature) is only for AVR XMEGA and AVR32 UC3
-os (osccal) is only for tinyAVR/megaAVR, AVR XMEGA
-ps (prodsignature) is only for AVR XMEGA
-sg (signatures) is only for tinyAVR/megaAVR, AVR XMEGA
I get the same error no matter which of these I try.
But if I try -fs (fuses) or -lb (lockbits), then I get a reasonable response.
The ATSAMV71Q21 does have a 512 byte User Signature area according to its datasheet.
And it certainly has "regular" flash memory.
Does atprogram simply not support reading/writing flash memory for this chip?
I have to be missing something.
Thanks for any help!