Bootstrap loader
ST10F276
5.2.3
Booting steps
As Figure 6 shows, booting ST10F276 with the boot loader code occurs in a minimum of
four steps:
1. The ST10F276 is reset with P0L.4 low.
2. The internal new bootstrap code runs on the ST10 and a first level user code is
downloaded from the external device, via the selected serial link (UART0 or CAN1).
The bootstrap code is contained in the ST10F276 Test-Flash and is automatically run
when ST10F276 is reset with P0L.4 low. After loading a preselected number of bytes,
ST10F276 begins executing the downloaded program.
3. The first level user code runs on ST10F276. Typically, this first level user code is
another loader that downloads the application software into the ST10F276.
4. The loaded application software is now running.
Figure 6. Booting steps for ST10F276
Step 1
Entering bootstrap
External device
ST10F276
Step 2
Loading first level user code
Step 3
Loading the application
and exiting BSL
External device
Download
First level user code
ST10F276
Run bootstrap code
from Test-Flash
External device
Download
Application
ST10F276
Run first level code
from DPRAM @ FA40h
Step 4
External device
ST10F276
Run application code
5.2.4
Note:
Hardware to activate BSL
The hardware that activates the BSL during reset may be a simple pull-down resistor on
P0L.4 for systems that use this feature at every hardware reset. For systems that use the
bootstrap loader only temporarily, it may be preferable to use a switchable solution (via
jumper or an external signal).
CAN alternate function on Port4 lines is not activated if the user has selected eight address
segments (Port4 pins have three functions: I/O port, address segment and CAN). Boot via
CAN requires that four or less address segments are selected.
50/229