Freescale Semiconductor 802.15.4 manual Embedded Bootloader boot flag

Page 50

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.

7-2

Embedded Bootloader Reference Manual, Rev 0.0

Freescale Semiconductor

Image 50
Contents 802.15.4/Zigbee Embedded Bootloader How to Reach Us USA/Europe/Locations Not Listed Contents Embedded Bootloader Programming Embedded Bootloader Public Function Description Audience Conventions References Chapter Embedded Bootloader Description TargetPorted Targets Axiom AXM-0308Benefits FeaturesPotential Issues Optional Firmware Upload Settings Use Case One Chapter Using the Embedded BootloaderUpload Firmware Safe Mode Boot Use Case TwoAn Example of How to Change the MAC Address Updating Non-volatile Memory NVMSystem Bus Frequency Uart Baud RateChapter Test Tool Zigbee Flash Tool Using the Tools Menu Option Graphical User Interface GUI VersionUsing the View Menu Option View Menu OptionSelecting the Firmware File to Upload Firmware UploadAfter a Successful Firmware Upload Using the Help Menu Changing the NVM Data in Flash or FileSystem Configuration Window Command Line Version CMD Command Line Version Parameter ListNormal Use Example Default Flash Erase Disabled ExampleEmbedded Bootloader Reference Manual, Rev Chapter Embedded Bootloader Programming Programming To An Empty Erased BoardConnection Assistant Window Load Executable Window Status Window Upgrading The Embedded Bootloader Connection Assistant Window Programmer Expert Window S19 File Window Status Window Embedded Bootloader Reference Manual, Rev Product Deliverables Embedded Bootloader ImageChapter Application Integration Reference Guide Application Support FilesApplication Linker File Unreferenced SymbolsApplication Compiler DefinesDigiType.h System Clock SetupApplication Support Files 2 Gb60io.h3 Crt0.c and Crt.h ISRVectors.c EmbeddedBootloader.h and EmbeddedBootloader.cNVData.c and NVData.h DummyIsr.c 1 HCS08 Compiler Embedded Bootloader Build EnvironmentChapter Port Integration Reference Guide 2 HCS08 Linker2 HCS08FlashLib.Lib EmbeddedBootloader.mcpEmbeddedBootloaderFunctionalityLib.Lib Source FilesStandard Libraries Porting to a Specific TargetCode and Data Segments Compiler #definesSource Files Target.hResetVector.c EmbeddedBootloaderTarget.hMain.c HWInit.hHWInit.c EnableDownloadFirmware Chapter Embedded Bootloader Public Function Description802.15.4/Zigbee Application Accessible Functions Embedded Bootloader boot flag HardReset UpdateNVRAMNVFlashSetup FLICGSetupUARTPortSelect Output NoneEmbedded Bootloader Reference Manual, Rev Chapter Embedded Bootloader Memory Map 128 Direct Port Registers1BFF 4BFF 4DFF 4FFF 8BFF 8DFF 8FFF Embedded Bootloader Reference Manual, Rev FFB0 Ffbf Cursive = fixed register and vectors in flash Embedded Bootloader Reference Manual, Rev Appendix a Release Folder and File Structure Folder StructureFile Structure EmbeddedBootloaderFunctionalityLib.Lib Functionality library Embedded Bootloader Reference Manual, Rev