![](https://csdnimg.cn/release/download_crawler_static/11076571/bgb.jpg)
www.ti.com
Bootloader Protocol – 1xx, 2xx, and 4xx Families
11
SLAU319W–July 2010–Revised March 2019
Submit Documentation Feedback
Copyright © 2010–2019, Texas Instruments Incorporated
MSP430™ flash devices bootloader (BSL)
The following data bytes are succeeded by the checksum bytes CKL (low byte) and CKH (high byte). If
the receipt and programming of the appropriate data block was successful, an acknowledge character
DATA_ACK is sent back by the BSL. Otherwise, the BSL confirms with a DATA_NAK.
NOTE: BSL versions V1.40 and higher support online verification inside the MSP430 MCU for
addresses 0200h to FFFFh, which reduces programming and verification time by 50%.
Online verification means that the data is immediately verified with the data that is written
into the flash without transmitting it again. In case of an error, the loadable bootloader
BL_150S_14x.txt additionally stores the first incorrectly written location address+3 into the
error address buffer in the RAM at address 0200h (021Eh for F14x devices).
2.4.4.3 RX Password
The receive password command is used to unlock the password-protected commands, which perform
reading, writing, or segment-erasing memory access. It is not password protected.
Neither start address nor block length information is necessary, because the 32-byte password is always
located at addresses FFE0h to FFFFh. Data bytes D1 to D20h hold the password information starting with
D1 at address FFE0h.
The BSL responds with DATA_ACK when the package from the host is received correctly and has valid
content as shown in Table 2. The DATA_ACK does not reflect that the password is correct (that is, it
matches the content of FFE0h to FFFFh) or incorrect. If an incorrect password is sent, other commands
will respond with DATA_NAK, because the BSL is still locked.
After the protected commands are unlocked, they remain unlocked until another BSL entry is initiated.
2.4.4.4 Mass Erase
The mass erase command erases the entire flash memory area (main memory plus information memory,
see corresponding data sheet). This command is not password protected.
All parameters shown in Table 2 are mandatory. After erasing, an acknowledge character DATA_ACK is
sent back by the BSL.
Mass erase initializes the password area to 32 times 0FFh.
NOTE: BSL versions 2.01 and higher support automatic clearing of the LOCKA bit, which protects
information memory.
When entering the BSL by cold start (that is, by applying the BSL hardware entry sequence
on the RST and TST pins), the LOCKA bit is automatically unlocked. A mass erase that is
executed during BSL communication erases all parts of information memory and also main
memory.
When entering the BSL by warm start (that is, by jumping to the BSL application from a
software function), the LOCKA bit is not automatically unlocked. A mass erase performed in
this state does not erase the information memory. Therefore, when the BSL is called by
software, the user application must ensure that LOCKA is cleared before initialization of the
BSL, so a mass erase command can erase the information memory.
2.4.4.5 Erase Segment
The erase segment command erases specific flash memory segments. It is password protected.
The address bytes AL (low byte) and AH (high byte) select the appropriate segment. Any even-numbered
address within the segment to be erased is valid. After segment erasing, an acknowledge character
DATA_ACK is sent back by the BSL (V1.40 or lower).