An4465 Serial Programming Bam Vs Baf Differences Stmicroelectronics
An4465 Serial Programming Bam Vs Baf Differences Stmicroelectronics
Application note
Serial Programming: BAM vs. BAF differences
Introduction
This document describes the differences between the Boot Assist Module (BAM) presents
on SPC56 family and the Boot Assist Flash (BAF) presents on SPC57 family.
The purpose of this document is to highlight the differences between the two modules (BAM
and BAF).
Contents
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.3 Censorship
The internal Flash memory can be enabled or disabled it depends on the values stored in
the censorship word and serial boot control word in the shadow row of the internal Flash
memory, the Nexus port can be enabled or disabled, the password received in the serial
boot mode is compared with the fixed public password or compared to a user programmable
password in the internal Flash memory.
The censorship word is a 32-bit word of data stored in the shadow row of internal Flash
memory. This memory location is read and interpreted by hardware as part of the boot
process and is used in conjunction with the BAM configuration pin to enable/disable the
internal Flash memory and the Nexus interface. The address of the Censorship word is
0x00FF_FDE0. The censorship word consists of two fields: censorship control and serial
boot control. The censorship word is programmed during manufacturing to be
0x55AA_55AA. This results in a device that is not censored and uses a Flash-based
password for serial boot mode.
The BAM program uses the state of the SIU_CCR DISNEX bit to determine whether the
serial password received in serial boot mode, should be compared to a public password
(fixed value of the 0xFEED_FACE_CAFE_BEEF) or needs to be compared to a Flash
password - 64-bit data, stored in the shadow row of internal Flash at address
0x00FF_FDD8. If the bit is set, the BAM uses the Flash serial password, if the bit is cleared,
it uses the public password.
• A valid serial password must be always programmed, regardless the boot mode used.
This provides capability to “rescue” the part using the serial boot mode, if the Flash
content becomes corrupted for whatever reason.
The communication is done in half duplex manner and any transmission from host is
followed by the MCU transmission:
1. Host sends data to MCU and start waiting.
2. The MCU echoes to host the data received.
3. The host verifies if the echo is correct:
– If data is correct, the host can send the next byte of data
– If data is not correct, it is assumed the MCU has not correctly received the data
and the only practical option is for the Host to reset the MCU and start again.
All multi-byte data structures are sent with MSB first.
4 Revision history
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
ST PRODUCTS ARE NOT DESIGNED OR AUTHORIZED FOR USE IN: (A) SAFETY CRITICAL APPLICATIONS SUCH AS LIFE
SUPPORTING, ACTIVE IMPLANTED DEVICES OR SYSTEMS WITH PRODUCT FUNCTIONAL SAFETY REQUIREMENTS; (B)
AERONAUTIC APPLICATIONS; (C) AUTOMOTIVE APPLICATIONS OR ENVIRONMENTS, AND/OR (D) AEROSPACE APPLICATIONS
OR ENVIRONMENTS. WHERE ST PRODUCTS ARE NOT DESIGNED FOR SUCH USE, THE PURCHASER SHALL USE PRODUCTS AT
PURCHASER’S SOLE RISK, EVEN IF ST HAS BEEN INFORMED IN WRITING OF SUCH USAGE, UNLESS A PRODUCT IS
EXPRESSLY DESIGNATED BY ST AS BEING INTENDED FOR “AUTOMOTIVE, AUTOMOTIVE SAFETY OR MEDICAL” INDUSTRY
DOMAINS ACCORDING TO ST PRODUCT DESIGN SPECIFICATIONS. PRODUCTS FORMALLY ESCC, QML OR JAN QUALIFIED ARE
DEEMED SUITABLE FOR USE IN AEROSPACE BY THE CORRESPONDING GOVERNMENTAL AGENCY.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.