Boot Assist Module (BAM)
MPC5565 Microcontroller Reference Manual, Rev. 1.0
Freescale Semiconductor
15-13
The BAM program then reads the disable Nexus bit [DISNEX] in the SIU_CCR register to
determine the censorship status of the MCU. If Nexus is disabled, the MCU is censored and the
password is compared to a password stored in the shadow row in internal flash memory.
If Nexus is enabled, the MCU is not censored or booting from external flash and the password is
compared to the constant value = 0xFEED_FACE_CAFE_BEEF.
If the password fails any validity tests, the MCU stops responding to all stimulus. To repeat boot
operation, the MCU needs to be reset by external reset or by watchdog. If the password is valid,
the BAM program refreshes the e200z6 watchdog timer and the next step in the protocol can be
performed.
2. Download the start address, VLE bit, and the download size.
The host computer must send a FlexCAN message with an ID = 0x012 that contains:
— 32-bit start address in internal SRAM indicating where to store the succeeding data in memory;
— 32-bit number containing a 1-bit variable length encoded (VLE) flag followed by a 31-bit
length field that contains the number of data bytes to receive and store in memory before
switching to execute the code just loaded.
The start address is expected on a 32-bit word boundary, therefore the least significant 2 bits of the
address are ignored. FlexCAN messages with other IDs or fewer data bytes are ignored.
Set the VLE bit in the serial download data (most significant bit in the LENGTH word) if the code
to download uses VLE instructions.
When a valid message is received, the BAM transmits a FlexCAN message with an ID = 0x002
that contains the received data. The host computer must not send another FlexCAN message until
it receives the echo from the previous message. A FlexCAN message sent before the echo is
received is ignored.
3. Download the data.
The host computer must send a succession of FlexCAN messages with ID = 0x013 that contains
raw binary data (the data length is variable). Each data byte received is stored in MCU memory,
starting at the address specified in the previous step and incrementing through memory until the
number of data bytes received and stored in memory matches the number specified in the previous
step. FlexCAN messages with ID values other than 0x013 are ignored.
When a valid message is received, the BAM transmits a FlexCAN message with an ID = 0x003
that contains the data received. The host computer must not send another FlexCAN message until
it receives the echo from the previous message. A FlexCAN message sent before the echo is
received is ignored.
Содержание MPC5565
Страница 18: ...MPC5565 Microcontroller Reference Manual Devices Supported MPC5565 MPC5565 RM Rev 1 0 09 2007...
Страница 34: ...MPC5565 Reference Manual Rev 1 0 Freescale Semiconductor 15...
Страница 35: ...MPC5565 Reference Manual Rev 1 0 16 Freescale Semiconductor...
Страница 325: ...Error Correction Status Module ECSM MPC5565 Microcontroller Reference Manual Rev 1 0 8 16 Freescale Semiconductor...
Страница 515: ...External Bus Interface EBI MPC5565 Microcontroller Reference Manual Rev 1 0 12 70 Freescale Semiconductor...
Страница 553: ...Flash Memory MPC5565 Microcontroller Reference Manual Rev 1 0 13 38 Freescale Semiconductor...
Страница 559: ...SRAM MPC5565 Microcontroller Reference Manual Rev 1 0 14 6 Freescale Semiconductor...
Страница 577: ...Boot Assist Module BAM MPC5565 Microcontroller Reference Manual Rev 1 0 15 18 Freescale Semiconductor...
Страница 895: ...Deserial Serial Peripheral Interface DSPI MPC5565 Microcontroller Reference Manual Rev 1 0 19 72 Freescale Semiconductor...
Страница 973: ...Preface MPC5565 Microcontroller Reference Manual Rev 1 0 21 36 Freescale Semiconductor...
Страница 1145: ...MPC5565 Register Map MPC5565 Microcontroller Reference Manual Rev 1 0 A 60 Freescale Semiconductor...
Страница 1153: ...Calibration MPC5565 Microcontroller Reference Manual Rev 1 0 B 8 Freescale Semiconductor...