Boot Assist Module (BAM)
MPC5565 Microcontroller Reference Manual, Rev. 1.0
15-14
Freescale Semiconductor
NOTE
Internal SRAM is protected by 64-bit error correction (ECC) hardware. All
writes to uninitialized internal SRAM must be 64-bits wide, or an ECC error
occurs. The BAM buffers 8 bytes of downloaded data before executing a
single 64-bit write. Only internal SRAM supports 64-bit writes.
Downloading data to other RAM causes errors.
If the start address of the downloaded data is not at an 8-byte boundary, the
BAM writes 0x00 to the memory locations from the preceding 8-byte
boundary to the start address (maximum 4 bytes). The BAM also writes
0x00 to all memory locations from the last byte of data downloaded to the
following 8-byte boundary (maximum 7 bytes).
4. Execute code.
The BAM waits for the last FlexCAN message transmission to complete. Then the FlexCAN
controller is disabled. CNTXA and CNRXA become GPIO inputs. The BAM branches to the
starting address of the downloaded code, as specified in step 2.
NOTE
The code that downloads and executes must:
•
Periodically refresh the e200z6 watchdog timer; or
•
Change the timeout period to a value that does not cause resets during normal operation.
15.3.2.3.4
eSCI Serial Boot Mode Download Process
The eSCI serial boot mode download process contains the following steps:
1. Download the 64-bit password.
2. Download the start address, VLE flag, and the number of data bytes to download.
3. Download the data.
Table 15-10. FlexCAN Serial Boot Mode Download Process
Step
Host Message Sent
MCU Response
Message
Action
1
FlexCAN ID = 0x011 +
64-bit password
FlexCAN ID = 0x001
+ 64-bit password
Password checked for validity and compared against
stored password. e200z6 watchdog timer is
refreshed if the password check is successful.
2
FlexCAN ID = 0x012 +
32-bit store a
32-bit number of bytes
FlexCAN ID = 0x002
+ 32-bit store address
+ 32-bit number of bytes
The load address and the number of bytes to
download are stored for future use.
3
FlexCAN ID = 0x013
+ 8 to 64 bits of raw binary
data
FlexCAN ID = 0x003
+ 8 to 64 bits of raw binary data
Each data byte received is written to MCU memory,
starting at the address specified in the previous step
and incrementing until the number of data bytes
received and stored matches the number of bytes to
download and store (specified in step 2).
4
None
None
The BAM program returns I/O pins and the FlexCAN
module to their reset state, then branches to the start
address of the stored data (specified in step 2).
Summary of Contents for MPC5565
Page 18: ...MPC5565 Microcontroller Reference Manual Devices Supported MPC5565 MPC5565 RM Rev 1 0 09 2007...
Page 34: ...MPC5565 Reference Manual Rev 1 0 Freescale Semiconductor 15...
Page 35: ...MPC5565 Reference Manual Rev 1 0 16 Freescale Semiconductor...
Page 553: ...Flash Memory MPC5565 Microcontroller Reference Manual Rev 1 0 13 38 Freescale Semiconductor...
Page 559: ...SRAM MPC5565 Microcontroller Reference Manual Rev 1 0 14 6 Freescale Semiconductor...
Page 973: ...Preface MPC5565 Microcontroller Reference Manual Rev 1 0 21 36 Freescale Semiconductor...
Page 1153: ...Calibration MPC5565 Microcontroller Reference Manual Rev 1 0 B 8 Freescale Semiconductor...