7.4.4 AVR devices with UPDI memtypes

Table 7-46. AVR devices with UPDI memtypes
IDProg accessDebug accessUsage/rules
MEMTYPE_APPL_FLASH, MEMTYPE_BOOT_FLASH, MEMTYPE_FLASH_PAGERWR
  • Used to read/write FLASH in programming or debugging mode

  • Address is from base 0x000000, provided that PROG_BASE is configured correctly (Device Context: AVR devices with UPDI)

  • Any number of aligned words can be accessed.

MEMTYPE_APPL_FLASH_ATOMIC, MEMTYPE_BOOT_FLASH_ATOMICW-
  • Used to write a full FLASH page in the application section in programming mode

  • The page is automatically erased before writing

  • Address is from base 0x000000, provided that PROG_BASE is configured correctly (Device Context: AVR devices with UPDI)

  • Writes are restricted to full pages only

MEMTYPE_EEPROM, MEMTYPE_EEPROM_PAGE, MEMTYPE_EEPROM_ATOMICRWRW
  • Used to write EEPROM in programming or debugging mode

  • The page is automatically erased before writing if the ATOMIC memtype is used.

  • Absolute EEPROM address must be provided

  • Any number of bytes can be accessed

MEMTYPE_FUSESRW-
  • Used to read/write FUSES in programming or debugging mode

  • Absolute fuse address be provided
  • Only a single byte can be accessed

MEMTYPE_LOCK_BITSRWR
  • Used to read/write LOCKBITS in programming or debugging mode

  • Absolute lockbit address must be provided

  • Only a single bytes can be accessed

MEMTYPE_SIGNATURE, MEMTYPE_CALIBRATION_SIGNATURERR
  • Used to read the device SIGNATURE in programming or debugging mode

  • Absolute signature address must be provided
  • Any number of bytes can be accessed

MEMTYPE_USER_SIGNATURERWRW
  • Used to read/write the USER SIGNATURE in programming or debugging mode

  • Absolute signature address must be provided

  • Any number of bytes can be accessed

  • When writing user signature on a locked device, a full page write is required.
MEMTYPE_REGFILE-RW
  • Used to read/write the general purpose registers in debugging mode

  • Address is from base 0x00

  • Any number of bytes can be accessed

MEMTYPE_SRAM-RW
  • Used to read/write the SRAM data space in debugging mode

  • Absolute SRAM address must be provided
  • Any number of bytes can be accessed