Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Cannot debug ble_app_buttonless_dfu SDK 15

I've used the 'secure_bootloader' project, updated with the public key, to flash on the DK. The project 'ble_app_buttonless_dfu' built and packaged as zip can be DFU'd with nRF51 dongle and with iOS nRF Toolkit app, so in this perspective it works just fine. The issue is when I try to debug the 'ble_app_buttonless_dfu' project from SES, it would flash but would not start in main() or hit any breakpoint set, nor show any debug RTT logs. A non-dfu application, like 'ble_app_beacon' can be debugged without any issues. What am I missing?

Setup:

Hardware: nRF52 DK PCA10040

SDK: nRF5_SDK_15.0.0_a53641a

SD: s132_nrf52_6.0.0_softdevice.hex

SEGGER Embedded Studio 3.30

Thanks!

EDIT: I can 'Attach Debugger' to already DFU'd  application 'ble_app_buttonless_dfu' and it works properly, breakpoints hit and logs available.

  • Hi,

    EDIT: I can 'Attach Debugger' to already DFU'd  application 'ble_app_buttonless_dfu' and it works properly, breakpoints hit and logs available.

    So this solved the issue?

  • Hi Sigurd,

    No, unfortunately, the 'Attach Debugger' after DFU is not practical. For development purposes it takes up way too much time to make the zip, upload, attach and debug. 

  • Hi,                                                                                                                                            

    You are probably failing the application integrity checks, and the bootloader will therefore not boot into the application. See this post. Also note that SDK 15 added optional skipping of application CRC check. CRC check can be skipped on wakeup from System Off or on special value written to GPREGRET2 register (when bit 1 (0-indexed) is set in the GPREGRET2 register).

  • Hi Sigurd,

    I've followed the steps in the link you've provided on skipping CRC check for SDK 15 and it worked just fine. I've reflashed the bootloader project and then the 'ble_app_buttonless_dfu' would start properly in debug mode. 

    Thank you!