AN1154 STMicroelectronics, AN1154 Datasheet - Page 82

no-image

AN1154

Manufacturer Part Number
AN1154
Description
8031-PSD DESIGN TUTORIAL
Manufacturer
STMicroelectronics
Datasheet
AN1154 - APPLICATION NOTE
d. RS-232 cable not attached, main Flash is blank or invalid
8031 action:
e. RS-232 cable attached, main Flash is blank or invalid
8031 action:
Now, the system is in normal operating mode. More 8031 action:
Normal application code can now be executed from main Flash memory.
f. RS-232 cable attached, main Flash is valid, system requests a download of boot memory
8031 action:
Now, the system is in normal operating mode. More 8031 action:
Normal application code can now be executed from main Flash memory.
For of any of these host UART download options, it is assumed that the normal boot (EES0/EES1) area
is programmed the very first time by a device programmer before the PSD is installed on the circuit card
or by the JTAG interface while the PSD is in-system.
82/83
Boot from EES0/EES1
Run a checksum on the Flash memory
Check the UART for a pending host download request of main Flash (Figure 62)
Wait until any UART traffic is present (Figure 62)
Boot from EES0/EES1
Run a checksum on the Flash memory
Check the UART for a pending host download request of main Flash (Figure 62)
Program the main Flash memory with data from the UART
Set a bit in the PSD VM register to put main Flash into program space (Figure 63)
Set the SWAP bit in PSD, which swaps EES0/EES1 with FS0 (Figure 64)
Set a bit in the PSD VM register to put the EEPROM into data space (Figure 65)
Check the UART for a host download request of boot memory
Set the ENABLE_DATA_HALF bit in the PSD if no boot download request exists
Boot from EES0/EES1
Run a checksum on the Flash memory
Check the UART for a pending host download request of main Flash (Figure 62)
Set a bit in the PSD VM register to put main Flash into program space (Figure 63)
Set the SWAP bit in PSD, which swaps EES0/EES1 with FS0 (Figure 64)
Set a bit in the PSD VM register to put the EEPROM into data space (Figure 65)
Check the UART for a host download request of boot memory
Program the EEPROM boot memory in EES0 and EES1 with data from the UART
Run a checksum on EES0 and EES1
Set the ENABLE_DATA_HALF bit in the PSD
Enable data access of EES2 and EES3
to protect the boot code in EES0 and EES1 from inadvertent writes

Related parts for AN1154