Posted 2017-02-06 22:33:25 +0100

blogs->all

# Setup and Running the OpenMesh DFU on the nRF52 DK v2.0

No tags

### Program the boards

1. Connect all the boards to the PC

2. cd to <install_directory>nRF51_ble_broadcast_mesh_0.8.7\nRF51\bootloader

3. Open a command window in that directory

4. Run .\pc-util\for_loop_batch_nRF52 this will program all the boards connected to the PC.

5. Take 4 boards off and connect to a USB hub connected to a Charger Determine the COM port of the remaining board by going to Device Manager>Ports (COM & LPT)

### Use DFU over the air to program the boards.

1. CD to <install_directory>nRF51_ble_broadcast_mesh_0.8.7\nRF51\bootloader

2. Open a command window in this directory.

3. Run <install directory for nrfutil>\pc-nrfutil\nrfutil dfu serial –pkg dfu_test.zip –p COMxx –b 115200 –fc –mesh this will program all the boards in the mesh with the blinky app. Wait until the upgrade occurs (approximately 15 minutes).

4. Here is what the command prompt should look like:

Repeated running of the download process is possible with the 0.8.7 version of the ble_mesh demo. However, it is necessary to create a new dfu_test.zip file. This test file must do two things, it must change performance, so that it can be proved that the download has actually occurred and it must have an application number higher than the last one downloaded. To accomplish this, the following step must be performed. In a command prompt, type the command:

.\pc-util\nrfutil.exe dfu genpkg –application ..\examples\BLE_Gateway
\rbc_gateway_example_serial_nrf52832_xxAA.hex –company-id 0x00000059
–application-id 1 —application-version 3 –sd-req 0x0084 –mesh dfu_test.zip


Note the change in the application version from 1 to 2 and the change in the example used. This will accomplish both requirements stated above. The next step is to program that into the boards over the air. This is accomplished using the command

<install directory for nrfutil>\pc-nrfutil\nrfutil dfu serial –pkg dfu_test.zip –p COMxx –b
115200 –fc –mesh


This will program all the boards in the mesh with the blinky app (where COMxx is the COM port for the attached board). Upon completion, you will note that the blinking LEDs have been replaced with non-blinking LEDs. Further downloads can be accomplished by incrementing the application_version number and the executable itself.

Below is what you should see in the command window.

Posted May 7, 2017, 5:09 p.m.

hi: Serial transmission must flow control?

## Recent blog posts

• ### ANHUI YINGGUAN METAL PRODUCTS CO., LTD.

Posted 2017-12-14 03:35:55 by dlouver
• ### The KEY POINT of example "ble_app_uart"

Posted 2017-12-12 18:07:28 by QQ645116977
• ### Introduce smart motion controller - ELIO

Posted 2017-12-12 05:09:05 by caram5555
• ### The world's smallest breakout board compatible BTLE module: Automate your curtains for less than \$90 with BluChip!

Posted 2017-12-07 09:10:36 by Jeevan Anga
• ### Join Jumper's free beta for a Virtual nRF52832 device to streamline your R&D process

Posted 2017-11-27 12:53:04 by Yaniv Nis

## Recent questions

• ### Notify to all connections

Posted 2017-12-14 02:21:53 by Nack Tack
• ### Any way to import an ARMGCC Makefile into SES

Posted 2017-12-14 01:42:33 by eeleigh
• ### Undefined symbol ble_nus_c_on_ble_evt

Posted 2017-12-14 01:12:54 by MichaelNordicUser
• ### nRF52 Constantly Waking From WFE()

Posted 2017-12-13 23:09:12 by spizzak
• ### Thingy 2.0.1 FW flash : nrf_section_start undefined

Posted 2017-12-13 22:26:38 by sandeep