3.5.2.1 Command Format (Host to BM70/71)

Figure 3-13. Write Memory Command Format

Value of Parameter (7...8)

Parameter Description

Length – 2 Bytes

0xXXXX

HCI-ISDAP Data Length field

Bit 15

1 – Start write continue operation

0 – Normal write operation

Bit[14:0]

0x0001:0x7FFF - Packet data length

The Most Significant Bit is repurposed for the continue flag. The maximum value for any HCI-ISDAP write operation can be 32767 bytes in length, but the data sent in each packet is limited based on the packet the BM70/71 can receive (see Read Buffer Size).

Value of Parameter (9)

Parameter Description

Length – 1 Byte

0x03

Memory type

For the BM70/71, this value is fixed to three, indicating flash memory

Value of Parameter (10)

Parameter Description

Length – 1 Byte

0x00

Sub-memory type

For the BM70/71, this value is fixed to zero, indicating EFLASH memory

Value of Parameter (11...14)

Parameter Description

Length – 4 Bytes

0xXXXX_XXXX

Starting address of memory within the specified bank where write operations will begin.

The most significant 16 bits of the address value represent the bank number. The least significant 16 bits represent the address within the specified bank.

Format is little endian.

Example: For an address of 0x0000_1234, the value is sent to the BM70/71 LSB first, 0x34 0x12 0x00 0x00

Value of Parameter (15...18)

Parameter Description

Length – 4 Bytes

0xXXXX_XXXX

HCI-ISDAP data length bit 15

0 – This field represents the number of bytes to write to memory from only this packet.

1 – This field represents the total number of bytes to write to memory in all subsequent write packets.

Format is little endian.

Example: For a size of 0x0000_0800, the value is sent to the BM70/71 LSB first, 0x00 0x08 0x00 0x00

Value of Parameter (19...n)

Parameter Description

Length – 1 ... n Bytes

0xXX

Any data to be written to memory.

The length of this field depends on the amount of data the user will write