Bootloader configuration.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | APP_BINARY_OFFSET (APP_CRC_SIZE + APP_SIGNATURE_SIZE) |
Offset for the firmware in the input application binary - 16 bytes. More... | |
#define | APP_CRC_POLYNOMIAL_TYPE CRCCU_MR_PTYPE_CCITT8023 |
CRCCU Polynomial Selection. More... | |
#define | APP_CRC_SIZE 4 |
Size of CRC32 in bytes. More... | |
#define | APP_MAX_SIZE |
Maximum possible size of the Application. More... | |
#define | APP_SIGNATURE "ATMEL SAM4L " |
Application Signature. More... | |
#define | APP_SIGNATURE_SIZE 12 |
Size of signature in bytes. More... | |
#define | APP_START_ADDRESS (FLASH_ADDR + APP_START_OFFSET) |
Application starting address in Flash. More... | |
#define | APP_START_OFFSET 0x8000 |
Application starting offset - Verify with bootloader footprint*/. More... | |
#define | BOOT_GP_FUSE_BIT 16 |
GP Fuse bit to force bootloader mode after reset. More... | |
#define | BOOT_LED LED0_GPIO |
UI displaying the bootloader status. More... | |
#define | BOOT_LED_OFF_LVL 1 |
ON level for the BOOT_LED. More... | |
#define | BOOT_LED_ON_LVL 0 |
ON level for the BOOT_LED. More... | |
#define | BOOT_LOAD_PIN GPIO_PUSH_BUTTON_0 |
GPIO pin used to activate the bootloader mode. More... | |
#define | BOOT_LOAD_PIN_ACTIVE_LVL PUSH_BUTTON_0_DOWN_LEVEL |
Active state of GPIO pin used to activate the bootloader mode. More... | |
#define | CONSOLE_OUTPUT_ENABLED ENABLE |
Enable/disable the Console message output. More... | |
#define | FIRMWARE_AES_ENABLED ENABLE |
Configuration of the bootloader. More... | |
#define | FIRMWARE_IN_FILE_NAME "0:firmware.bin" |
Firmware file input name. More... | |
#define | FLASH_BUFFER_SIZE (FLASH_PAGE_SIZE) |
Buffer size to be used for programming. More... | |
#define | SECURITY_BIT_ENABLED DISABLE |
Enable/disable the Security bit after firmware upgrade. More... | |
#define | VERIFY_PROGRAMMING_ENABLED ENABLE |
Enable/disable the verification of memory after programming. More... | |
#define APP_BINARY_OFFSET (APP_CRC_SIZE + APP_SIGNATURE_SIZE) |
Offset for the firmware in the input application binary - 16 bytes.
Referenced by integrity_check(), and program_memory().
#define APP_CRC_POLYNOMIAL_TYPE CRCCU_MR_PTYPE_CCITT8023 |
CRCCU Polynomial Selection.
Referenced by crc32_calculate(), integrity_check(), and program_memory().
#define APP_CRC_SIZE 4 |
Size of CRC32 in bytes.
#define APP_MAX_SIZE |
Maximum possible size of the Application.
Referenced by main().
#define APP_SIGNATURE "ATMEL SAM4L " |
Application Signature.
Referenced by integrity_check().
#define APP_SIGNATURE_SIZE 12 |
Size of signature in bytes.
#define APP_START_ADDRESS (FLASH_ADDR + APP_START_OFFSET) |
Application starting address in Flash.
Referenced by bootloader_mode_check(), program_memory(), and start_application().
#define APP_START_OFFSET 0x8000 |
Application starting offset - Verify with bootloader footprint*/.
#define BOOT_GP_FUSE_BIT 16 |
GP Fuse bit to force bootloader mode after reset.
Bits 31-16 are usable (15-0 used for flash region locking)
Referenced by bootloader_mode_check(), and main().
#define BOOT_LED LED0_GPIO |
UI displaying the bootloader status.
Referenced by program_memory(), and start_application_with_wdt().
#define BOOT_LED_OFF_LVL 1 |
ON level for the BOOT_LED.
Referenced by program_memory().
#define BOOT_LED_ON_LVL 0 |
ON level for the BOOT_LED.
Referenced by program_memory(), and start_application_with_wdt().
#define BOOT_LOAD_PIN GPIO_PUSH_BUTTON_0 |
GPIO pin used to activate the bootloader mode.
Referenced by bootloader_mode_check().
#define BOOT_LOAD_PIN_ACTIVE_LVL PUSH_BUTTON_0_DOWN_LEVEL |
Active state of GPIO pin used to activate the bootloader mode.
Referenced by bootloader_mode_check().
#define CONSOLE_OUTPUT_ENABLED ENABLE |
Enable/disable the Console message output.
#define FIRMWARE_AES_ENABLED ENABLE |
Configuration of the bootloader.
Enable/disable the AES Decryption
#define FIRMWARE_IN_FILE_NAME "0:firmware.bin" |
Firmware file input name.
#define FLASH_BUFFER_SIZE (FLASH_PAGE_SIZE) |
Buffer size to be used for programming.
#define SECURITY_BIT_ENABLED DISABLE |
Enable/disable the Security bit after firmware upgrade.
#define VERIFY_PROGRAMMING_ENABLED ENABLE |
Enable/disable the verification of memory after programming.