BM70 Compact Demo Board User's Guide: Appendix C. BM-70-CDB Example Configuration
Introduction
This section shows a procedure for updating the configuration parameters of the BM70 module using the BM-70-CDB.
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).
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.
In the Loading Option window, click Load Text File to load default configuration parameters, see Figure C-2.
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 Configuration Tool window, click Edit to start editing the default parameters, see Figure C-4.
From the Main Feature window, click BLEDK and then click OK, see Figure C-5.
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 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.
Click Finish. The Configuration Tool main window is displayed, see Figure C-8.
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.
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.
- 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.
- 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.