1-10
56F8xx: Serial Bootloader User Manual
MOTOROLA
Bootloader
•
Application COP vector - To use COP interrupt vector in an application loaded via
Bootloader, the entry point for the COP ISR must be located at address 0x0082 in Program
memory
•
Application start delay variable must be set at address 0x0085 in Program Flash
•
Restricted resources use - The application cannot occupy Reset and COP interrupt
vectors, and cannot place code into Boot Flash memory area. There is no way to place any
initialized variable from the application into internal data RAM while loading. This
memory area is used by Bootloader. All data from the S-Record file that address to the
restricted area will be ignored. External Program memory is unavailable while loading the
application because the Bootloader is performed in DSP Mode 0A memory map.
The Bootloader provides a configuration variable (BSP_BOOTLOADER_DELAY) can be
defined in the Bootloader’s appconfig.h file that determines the application’s start delay time-out.
Possible values of BSP_BOOTLOADER_DELAY:
If there is no BSP_BOOTLOADER_DELAY set in the appconfig.h file, the default value for
time-out is 30 seconds.
1.1.7
S-Record Generation
Figure 1-5
illustrates how a user’s application within Code Warrior can be set up to generate an S-Record
needed by the Bootloaders to program the user’s application into the 56F8xx device’s Flash.
0
Disable the Bootloader, start the application
immediately. After loading the application with this
setting, there are only two ways to re-enter Bootloader:
•
Reload the Bootloader from Metrowerks
CodeWarrior into Boot Flash
•
Reprogram the value of the start delay variable
located at address 0x0083 in the Program Flash
to zero value (0x0000) in the loaded application
0 - 254
Set waiting time for the start of the S-Record file for
0-255 seconds before the start of a previously-loaded
application
255
Set waiting time to infinity. After reset, the Bootloader
waits for the S-Record file without counting down any
time-out
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..