Freescale Semiconductor 802.15.4 Chapter Embedded Bootloader Memory Map, Direct Port Registers

Page 55

Chapter 8

Embedded Bootloader Memory Map

Table 1. Zigbee (MC9S08GB60/GT60) 802.15.4 Embedded Bootloader Memory Map

512 Bytes in a physical flash sector

 

Sector

 

 

Address

 

 

Address

 

 

Size in

 

 

General HCS08 Map

 

 

Embedded Bootloader Map

 

 

Number

 

 

in hex

 

 

in hex

 

 

bytes

 

 

and Usage

 

 

 

 

 

 

 

 

 

start

 

 

end

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(sector

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

erase

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

address)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

NM

 

 

0

 

 

7F

 

 

128

 

 

Direct Port Registers

 

 

Direct Port Registers

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

NM

 

 

80

 

 

FE

 

 

127

 

 

Direct Addressing RAM

 

 

Direct Addressing RAM "Fast

 

 

 

 

 

 

 

 

 

 

 

 

 

 

"Fast memory"

 

 

memory"

 

 

 

NM

 

 

FF

 

 

FF

 

 

1

 

 

Direct Addressing

 

 

Sleep variable:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RAM "Fast memory"

 

 

gSeqPowerSaveMode

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

NM

 

 

100

 

 

1FF

 

 

256

 

 

RAM

 

 

Embedded Bootloader stack

 

 

NM

 

 

200

 

 

F5F

 

 

3424

 

 

RAM

 

 

 

 

 

 

NM

 

 

F60

 

 

F6F

 

 

16

 

 

RAM

 

 

Unint RAM for init structure

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

NM

 

 

F70

 

 

F71

 

 

2

 

 

RAM

 

 

NV_RAM_ptr

 

 

 

NM

 

 

F72

 

 

F7F

 

 

14

 

 

RAM

 

 

Flash routines data

 

 

 

NM

 

 

F80

 

 

FBC

 

 

61

 

 

RAM

 

 

Flash routines critical code

 

 

NM

 

 

FBD

 

 

106F

 

 

179

 

 

RAM

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

NM

 

 

1070

 

 

1077

 

 

8

 

 

RAM

 

 

Static variables

 

 

 

NM

 

 

1078

 

 

107F

 

 

8

 

 

RAM

 

 

Static no init variables

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8

 

 

1080

 

 

109E

 

 

31

 

 

FLASH (section 1)

 

 

 

 

 

 

8

 

 

109F

 

 

11FF

 

 

353

 

 

FLASH (section 1)

 

 

 

 

 

 

9

 

 

1200

 

 

13FF

 

 

512

 

 

FLASH (section 1)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10

 

 

1400

 

 

15FF

 

 

512

 

 

FLASH (section 1)

 

 

802.15.4/App. NV RAM block

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0 (share)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

11

 

 

1600

 

 

17FF

 

 

512

 

 

FLASH (section 1)

 

 

802.15.4/App. NV RAM block

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 (share)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Freescale Semiconductor

 

 

Embedded Bootloader Reference Manual, Rev. 0.0

8-1

 

Image 55
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 Application Support Files Embedded Bootloader ImageChapter Application Integration Reference Guide Product DeliverablesCompiler Defines Unreferenced SymbolsApplication Application Linker File2 Gb60io.h System Clock SetupApplication Support Files DigiType.h3 Crt0.c and Crt.h NVData.c and NVData.h EmbeddedBootloader.h and EmbeddedBootloader.cISRVectors.c DummyIsr.c 2 HCS08 Linker Embedded Bootloader Build EnvironmentChapter Port Integration Reference Guide 1 HCS08 CompilerSource Files EmbeddedBootloader.mcpEmbeddedBootloaderFunctionalityLib.Lib 2 HCS08FlashLib.LibCompiler #defines Porting to a Specific TargetCode and Data Segments Standard LibrariesTarget.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