4.9.2 Macros
#define BL_IMAGE_FORMAT_MAJOR_VERSION (0x1)
Represents the major version of the image format that is understood by the bootloader core.
.#define BL_IMAGE_FORMAT_MINOR_VERSION (0x0)
Represents the minor version of the image format that is understood by the bootloader core.
.#define BL_IMAGE_FORMAT_PATCH_VERSION (0x0)
Represents the patch version of the image format that is understood by the bootloader core.
.#define BL_VECTORED_INTERRUPTS_ENABLED (0)
Indicates that the bootloader supports vectored interrupts in the application.
#define BL_APPLICATION_START_ADDRESS (0x4000U)
Start of the application memory space.
#define BL_DEVICE_ID_START_ADDRESS_U (0x41002018U)
Device ID address.
#define BL_APPLICATION_END_ADDRESS (0x11FFF)
End of the application memory space.
#define BL_IMAGE_PARTITION_SIZE (0xE000)
Defined size of the application memory space.
#define BL_STAGING_IMAGE_START (0x12000U)
Start of the application download space.
#define BL_STAGING_IMAGE_END (0x1FFFF)
End of the application download space.
#define BL_STAGING_IMAGE_ID (1U)
Image area ID that identifies the download location of the transferred data.
#define BL_APPLICATION_IMAGE_COUNT (2U)
Number to represent how many image spaces are configured by the bootloader.
#define BL_SOFTWARE_ENTRY_PATTERN_START (0x20000000)
Start address of the software entry pattern array.
#define BL_SOFTWARE_ENTRY_PATTERN (0x5048434DU)
32-bit pattern used to indicate that a software entry has been requested.
#define BL_HASH_DATA_SIZE (4U)
#define APPLICATION_SLOT_ID_DATA_SIZE (4U)
Size of the application ID data in bytes.
#define APPLICATION_VERSION_DATA_SIZE (4U)
Size of the version data in bytes.
#define VERIFY_END_ADDRESS_SIZE (4U)
Size of the verify end address data in bytes.
#define VERIFY_START_ADDRESS_SIZE (4U)
Size of the verify start address data in bytes.
#define ECDSA_VERIFICATION_ENABLED (1U)
Enables ECDSA-SHA256 verification.
#define SIGNATURE_LENGTH (64U)
The size of the ECDSA signature.
#define HASH_DATA_OFFSET (VERIFY_START_ADDRESS_SIZE + VERIFY_END_ADDRESS_SIZE + APPLICATION_VERSION_DATA_SIZE + SIGNATURE_LENGTH + APPLICATION_SLOT_ID_DATA_SIZE)
Offset of the hash data in bytes, calculated as the sum of verify start address size, verify end address size, version data size and partition ID data size.
#define BL_ANTI_ROLLBACK_ENABLED (1U)
#define BL_RESTORATION_FROM_BACKUP_ENABLED (0U)
Defines whether the backup image feature is enabled or not.
#define ASM_VECTOR asm("bx %0"::"r" (reset_vector))
Macro defined to jump the program to the application reset location.
