AVR XMEGA memtypes

Table 1. AVR XMEGA memtypes
ID Prog access Debug access Usage/rules
MEMTYPE_APPL_FLASH RW R
  • Used to read/write FLASH in the application section in programming or debugging mode

  • Address is from base 0x000000, provided that APPL_BASE_ADDR is configured correctly (Device Context: AVR XMEGA Targets)

  • Any number of bytes can be accessed

MEMTYPE_BOOT_FLASH RW R
  • Used to read/write FLASH in the boot section in programming or debugging mode

  • Address is from base 0x000000, provided that BOOT_BASE_ADDR is configured correctly (Device Context: AVR XMEGA Targets)

  • Any number of bytes can be accessed

MEMTYPE_APPL_FLASH_ATOMIC W -
  • 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 APPL_BASE_ADDR is configured correctly (Device Context: AVR XMEGA Targets)

  • Writes are restricted to full pages only

MEMTYPE_BOOT_FLASH_ATOMIC W -
  • Used to write a full FLASH page in the boot section in programming mode

  • The page is automatically erased before writing

  • Address is from base 0x000000, provided that BOOT_BASE_ADDR is configured correctly (Device Context: AVR XMEGA Targets)

  • Writes are restricted to full pages only

MEMTYPE_EEPROM_ATOMIC W W
  • Used to write a full EEPROM page in programming or debugging mode

  • The page is automatically erased before writing

  • Address is from base 0x000000, provided that EEPROM_BASE_ADDR is configured correctly (Device Context: AVR XMEGA Targets)

  • Writes are restricted to full pages only

MEMTYPE_EEPROM RW RW
  • Used to read/write a EEPROM data in programming or debugging mode

  • Address is from base 0x000000, provided that EEPROM_BASE_ADDR is configured correctly (Device Context: AVR XMEGA Targets)

  • Any number of bytes can be accessed

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

  • Address is from base 0x000000, provided that FUSE_BASE_ADDR is configured correctly (Device Context: AVR XMEGA Targets)
  • Any number of bytes can be accessed

MEMTYPE_LOCK_BITS RW R
  • Used to read/write LOCKBITS in programming or debugging mode

  • Address is from base 0x000000, provided that LOCKBIT_BASE_ADDR is configured correctly (Device Context: AVR XMEGA Targets)

  • Any number of bytes can be accessed

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

  • Address is from base 0x000000, provided that NVM_BASE and SIGNATURE_OFFSET are configured correctly (Device Context: AVR XMEGA Targets)

  • Any number of bytes can be accessed

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

  • Address is from base 0x000000, provided that USER_SIGN_BASE_ADDR is configured correctly (Device Context: AVR XMEGA Targets)

  • Any number of bytes can be accessed

MEMTYPE_CALIBRATION_SIGNATURE R R
  • Used to read/write the CALIBRATION SIGNATURE in programming or debugging mode

  • Address is from base 0x000000, provided that PROD_SIGN_BASE_ADDR is configured correctly (Device Context: AVR XMEGA Targets)

  • Any number of bytes can be accessed

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

  • Address is from base 0x000000, provided that DATA_BASE_ADDR is configured correctly (Device Context: AVR XMEGA Targets)

  • Any number of bytes can be accessed