10.4.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-n |
Size (bytes) | 1 | 2 | 2 | 2 | 2 | 1-n |
Value | 0x02 | 0x0FFF | 0xXXXX | 0x0001 | 0xXXXX | See the following table |
Byte Number | Value | Parameter Description | Length |
---|---|---|---|
7-8 | 0xXXXX | HCI-ISDAP data length field [Bit15] 0 – Terminate write continue operation. The next write command must be an HCI-ISDAP write command, or there is a possibility of undefined device operation. 1 – Write continue operation active [Bit14:0] 0x0001: 0x7FFF – Packet data length | 2 bytes Reuse the MSb for the Continue flag. The max value for any HCI-ISDAP write operation technically can be 32767 bytes in length, but sending the data in each packet is limited by what the BM70/71 module can receive. |
9-n | 0xXX | Data to write to memory | 1-n bytes The length of this field depends on how much data the programmer is writing. |