SPMA083 January 2022 TM4C129CNCPDT , TM4C129CNCPDT , TM4C129CNCZAD , TM4C129CNCZAD , TM4C129DNCPDT , TM4C129DNCPDT , TM4C129DNCZAD , TM4C129DNCZAD , TM4C129EKCPDT , TM4C129EKCPDT , TM4C129ENCPDT , TM4C129ENCPDT , TM4C129ENCZAD , TM4C129ENCZAD , TM4C129LNCZAD , TM4C129LNCZAD , TM4C129XKCZAD , TM4C129XKCZAD , TM4C129XNCZAD , TM4C129XNCZAD
APP_END is the address of the first byte beyond the flash memory available to the application. The AEC-CBCMAC authentication signature is stored in the 16 bytes before APP_END. The default value for devices with 1MB of flash is 0x100000. For devices with 512KB of flash the default value is 0x80000.
The user may choose to use a smaller size flash to reduce the time to download a new image. If so, the value for APP_END must be multiple of the sector size, 0x4000. The same value must be used for APP_END in the boot loader and in the tool that creates the encrypted image. The size of usable flash for the application cannot be changed once the boot loader is programmed into the device. Make sure to leave enough unused space in the flash to support future application program growth.
The reason a fixed size image is loaded each time is that one attack for AES-CBC encoded data is to extend the length with malicious code. Using a fixed length of data foils that attack method.