Reset_Vector.c; Embedded_Bootloader_Target.h - Freescale Semiconductor 802.15.4/Zigbee Reference Manual

802.15.4/zigbee embedded bootloader
Table of Contents

Advertisement

#define
mSETUP_PORT_B
#define
mSETUP_PORT_C
Optional for Safe Mode Boot indicator function (LEDs as output):
#define
mSETUP_PORT_D
PTDDD = (0x01 | 0x02| 0x08 | 0x10);

6.4.2 Reset_Vector.c

The system reset vector.
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
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
Use caution if the version number is changed. You should only change
the PCB board number (
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
//PTADD = 0x00;
//PTBD = 0x00;\
//PTBPE = 0x00;\
//PTBDD = 0x00;
PTCDD = (ABEL_RESET_PIN | ABEL_ATT_PIN );
PTDPE = 0x00;\
NOTE
Embedded_Bootloader_Target.h
NOTE
#define EMBEDDED_BOOTLOADER_TARGET
Embedded Bootloader Reference Manual, Rev. 0.0
//All Port A input
to achieve a
)
6-5

Advertisement

Table of Contents
loading

Table of Contents