Reading ATSAMV71Q21 User Signature memory using atprogram

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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!

 

Ed's Law of Debugging: The more bizarre the behavior, the more stupid the mistake.

Last Edited: Mon. Aug 27, 2018 - 08:34 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I eventually submitted an issue with Microchip on this. As for the user-signature area, atprogram does not support it for the ATSAMV71. It was added as a feature request.

Ed's Law of Debugging: The more bizarre the behavior, the more stupid the mistake.