10.5.1 Command Format – Host MCU to BM70/71 Module
ISDAP Opcode | ISDAP Data Length | ISDAP Data | ||||
---|---|---|---|---|---|---|
Start | Handle | Length | Data | |||
Byte Number | 0 | 1-2 | 3-4 | 5-6 | 7-8 | 9-18 |
Size (bytes) | 1 | 2 | 2 | 2 | 2 | 10 |
Value | 0x02 | 0x0FFF | 0x000E | 0x0112 | 0x000A | See the following table |
Byte Number | Value | Parameter Description | Length |
---|---|---|---|
9 | 0x03 | Memory type For the BM70/71 module, this value is fixed to 0x03, indicating Flash memory | 1 byte |
10 | 0x00 | Sub-memory type For the BM70/71 module, this value is fixed to 0x00, indicating eFlash memory | 1 byte |
11-14 | 0xXXXX_XXXX | Starting address of memory page to erase The MSb, 16 bits of the address value represents the bank number.The LSb, 16 bits represents the address within the specified bank and must be aligned to a 2-Kbyte boundary. | 4 bytes Format is LE For example, for an address of 0x0000_0800, first send the value the BM70/71 module LSB, 0x00 0x08 0x00 0x00 |
15-18 | 0xXXXX_XXXX | Number of bytes to erase Size value must be a multiple of 2048. If both the address value and the size value are set equal to zero, the entire Flash memory is erased all at once. | 4 bytes Format is LE For example, for a size of 0x0000_0800, first send the value to the BM70/71 module LSb, 0x00 0x08 0x00 0x00 |