
DocID13284 Rev 2
307/564
UM0404
The bootstrap loader
Figure 126. Hardware provisions to activate the BSL
15.2.5 Memory
configuration in bootstrap loader mode
The configuration (that is, the accessibility) of the ST10F276’s memory areas after reset in
Bootstrap Loader mode differs from the standard case. Pin EA is evaluated when BSL mode
is selected in order to enable or not the external bus:
•
If EA = 1, the external bus is disabled (BUSACT0 = 0 in BUSCON0 register);
•
If EA = 0, the external bus is enabled (BUSACT0 = 1 in BUSCON0 register).
Moreover, while in BSL mode, accesses to the internal IFLASH area are partly redirected:
•
All code accesses are made from the special Test-Flash seen in the range 00’0000h to
00’01FFFh;
•
User IFLASH is only available for read and write accesses (Test-Flash cannot be read
nor written);
•
Write accesses must be made with addresses starting in segment 1 from 01'0000h,
whatever the value of ROMS1 bit in SYSCON register;
•
Read accesses are made in segment 0 or in segment 1 depending of ROMS1 value;
•
In BSL mode, by default, ROMS1 = 0 so the first 32 Kbytes of IFlash are mapped in
segment 0.
Example:
In default configuration, to program address 0, user must put the value 01'0000h in the
FARL and FARH registers, but to verify the content of the address 0 a read to 00'0000h
must be performed.
R
P0L.4
8k
Ω
max.
Circuit 1
P0L.4
P0L.4
Normal Boot
BSL
External
Signal
R
P0L.4
8k
Ω
max.
Circuit 2