This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How make DFU working on PCA10001

I tried to download softdevice 8.0 and the example code of SDK8.0 (\nRF_Examples\8.0.0\dfu\bootloader\pca10028\dual_bank_ble_s110\arm5) to PCA10001.

First I Copied the dfu_dual_bank_ble_s110_pca100028 app

#define BOARD_PCA10001 in bsp\board.h first line

Changed main.c

#define

-BOOTLOADER_BUTTON from BSP_BUTTON_3 to BSP_BUTTON_1
-UPDATE_IN_PROGRESS_LED frome BSP_LED_2 to BSP_LED1

Set Target: IROM1 : Start ( 0x3C000 ) Size ( 0x3C00 ) IRAM1 : Start ( 0x20002C00) Size ( 0x1380 ) IRAM2 : Start ( 0x20003F80) Size ( 0x80 )

Rebuild by keil 5.11 erase All by nRFgo studio Program softdevice 8.0 by nRFgo studio Download dfu_dual_bank_ble_s110_pca100028 by keil

Now the LED 1 is always on, LED 2 is always off. And I can find the device (DfuTarg) on master control panel on my smart-phone. After connect the device, LED 1 is off, LED 2 is on.

Next I want to download the example code of hrm_app by bootloader

1.To support the PCA10001, are the Button and Led set changes legal? would it conflict to the hrm_app or other function?

  • @sdrest: I don't see any problem porting the GPIO pins to match with PCA10001.

    The only concern is that you will not have silicon version 3 chip on the PCA10001. Most likely you will have chip version 2.

    S110 v8.0 has a change that made for the XLR3 which allow the CPU to run concurrently with the radio. Since this feature is not supported on XLR2 or XLR1, so you would need to configure the stack with sd_ble_opt_set() when enabling the softdevice. Please have a look at Changes section in S110 v8.0 release notes.

Related