Freescale Semiconductor 802.15.4 manual NVFlashSetup, FLICGSetup

Page 52

7.1.4 NV_Flash_Setup

Prototype:

void NV_Flash_Setup(void)

Description:

This function should never be called under normal conditions. However, it should be called if any of the other Embedded Bootloader functions malfunctions. The function sets up the flash functions (again), i.e. copies the flash routines to RAM for execution and initialize the HCS08 flash module.

Input:

None

Output

None

7.1.5 FL_ICG_Setup

Prototype:

void FL_ICG_Setup(void)

Description:

This function can be called by the application. The function could be automatically called if the external system clock is unstable/removed (from ISR function) and on power down/up (doze). This requires that the FL_ICG_Setup is called from an ISR function.

NOTE

Application programmers can make their own system clock setup function or call this function and just modify the ICG and MC13192 register values in the NVM section.

Input:

None

Output

None

7-4

Embedded Bootloader Reference Manual, Rev 0.0

Freescale Semiconductor

Image 52
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-0308Potential Issues FeaturesBenefits Optional Firmware Upload Settings Upload Firmware Chapter Using the Embedded BootloaderUse Case One 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 Embedded Bootloader Image Chapter Application Integration Reference GuideProduct Deliverables Application Support FilesUnreferenced Symbols ApplicationApplication Linker File Compiler DefinesSystem Clock Setup Application Support FilesDigiType.h 2 Gb60io.h3 Crt0.c and Crt.h NVData.c and NVData.h EmbeddedBootloader.h and EmbeddedBootloader.cISRVectors.c DummyIsr.c Embedded Bootloader Build Environment Chapter Port Integration Reference Guide1 HCS08 Compiler 2 HCS08 LinkerEmbeddedBootloader.mcp EmbeddedBootloaderFunctionalityLib.Lib2 HCS08FlashLib.Lib Source FilesPorting to a Specific Target Code and Data SegmentsStandard Libraries Compiler #definesSource Files Target.hResetVector.c EmbeddedBootloaderTarget.hHWInit.c HWInit.hMain.c 802.15.4/Zigbee Application Accessible Functions Chapter Embedded Bootloader Public Function DescriptionEnableDownloadFirmware 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