BM70 Compact Demo Board User's Guide: Appendix C. BM-70-CDB Example Configuration

Last modified by Microchip on 2023/11/10 11:11

Introduction

This section shows a procedure for updating the configuration parameters of the BM70 module using the BM-70-CDB.

Back to Top

Requirements

Hardware Requirements

  • BM-70-CDB
  • Bluetooth-enabled smartphone
  • iPhone 4S or later version (it must support BLE) or
  • Android device running Android 4.3 or later version
  • Windows host PC with USB port
  • MicroUSB cable
    Back to Top

Software Requirements

Download and install the latest firmware and corresponding tools (Firmware_SoftwareTools_Vx_xx.zip) from the Microchip website: BM70product page.

  • Firmware update tool (BM7xBLE_IS187x_FlashUpdateTool.exe).
  • Firmware hex images (*.H00, *.H01, *.H02, *.H03).
  • Configuration tool (IS187x_102_BLEDK3_UI v100.xxx.exe).
  1. Ensure the latest firmware is downloaded to the IS1870 IC on the BM-70-CDB. The initial BLE firmware version programmed into BM70 modules in Microchip's manufacturing line at the time of releasing this product to market was version 1.03. The latest firmware is made available on the BM70 product web page on Microchip's website.
  2. Ensure that the exact version of the Configuration tool (UI Tool) matches the specific firmware version programmed into the IS1870 IC's Flash memory is used to configure the module. For ease of use, the UI tool, firmware and firmware update utility are all provided in a single zip file for each version of firmware released by Microchip to the website. The latest firmware for the BM70 module is not compatible with older versions of the Configuration tool. To ensure the correct version of firmware and tools are being used together, a Firmware_Software_Vx_xx.zip file is provided. This archive contains firmware along with the compatible software tools for this specific firmware version.
  3. In the following example, the BM-70-CDB with firmware version 1.06 and Configuration tool (IS187x_102_BLEDK3_UI v100.132.exe) is used.

Back to Top

Setting Configuration Parameters

The Configuration tool or User Interface (UI) tool is a PC based program, which enables the user to change the configuration parameters of the BM70 (for hardware details on configuration, refer to Chapter 2. “Interface Description”). The following list provides some examples of the parameter settings that can be updated on the BM70 module using the UI tool (for the description of features, refer to Chapter 1. “Overview”):

  • Device name
  • UART settings
  • BLE connection settings
  • Add or edit GATT service table.

Procedure

Open the UI tool and click Load, see Figure C-1. The Loading Option window is displayed.

Download and unzip the contents of the Firmware_Soft-ware-Tools_Vx_xx.zip file, which is available at the Microchip website: www.microchip.com/BM70. The configuration tool is part of this zip file content and located under the sub-folder "ConfigurationTool/". In this demonstration, the IS187x_102_BLEDK3_UI v100.132.exe tool is used. This tool version corresponds to firmware version v1.06. This information is shown in by the file name, Firmware_SoftwareTools_Vx_xx.zip, where "Vx_xx" is the firmware version.

The Loading Option window is displayed

FIGURE C-1: CONFIGURATION TOOL WINDOW

Back to Top


In the Loading Option window, click Load Text File to load default configuration parameters, see Figure C-2.

Load Text File button

FIGURE C-2: Loading Option Window

Back to Top


From the Open dialog, select the default configuration parameter text file (provided with the Firmware_SoftwareTools_Vx_xx.zip file under the "ConfiguartionTool/" sub-folder) and then click Open, see Figure C-3.

From the Open dialog box, select the default configuration parameter text file

FIGURE C-3: OPEN DIALOG BOX TO SELECT DEFAULT CONFIGURATION

Back to Top


From the Configuration Tool window, click Edit to start editing the default parameters, see Figure C-4.

Configuration Tool window

FIGURE C-4: CONFIGURATION TOOL WINDOW - EDIT OPTION

Back to Top


From the Main Feature window, click BLEDK and then click OK, see Figure C-5.

Main Feature window

FIGURE C-5: MAIN FEATURE WINDOW

Back to Top


The UI tool displays a window with various configuration options (tabs) in tabular format. Click the System Setup tab, and in the Name fragment box, type “BM70_BLE” (or any user-defined name), as shown in Figure C-6.

Click the Help button to get information related to UI parameters.

System Setup tab

FIGURE C-6: CONFIGURING PARAMETERS - SYSTEM SETUP

Back to Top


Click the LE Mode Setup tab and under the Advertising Data Setting section, select Device Name to advertise the device name, as shown in Figure C-7. This ensures that the name fragment is included in the advertising packet.

LE Mode Setup tab

FIGURE C-7: CONFIGURING PARAMETERS - LE MODE SETUP

Back to Top


Click Finish. The Configuration Tool main window is displayed, see Figure C-8.

Configuration Tool main window

FIGURE C-8: CONFIGURATION TOOL WINDOW

Back to Top


From the Configuration Tool window, perform any one of these actions:

  • Click Save to save the selected parameter settings as .txt or .hex files (for later production programming).
  • Click Export to export a log file along with the parameters to a .txt file. The log file contains the settings of configuration parameters, which were edited.

Back to Top


To program the configuration parameters on the BM70 module, perform these actions:

  • Connect the BM-70-CDB to the host PC using the micro USB cable.
  • Verify that USB power is selected in J6 (close pins 2 and 3) and J8 (current measurement test point) is closed.
  • Verify that Switch 2 on SW2 is set to ON position.
  • Press SW1 (Reset) button and verify that LD2 is showing a non-flashing blue that indicates the BM70 is in Programming mode.
  • Go to the Configuration Tool window and click Write to program the settings into the internal memory of the BM70 module, see Figure C-9.
Configuration Tool window

FIGURE C-9: WRITE CONFIGURATION

  • The Read/Write Flash window is displayed. Select the values for COM Port and Baud rate (must be 115200 for the configuration to succeed), and then click Write, see Figure C-10.
Read/Write Flash window

FIGURE C-10: COM SETTINGS TO WRITE CONFIGURATION

  • A message box will appear displaying the message “Write the UI configuration settings to EFLASH! Are you sure?”. Click Yes to write the configuration, see Figure C-11.
Message box displaying the message “Write the UI configuration settings to EFLASH! Are you sure?”

FIGURE C-11: WRITE EFLASH ALERT

Message box displaying "WRITE EFLASH FINISH"

FIGURE C-12: WRITE EFLASH FINISH

Back to Top