13.2.7 Cortex-M23 Test Target Instructions

Software may check the privilege state of a memory location by using the Cortex-M23 Test Target instructions: TT, TTT, TTA, and TTAT.

The memory location is referenced using the Cortex-M23 IREGION bitfield, which specifies the IDAU region number (see the ARMv8-M Architecture Reference Manual for more information).

Table 13-10. SAM L11 IDAU Region Number for TT, TTT, TTA and TTAT Cortex-M23 Instructions
Memory RegionIDAU Region Number for TTx Instructions (IREGION bits)
Secure Flash (BOOT region)0x01
Non-Secure Callable Flash (BOOT region)0x02
Non-Secure Flash (BOOT region)0x03
Secure Flash (APPLICATION region)0x04
Non-Secure Callable Flash (APPLICATION region)0x05
Non-Secure Flash (APPLICATION region)0x06
Secure Data Flash0x07
Non-Secure Data Flash0x08
NVM User Rows0x00 (invalid)
Boot ROM0x09
Secure SRAM0x0A
Non-Secure SRAM0x0B
Peripherals0x00 (invalid)
IOBUS0x00 (invalid)
Others (Reserved, Undefined...)0x00 (invalid)