Freescale Semiconductor 802.15.4 manual 3 Crt0.c and Crt.h

Page 40

NOTE

This file can also be used with the MC908HCS08GT60 MCU.

5.3.3 Crt0.c and Crt.h

These files contain the basic initialization code (basic system clock, memory and stack setup). The normal basic init file(s) (like the start08.c from Metrowerks) is not needed when the Embedded Bootloader is embedded.

In an 802.15.4/Zigbee application with Embedded Bootloader, these files only contain the _startupdata structure. The Embedded Bootloader handles all the basic initialization (memory and stack setup) of the application. That is, the application’s main() function will be the first item called (entry point).

NOTE

Do not include basic initialization (memory and stack setup) when building an application with the Embedded Bootloader. Place any necessary initialization function calls in the main() function. Whatever, the initialization function or only the _startupdata structure is included is controlled by compiler #defines. See Section 5.2.1, Compiler Defines Application for more information.

5-4

Embedded Bootloader Reference Manual, Rev 0.0

Freescale Semiconductor

Image 40
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