5 Memory Programming Process Overview
To perform any memory programming operation, the user needs to follow the process flow with respect to the command protocols (see the following figure).
The following are the steps in the process flow of memory programming operation:
- Enter Memory Programming mode – For programming internal Flash. In this mode, the BM70/71 module IC waits for further commands from the external host MCU. The host MCU uses the UART transport layer to communicate HCI commands and HCI-ISDAP Flash commands to read, write or erase data in the memory.
- Connect to the Flash – Using the HCI commands, the external host MCU can connect to the Flash in the BM70/71 module. Using the HCI event responses from the BM70/71 module, the user can verify that a successful connection is established with the Flash.
- Flash operations – Using the HCI-ISDAP Flash commands, the user can perform the read, write and erase operations on the Flash. For configuring memory parameters, the user must clearly locate the address location and values based on the corresponding memory map, then perform the Flash operations. For more details on the steps necessary for configuring parameters in the Flash memory, refer to the Modifying Configuration Parameters. For more details on the steps involved in the device firmware update process, refer to the Device Firmware Update Process Overview.
- Disconnect from Flash – After the successful Flash memory operations, the external host MCU needs to disconnect from the Flash by sending the relevant HCI commands to the BM70/71 module. To verify the memory programming operation, use the HCI event responses from the BM70/71 module.