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

I have trouble doing buttonless dfu example

Hello all

i have problem with doing this example

https://github.com/gamnes/nRF52832-buttonless-dfu-development-tutorial

Here is my stepts to do this

1.Download Sdk in "C:\ "(nRF5_SDK_15.0.0_a53641a)

2.Flash software device in C:\nRF5_SDK_15.0.0_a53641a\components\softdevice\s132\hex

3.I put command at cmd

nrfjprog --program C:\nRF5_SDK_15.0.0_a53641a\examples\dfu\secure_dfu_test_images\ble\nrf52832\sd_s132_bootloader_buttonless_with_setting_page_dfu_secure_ble_debug_without_bonds.hex --chiperase

but I can't see any Buttonless in nrfconnect through my android phone

I don't know why it is not shown

is there any point i missed?

Parents Reply Children
  • i have a custom board without any buttons and i have two leds(pin numbers are 14 and 15) in my board

    so i cannot observe led blink because this hex file is precompiled

    but in my android phone i seldom found Nordic_Buttonless like this(bottom of list)

    as you look this screenshot, signal is dead and after i click refresh Nordic_Buttonless disappear

    i don't know how to solve it

    thank you Andreas

  • Hi.

    I suggest that you use a project then and edit the LED which shows when your device is advertising.

    Open the file nRF5_SDK_15.0.0_a53641a\components\boards\pca10040.h, and edit the following on line 52 and 53:

    #define LED_START      17
    #define LED_1          17
    
    EDIT TO THIS:
    #define LED_START      14
    #define LED_1          14
    

    And edit this on line 74:

    #define BUTTON_2       14
    
    EDIT TO THIS:
    #define BUTTON_2       17

    Compile and download this .hex file to your device.

    Does your LED blink now when it advertises?

    (Some more information on custom boards)

    Best regards,

    Andreas

  • thank you Andeas because of my poor english  i can't understand what you said

    do you mean i should compile  C:\nRF5_SDK_15.0.0_a53641a\examples\dfu\secure_dfu_test_images\ble\nrf52832\sd_s132_bootloader_buttonless_with_setting_page_dfu_secure_ble_debug_without_bonds

    ? or other project using advertising

    if you said first i don't know how to recompile hex file  :(

  • Hi.

    Sorry, the fault is mine, I should be clearer with my explanation.

    1. Open the file pca10040.h in folder nRF5_SDK_15.0.0_a53641a\components\boards

    2. Edit line 52 and 53 like this:

    #define LED_START      17
    #define LED_1          17
    
    EDIT TO THIS:
    #define LED_START      14
    #define LED_1          14
    

    And edit this on line 74:

    #define BUTTON_2       14
    
    EDIT TO THIS:
    #define BUTTON_2       17

    3. Save and close the pca10040.h file

    4. Open the secure_bootloader project in the folder nRF5_SDK_15.0.0_a53641a\examples\dfu\secure_bootloader\pca10040_ble in the IDE you wish to use.

    5. Compile the secure_bootloader project and flash this to your device. You also need to flash the SoftDevice (found in the folder nRF5_SDK_15.0.0_a53641a\components\softdevice\s132\hex)

    Best regards,

    Andreas

  • thank you andrea

    my result is first 5seconds it blinks but after 5seconds it turns on not blink

Related