Freescale Semiconductor 802.15.4 manual Chapter Using the Embedded Bootloader, Upload Firmware

Page 13

Chapter 2

Using the Embedded Bootloader

This chapter describes the Embedded Bootloader functionality. A detailed description of the functions briefly mentioned in this chapter can be found in Chapter 7.

2.1 Upload Firmware

The Embedded Bootloader can be used in different system configurations depending on the PCB and the application. The application should have a user interface feature that makes it possible for the application to call the Enable_Download_Firmware() function:

The application can optionally call the Hard_Reset() function to perform a reset, or the board can be reset manually. The board will now start up in Embedded Bootloader mode.

Start the PC-Tool. See Chapter 3 for more information.

2.1.1 Use Case One

In this case, users send a specific command via the UART to enable firmware upload

MC908HCS08GB60(1)/MC13192

PC

BApplication

o

oNVM

t

l 802.15.4 MAC

a

d 802.15.4 PHY e

r Device Driver UART(2)

1)Or MC908HCS08GT60

2)Or USB

RS232

Test Tool

UART or USB

Figure 1 Application Supporting RS232 UART or USB Interface

Freescale Semiconductor

Embedded Bootloader Reference Manual, Rev. 0.0

2-1

Image 13
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 Target Chapter Embedded Bootloader DescriptionAxiom AXM-0308 Ported TargetsPotential Issues FeaturesBenefits Optional Firmware Upload Settings Upload Firmware Chapter Using the Embedded BootloaderUse Case One Use Case Two Safe Mode BootUpdating Non-volatile Memory NVM An Example of How to Change the MAC AddressUart Baud Rate System Bus FrequencyChapter Test Tool Zigbee Flash Tool Graphical User Interface GUI Version Using the Tools Menu OptionView Menu Option Using the View Menu OptionFirmware Upload Selecting the Firmware File to UploadAfter a Successful Firmware Upload Changing the NVM Data in Flash or File Using the Help MenuSystem Configuration Window Command Line Version Parameter List Command Line Version CMDFlash Erase Disabled Example Normal Use Example DefaultEmbedded Bootloader Reference Manual, Rev Programming To An Empty Erased Board Chapter Embedded Bootloader ProgrammingConnection 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 Chapter Application Integration Reference Guide Embedded Bootloader ImageProduct Deliverables Application Support FilesApplication Unreferenced SymbolsApplication Linker File Compiler DefinesApplication Support Files System Clock SetupDigiType.h 2 Gb60io.h3 Crt0.c and Crt.h NVData.c and NVData.h EmbeddedBootloader.h and EmbeddedBootloader.cISRVectors.c DummyIsr.c Chapter Port Integration Reference Guide Embedded Bootloader Build Environment1 HCS08 Compiler 2 HCS08 LinkerEmbeddedBootloaderFunctionalityLib.Lib EmbeddedBootloader.mcp2 HCS08FlashLib.Lib Source FilesCode and Data Segments Porting to a Specific TargetStandard Libraries Compiler #definesTarget.h Source FilesEmbeddedBootloaderTarget.h ResetVector.cHWInit.c HWInit.hMain.c 802.15.4/Zigbee Application Accessible Functions Chapter Embedded Bootloader Public Function DescriptionEnableDownloadFirmware Embedded Bootloader boot flag UpdateNVRAM HardResetFLICGSetup NVFlashSetupOutput None UARTPortSelectEmbedded Bootloader Reference Manual, Rev 128 Direct Port Registers Chapter Embedded Bootloader Memory Map1BFF 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 Folder Structure Appendix a Release Folder and File StructureFile Structure EmbeddedBootloaderFunctionalityLib.Lib Functionality library Embedded Bootloader Reference Manual, Rev