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

DFU

I have a DFU issue; SDK nRF5_SDK_13.0.0_04a0bfd

The system reboots on the DFUTAG after having completed the application upload.

I have the following errors :
:DEBUG:Error code - sd_softdevice_vector_table_base_set: 0x00000000
:DEBUG:Before SOFTDEVICE_HANDLER_APPSH_INIT
:DEBUG:After SOFTDEVICE_HANDLER_APPSH_INIT
:INFO:Error code - sd_ble_cfg_set: 0x00000000

  • HI Olivier, 

    I apologize for the late reply, I have been out of office on a business trip.

    Yes, if you enter the if (nrf_gpio_pin_read(BOOTLOADER_BUTTON) == 0), then it means that the Bootloader Button Pin is pulled low. In the pca10040.h file, the BOOTLOADER_BUTTON is defined as follows. 

    BOOTLOADER_BUTTON   == BSP_BUTTON_3 == BUTTON_4 == P0.16 

    Do you have a button on you product that you want to use to put the device in bootloader mode, if not, then you can comment out the following snippet in  nrf_dfu_enter_check

     if (nrf_gpio_pin_read(BOOTLOADER_BUTTON) == 0)
    {
    	NRF_LOG_DEBUG("******* BOOTLOADER_BUTTON == 0 ************** \n");
    	return true;
    }

    Bjørn

Related