SLAU887 February 2023 MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G3105 , MSPM0G3105-Q1 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3505 , MSPM0G3505-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1 , MSPM0L1105 , MSPM0L1106 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346
Structure
Header |
Length |
CMD |
Address |
Data |
CRC32 | ||||
---|---|---|---|---|---|---|---|---|---|
0x80 |
0x09 |
0x00 |
0x23 |
A1...A4(Start Address) |
A1...A4(End Address) |
C1 |
C2 |
C3 |
C4 |
Description
The Flash range erase command is used to erase the specified flash memory region. Flash is erased sector wise (1 KB), erasing lesser size is not possible.
When the Start and End address reside in different flash sectors, the BSL erases all the flash sectors in between the Start and End address, including sectors that contains these addresses.
This command can be used to erase only the Main Flash memory. Non-main erase is not possible.
End address should never be less than Start address.
Protected
Yes
Address
Start address of the memory region to be erased. A1...A4, where A1 is the Least Significant Byte of the 32 bit address.
Data
End address of the memory region to be erased. A1...A4, where A1 is the Least Significant Byte of the 32 bit address.
Command Returns
BSL Acknowledgment and BSL core response with Message about the Status of the operation. See section GUID-20221116-SR0T-5XQF-V5HX-0PC5JLS5BBJ2.html for more details.
Example
Host: 80 09 00 23 00 01 00 00 FF 03 00 00 2B E6 BE D8
BSL: 00 08 02 00 3B 00 38 02 94 82