Bluetooth Demonstrations > BM64 and BM71 Driver Demonstrations > BM64_bootloader > Running the Demonstration
MPLAB Harmony Bluetooth Help
Running the Demonstration

Do the following to run the demonstration: 

Program the Device and Obtain Tools 

  1. Compile, download, and run the program on the target device. While compiling, select the appropriate MPLAB X IDE project. Refer to Building the Application for details.
  2. Download the BM64 Software and Tools from here: http://www.microchip.com/wwwproducts/en/BM64, under Documentation > Software > (IS2064 / BM64 Software and Tools).

 

Unzip wherever it is convenient for you (e.g., C:\ IS2064_BM64 Software & Tools), and unzip any zip files contained within the folders. 

 

Program the BM64 Module 

The sequence of steps to program the BM64 Module are as follows:

  1. Run the tool C:\IS2064_BM64 Software & Tools\ DSPTool_IS206x_012_DualModeSPK1.1_v1.06.exe.
  2. Do not click on the Load button. Under the I2S/PCM tab, set the I2S Mode to “Slave mode”. Then, save the file as: slave-BM64.txt, and exit the DSP Tool.

 

 

  1. Run the tool: C:\IS2064_BM64 Software & Tools\UI Tool\UITool_IS206x_012_DualModeSPK1.1_v1.03.exe.
  2. Click Load, and load the file: UITool_IS206x_012_DualModeSPK1.1_v1.03_UI_Default_Table.txt. Then, change the IC Package type to BM64CLS1, and then click Edit.

 

 

  1. Do the following In the Main dialog:
    • Clear SPP
    • Clear all of the Button check boxes
    • Select UART Command and I2S, and then click Next

 

 

  1. Under the Sys Setup1 tab, change the Power Switch Setting/Power Switch Type to “Power ON Directly”, and then click Next.

 

 

  1. Under the Sys Setup2 tab, change the Name Fragment to whatever you want (this name will show up in your Smart Phone’s Bluetooth setup). Change the Report Battery Status to Smart Phone setting to Disable, and then select the PMU Setup tab.

 

 

  1. Under PMU Setup, change Battery Detection/Battery Detection Enable to Disable and also change Charging Setting/ Charging Detect Enable to Disable, and then select the BLE Setup tab.

 

 

  1. Under BLE Setup tab, change the Device Name to whatever you want (this name will show up in your Smart Phone’s BLE setup), and then click Finish.

 

 

  1. Save the file as: BM64 UI, and then click Exit.

 

 

  1. Run the tool: C:\IS2064_BM64 Software & Tools\MPET Tool\MPET.exe.
  2. Select UI Patch Only, and then click Next.

 

 

  1. Click Browse, and browse to the folder C:\IS2064_BM64 Software & Tools\MPET Tool\default_bin and select the .bin file there, and then click Next.

 

 

  1. Click the icon and load the file slave-BM64.txt that you saved earlier in Step 2. Click the icon again and load the file BM64 UI.txt you saved earlier in Step 10, and then click Next.

 

 

  1. Click the Output File button and save the file as BM64 Patch, and then click Next.

  1. On this screen, click Generate.

 

 

  1. In the next dialog, select all 11 check boxes, and then click Next.

 

 

  1. Finally, click Finish.

Running the Demonstration on the Development Hardware
  1. Leave the USB cable plugged into the EDBG connector. Plug one end of a second USB cable into the micro-B USB jack labeled TARGET USB on the development board and the other into your PC. Set both switches SW1-1 and SW1-2 on the BM64 Module daughter board to the ON position.

  1. Press and release SW1 (or SW0) on the development board. The two LEDs on the BM64 module should light up steady as shown in the following figure.

  1. Run the tool: C:\IS2064_BM64 Software & Tools\EEPROM Tool\ EEPROM_Tool_V4851.exe.
  2. Ensure that the correct COM Port is selected (you can use Window’s Device Manager to verify this), and then click IC/Module Identify. It should display one or two strings starting with IS206X…

 

 

  1. To the right of WRITE EEPROM, click on the button and browse to the BM64 Patch.ipf file you specified earlier, and then click Write. When done and the dialog appears, click OK, and then click Exit.

 

 

  1. On the BM64 Module Daughter Board, set both switches SW1-1 and SW1-2 to the OFF position.

  1. On the development board, press and release the SW1 (or SW0) button. The two LEDs on the BM64 Module should turn off. The BM64 Module is now ready to run with the BM64_a2dp_hfp application.
Control Descriptions
Control 
 
SW1 (SW0 on some boards) 
Resets then enables the BM64 Bluetooth module