2.1 EEPROM Programming Process

The following figure illustrates the steps to follow to perform any EEPROM programming operation with respect to the protocols.
Figure 2-1. Overview of EEPROM Programming Process

The following are the steps in the EEPROM programming process:

  • In Test Mode (Flash Variant) – Set the BM78 module into the Test (Write EEPROM) mode. Set the pin P2_0 to ON and the pin P2_4/EAN to the OFF state to enter the Memory Programming mode, and, then, initiate a hardware reset using the RESET pin. The following table provides details about the BM78 Evaluation Board (EVB) mode switch positions. For more details, refer to the BM78 Evaluation Board (EVB) User’s Guide (DS70005246A).
  • Connect to EEPROM – Send the HCI_Reset command to the BM78 module to activate the EEPROM read/write operation, and, then, send the HCI_EEPROM_PAGE_WRITE_NUM command to set the EEPROM parameter.
  • EEPROM Read/Write Operations – Use the HCI_EEPROM_WRITE command for the EEPROM setting update, and use the HCI_E2PROM_READ to read back the EEPROM setting for verification.
  • Disconnect from EEPROM – The host MCU sets the BM78 module into the Application mode using the pins P2_0 and P2_4/EAN. Set the pins P2_0 to ON and P2_4/EAN to the OFF state, and, then, initiate a hardware reset using the RESET pin. The following table provides details about the BM78 Evaluation Board (EVB) mode switch positions. For more details, refer to the BM78 Evaluation Board (EVB) User’s Guide (DS70005246A).
    Table 2-1. BM78 Evaluation Board (EVB) Mode Switch Positions
    ModeSwitch PositionsPin Definition
    1/P2_02/P2_43/EAN
    FlashWrite Flash
    ONONON
    ROMTest (Write EEPROM)
    ONOFFON
    Application (default)
    OFFOFFON
    FlashTest (Write EEPROM)
    ONOFFOFF
    Application (default)
    OFFOFFOFF