EasyManua.ls Logo

ST SPC560P34 - Page 814

ST SPC560P34
936 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Boot Assist Module (BAM) RM0046
814/936 Doc ID 16912 Rev 5
Download and execute the new code
From a high level perspective, the download protocol follows these steps:
1. Send message and receive acknowledge message for autobaud or autobit rate
selection. (optional step).
2. Send 64-bit password.
3. Send start address, size of downloaded code in bytes, and VLE bit
(d)
.
4. Download data.
5. Execute code from start address.
Each step must be complete before the next step starts.
The step from 2 to 5 are correct if autobaud is disabled. Otherwise, to measure the baud
rate, some data is sent from the host to the MCU before step 2 (see Section 33.6.1,
“Autobaud feature).
The communication is done in half duplex manner. Any transmission from the host is
followed by the MCU transmission:
1. Host sends data to MCU and start waiting.
2. MCU echoes to host the data received.
3. MCU verifies if echo is correct.
If data is correct, the host can continue to send data.
If data is not correct, the host stops transmitting and the MCU needs to be reset.
All multi-byte data structures are sent MSB first.
A more detailed description of these steps follows.
Download 64-bit password and password check
The first 64 received bits represent the password. This password is sent to the Password
Check procedure for verification.
Password check data flow is shown in Figure 483 where:
SSCM_STATUS[SEC] = 1 means flash secured
SSCM_STATUS[PUB] = 1 means flash with public access.
In case of flash with public access, the received password is compared with the public
password 0xFEED_FACE_CAFE_BEEF.
16 19200 400 K
20 24000 500 K
40 48000 1 M
d. Since the device supports only VLE code and does not support Book E code, this flag is used only for
backward compatibility.
Table 440. Serial boot mode without autobaud—baud rates
Crystal frequency
(MHz)
LINFlex baud rate
(baud)
FlexCAN bit rate
(bit/s)

Table of Contents

Related product manuals