Freescale Semiconductor 802.15.4 manual Use Case Two, Safe Mode Boot

Page 14

2.1.2 Use Case Two

In this use case, users push a button on the board to enable firmware upload. MC908HCS08GB60(1)/MC13192

BApplication

o

oNVM

t

l 802.15.4 MAC o

a

d 802.15.4 PHY e

r Device Driver GPIO

1)Or MC908HCS08GT60

I/O

User Interface

Push Buttons

S101 S102 S103 S104

Figure 2 Application Supporting an I/O Interface

2.1.3 Safe Mode Boot

The Safe Mode Boot Mode is a special startup mode where the Embedded Bootloader boots using safe system settings thereby resetting the system to a known (default) state.

The Safe Mode Boot can be used to disable the detection of an invalid/malfunctioning application due to items such as code errors, corrupt NVM data, or internal flash programming errors among others. All the NVM memory (except production data and MAC address) is completely erased.

The Safe Mode Boot can also be used to upload firmware without first calling the

Enable_Download_Firmware() function. This could be useful if the use cases (as shown in Section 2.1, Upload Firmware) are not applicable.

Users must perform the following steps to conduct a Safe Mode Boot.

1.Power off the board

2.Disconnect RS232 UART cable (if the RS232 UART interface is used)

3.Short UART TX and RX (pin 2-3) (This works even though the 802.15.4/Zigbee application does not use the UART interface.)

4.Power up again. All LEDs are off.

5.Wait until LED1 goes on (< 1 second)

6.Power off the board

2-2

Embedded Bootloader Reference Manual, Rev 0.0

Freescale Semiconductor

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