SLAU319AF July 2010 – September 2022
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-1 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.
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.