7-2 Embedded Bootloader Reference Manual, Rev 0.0 Freescale Semiconductor
NOTE
All bits are enabled by default. Bits can only be disabled (erased in flash)
– never enabled. The bits are enabled again by the new firmware.
Input:
interface_state - The user selectable options. The below values should be
OR’ed together:
Embedded Bootloader control flags:
#define NO_BIT_ENABLED ((uint8_t)0x00)
// Option: “Skip flash erase”
#define ERASE_FLASH ((uint8_t)0x01)
// Option: “Do not reset after upload”
#define BOOT_AFTER_DOWNLOAD ((uint8_t)0x02)
// Option: “Erase production data”
#define KEEP_NV_RAM ((uint8_t)0x04)
// Option: “Skip firmware checksum verification”
#define PERFORM_FLASH_VERIFICATION ((uint8_t)0x08)
NOTE
The Embedded Bootloader control flags correspond to the “optional
firmware upload settings” which can be disabled/enabled in the Zigbee
Flash Tool. See Section 1.4.1, Embedded Bootloader Description for
details.
The value is inverted. To enable the bit mask option, the setting must be
set to 0. To disable the bit mask option, the setting must be set to 1.
Use firmware_state – control if Embedded Bootloader or the application must be started.
To enable download, the setting must be = DO_UPDATE_FIRMWARE.
Embedded Bootloader boot flag:
#define EXECUTE_APPLICATION ((uint8_t)0x55)
#define DO_UPDATE_FIRMWARE ((uint8_t)0x00)
#define FLASH_EMPTY ((uint8_t)0xFF)
Output:
True - Ready for reset.
False - Something went wrong in changing the state.