Freescale Semiconductor 802.15.4 manual ResetVector.c, EmbeddedBootloaderTarget.h

Page 47

 

 

//PTADD

= 0x00;

//All Port A input

#define

mSETUP_PORT_B

//PTBD = 0x00;\

 

 

 

//PTBPE

=

0x00;\

 

 

 

//PTBDD

=

0x00;

 

#define

mSETUP_PORT_C

PTCDD =

(ABEL_RESET_PIN ABEL_ATT_PIN );

Optional for Safe Mode Boot indicator function (LEDs as output):

#define mSETUP_PORT_D PTDPE = 0x00;\

PTDDD = (0x01 0x02 0x08 0x10);

6.4.2 Reset_Vector.c

The system reset vector.

NOTE

The application does not have a reset vector. If a reset occurs in an application, the Embedded Bootloader’s reset vector is called.

6.4.3 Embedded_Bootloader_Target.h

Users must define the following #defines in the Embedded_Bootloader_Target.h to achieve a successful port.

Version number of the build:

//Version number update:

//- Big change (interface/main code structure/new feature) Y.xx, increment

Y

//- Smaller change (function code structure/bug fix) x.Yx, increment Y

//- Small change (bug fix) x.xY, increment Y

#define EMBEDDED_BOOTLOADER_VERSION "5.01" // Number used with all PCB/Targets

NOTE

Use caution if the version number is changed. You should only change

the PCB board number (#define EMBEDDED_BOOTLOADER_TARGET) to indicate a special PCB version.

Example for the TARGET_DIG528_2 and TARGET_DIG536_2:

#if defined TARGET_DIG528_2 defined TARGET_DIG536_2 // PCB board number for release

#define EMBEDDED_BOOTLOADER_TARGET "528&536"

//Setup port as output where "signal" must be set/cleared to indicate safe mode boot

#define SAFE_MODE_PORT_SETUP PTDDD = 0x01; // Port D bit 0

Freescale Semiconductor

Embedded Bootloader Reference Manual, Rev. 0.0

6-5

Image 47
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 TargetsBenefits FeaturesPotential Issues Optional Firmware Upload Settings Use Case One Chapter Using the Embedded BootloaderUpload Firmware 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 ISRVectors.c EmbeddedBootloader.h and EmbeddedBootloader.cNVData.c and NVData.h 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.cMain.c HWInit.hHWInit.c EnableDownloadFirmware Chapter Embedded Bootloader Public Function Description802.15.4/Zigbee Application Accessible Functions 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