Skip to content

STM32duinoBLE

Frederic Pillon edited this page Mar 25, 2020 · 10 revisions

STM32duinoBLE with STEVAL_MKSBOX1V1

STM32duinoBLE library does not work with the stock firmware that is loaded in the BLE module of STEVAL-MKSBOX1V1. For this reason, first of all, it is needed to solder on STEVAL-MKSBOX1V1 a JTAG/SWD 0.05" pitch 10pin male connector in the apposite space of the PCB.

/img/SensorTile_Box1.PNG

Then you can use a standard ST-Link V2-1 with a JTAG/SWD 0.05" pitch 10pin to 20pin IDC cable together with STSW-BNRGFLASHER software tool (currently available only for Windows PC) in order to update the firmware of the BLE module of STEVAL-MKSBOX1V1.

First of all, install the ST BlueNRG-1_2 Flasher Utility and open it, then select the SWD tab:

/img/SensorTile_Box2.PNG

Erase the flash memory of the BlueNRG-1 chip:

/img/SensorTile_Box3.PNG

Download the Link Layer Only firmware for the BLE module from the following link:

DTM_LLOnly.bin

Load the Link Layer Only firmware in the ST BlueNRG-1_2 Flasher Utility and then press the "Flash" button:

/img/SensorTile_Box4.PNG

If you need to restore the stock firmware of the BLE module of STEVAL-MKSBOX1V1, you can repeat the procedure using this firmware image:

DTM_Full.bin

STM32duinoBLE with X-NUCLEO-BNRG2A1

STM32duinoBLE library does not work with the stock firmware that is loaded in the BLE module of X-NUCLEO-BNRG2A1 expansion board.

For this reason, first of all, it is needed to solder on X-NUCLEO-BNRG2A1, if it is not soldered, a 0 Ohm resistor at R117.

Then you can use a standard ST-Link V2-1 with 5 jumper wires female-female together with STSW-BNRGFLASHER software tool (currently available only for Windows PC) in order to update the firmware of the BLE module of X-NUCLEO-BNRG2A1.

You need to connect the J12 pins of the X-NUCLEO-BNRG2A1 to the pins of the ST-Link V2-1 as shown in the picture below.

/img/X_NUCLEO_BNRG2A1_1.PNG

In particular we have the following connections:

J12 ST-Link V2-1
Pin 1 1
Pin 2 9
Pin 3 12
Pin 4 7
Pin 5 15

First of all, install the ST BlueNRG-1_2 Flasher Utility and open it, then select the SWD tab:

/img/X_NUCLEO_BNRG2A1_2.PNG

Erase the flash memory of the BlueNRG-2 chip:

/img/X_NUCLEO_BNRG2A1_3.PNG

Download the Link Layer Only firmware for the BLE module from the following link:

DTM_LLOnly.bin

Load the Link Layer Only firmware in the ST BlueNRG-1_2 Flasher Utility and then press the "Flash" button:

/img/X_NUCLEO_BNRG2A1_4.PNG

If you need to restore the stock firmware of the BLE module of X-NUCLEO-BNRG2A1, you can repeat the procedure using this firmware image:

DTM_Full.bin

If you should find some issues during the update process, you can try to repeat the procedure closing the J15 jumper on the X-NUCLEO-BNRG2A1 expansion board.

Clone this wiki locally