ble_app_buttonless_dfu example firmware is not discoverable

I'm trying to run the ble_app_buttonless_dfu example on my nrf52832 board, code successfully uploads but the device is not discoverable in nrf connect app, I tried restarting uploading again, and resetting but there's nothing working. 
I also tried to debug this example and it gives 

NRF_BREAKPOINT_COND; error 
I looked for it's solutions but couldn't be able to solve it.

  • Hello,

    Do you have logging enabled in your application? If so, it makes it a bit easier to explain, because you can refer to the log, but if not, you can use the debug session. 

    Either way, try to add "DEBUG" to your application's preprocessor definitions. Please let me know if you don't know how to do this. Also let me know what IDE you are using. (Keil, SES, IAR, ...?) If you are using the debug session only, you also want to disable optimization. If you are not sure how to do this, please let me know, and also let me know what IDE you are using in that case.

    Then look at the error handler, and see what APP_ERROR_CHECK(err_code) it points to. What is the value of err_code, and what function that returned that err_code?

    You should stop in the app_error_fault_handler. You can step abit inside here to see the ID of the fault (probably NRF_FAULT_ID_SDK_ERROR), an dthen you can see the file name and line number of the APP_ERROR_CHECK(err_code), and the err_code itself:

    Best regards,

    Edvin

  • Thank Edvin,

    I am using segger embedded studio, and I tried to debug it. The problem is here in this part of code , when i coment this part device becomes discoverable

     err_code = ble_dfu_buttonless_async_svci_init();
        APP_ERROR_CHECK(err_code);

    I am trying same code integrating to my firmware and it causes the.
    same issues there too and there a problem of connection also happen. 
    Firmware connects for a second and it disconnects automatically , giving an error 8(0*8) on nrf Connect app


    Thanks 

    Airam

  • Please just upload the file here. These 3rd party services tend to be blocked on our end. Drag and drop the zip file to where you are typing your messages in DevZone.

    Since you mention the ble_dfu_buttonless_async_svci_init(), I guess you didn't program the bootloader when you are trying to debug? In that case, this will fail.

    Please try to program the bootloader. I am not sure what IDE you are using, but I will assume it is SES until you tell me otherwise. (partly because these steps are easiest to do in SES). 

    What you need to do is:

    1: Program softdevice, bootloader and the application that you want to debug. You can use "nrfjprog --program <path to hex file>.hex --verify" to program .hex files.

    2: Generate bootloader settings. Use "nrfutil settings generate --help" for instructions. The parameters you need to use are:

    --family
    --application
    --application-version
    --bootloader-version
    --bl-settings-version

    3: Program the settings .hex file that you just generated, and then reset the nrf ("nrfjprog --reset")

    4: Attach debugger! It is important that you don't just start a debug session like you normally would, because this will upload a modified application file. Instead you need to attach debugger, which will then assume that the application is already programmed, and start the debug session. The problem with uploading the modified application file is that changes in the flash will cause the bootloader to reject the application, and it will enter DFU mode.

    So try to include the ble_dfu_buttonless_async_svci_init() again, and follow this guide, and see what happens.

    Best regards,

    Edvin

  • Thank you so much, Edvin for your time and elaboration
    I will definitely try this and let you know the outcome 
    and regarding the files sorry I am new to nordic dev zone and didn't know how to upload the files

  • AIRAM said:
    I will definitely try this and let you know the outcome

    Good stuff! Let me know if it doesn't work (or if it does, for that matter Slight smile )

    Best regards,

    Edvin

Related