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

I am not able to program my nRF52840 Dongle via nRF connect

Hi,

I have a really hard time with nRF connect. I wrote a simple app for my Dongle and when I want to program it via nRF connect it says that Device not found due to failure during DFU.

As you can see I copied the ble_app_blinky and started writing my own program. I did everything that the tutorial said. I am really exhausted and I have no idea what to do.

20:38:28.978	Does not need to be reloaded: /Users/bronsun/Desktop/Nordic/workspace/ex00/ble_app_blinky/hex/ble_app_blinky_pca10059_s140.hex
20:38:28.980	SdReq for SoftDevice is set as 0x00.
20:38:28.982	Hash is generated by SHA256
20:38:28.982	Hash is generated by SHA256
20:38:28.987	Performing DFU. This may take a few seconds
20:38:28.995	DFU procedure starts. This may take a few seconds.
20:38:37.747	DFU for SoftDevice completed successfully!
20:38:37.747	1 dfu package(s) left.
20:38:37.747	Waiting for device
20:38:37.750	DFU procedure starts. This may take a few seconds.
20:38:41.023	DFU for Application completed successfully!
20:38:41.024	0 dfu package(s) left.
20:38:41.024	Waiting for device
20:38:46.027	Reopen device failed: Timeout while waiting for device C6611B5503C0 to be attached and enumerated
20:38:46.027	Nordic DFU Trigger Interface was not found.Please physically reset device.
20:38:46.029	Device not found due to failure during DFU
20:38:46.035	Target device closed.

Here is my code

#include "boards.h"

int main(){
    bsp_board_init(BSP_INIT_LEDS | BSP_INIT_BUTTONS);
    while (true){
        if(bsp_board_button_state_get(BSP_BOARD_BUTTON_0)) {
            bsp_board_led_on(BSP_BOARD_LED_2);
        } else {
            bsp_board_led_off(BSP_BOARD_LED_2);
        }
    }
}

Parents Reply
  • Ok now I know where is my problem. So I copied one of examples from nRF SDK and I changed a code in it. Really simple stuff nothing complicated. After that I am compiling a file with the pca10059 using Makefile which is in armgcc folder. Everything is fine it's working great, however, when I take a hex file and programmed it to the Dongle (of course via nRF Connect) it is a still the same program as in example. Nothing change. I am really sorry if it isn't  making any sense but I really don't know how to explained it.

Children
Related