
3.4.4.3 RX Password
3.4.4.4 Mass Erase
3.4.4.5 Erase Segment
www.ti.com
Data Frame
The following data bytes are succeeded by the checksum bytes CKL (low byte) and CKH (high byte). Ifthe receipt and programming of the appropriate data block was successful, an acknowledge characterDATA_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 for addresses0200h to FFFFh, which reduces programming/verification time to 50%. Online verificationmeans that the data is immediately verified with the data that is written into the flash withouttransmitting it again. In case of an error, the loadable bootstrap loader BL_150S_14x.txtadditionally stores the first incorrectly written location address+3 into the error address bufferin the RAM at address 0200h (021Eh for F14x devices).
The receive password command is used to unlock the password-protected commands, which performreading, 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 alwayslocated at addresses FFE0h to FFFFh. Data bytes D1 to D20h hold the password information starting withD1 at address FFE0h.
If the receipt and verification of the password is correct, a positive acknowledge DATA_ACK is sent backby the BSL, and the password-protected commands become unlocked. Otherwise the BSL confirms with aDATA_NAK.
Once the protected commands become unlocked, they remain unlocked until another BSL entry isinitiated.
The mass erase command erases the entire flash memory area (main memory plus information memory,see corresponding data sheet). It is not password protected.
All parameters shown in Table 3-1 are mandatory. After erasing, an acknowledge character DATA_ACK issent back by the BSL.
Mass erase initializes the password area to 32 times 0FFh.
Note: BSL versions V2.01 and higher support automatic clearing of the LOCKA bit protectinginformation flash memory. When the BSL is entered from a reset condition, LOCKA iscleared by the BSL in order to mass erase the flash, including information memory. Whenthe BSL is entered in-application, user software should take care that LOCKA is written as 1prior to initiating the BSL. Otherwise, information flash will not be erased during a BSL masserase.
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-numberedaddress within the segment to be erased is valid. After segment erasing, an acknowledge characterDATA_ACK is sent back by the BSL (V1.40 or lower).
BSL versions V1.60 or higher perform a subsequent erase check of the corresponding segment andrespond with a DATA_NAK if the erasure was not successful. In this case, the first non-erased locationaddress + 1 is stored in the error address buffer in the RAM at address 0200h (021Eh for F14x devices).In this version, a problem occurs if only one of the information memory segments is erased. In this case,an error is reported, because an automatic erase check over the whole information memory is performed.As a solution, either erase the whole information memory or do a separate erase check after the erase,even if the erase reported an error.
SLAU265 – February 2009 ROM-Based Bootstrap Loader Protocol 19Submit Documentation Feedback