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

Debug Thread Examples with nRF52840 Dongle

Hello,

I'm using CLI USB examble from Thread and Zigbee SDK by Nordic. I am using nRF52840 Dongle along with a J-link EDU mini.

My problem is that, when I start debugging by clicking the "Play" icon, the debugger does not stop at the first instruction in main. It goes somewhere in the disassembly.

The only way I found to debug Step-by-Step is to do a Full Erase of the Dongle before debugging. Unfortunately this cannot be a solution to my problem since the operation also erases the bootloader section in the Flash.

Can you help me solve this problem?

Thanks!

Parents Reply
  • Here's what I did.

    Since I'm using SDK for Thread and Zigbee I used a new bootloader (not sure if it's the right one): SDK folder/examples/dfu/pca10056_s140_ble. I chose the s140 since my application is using dynamic multiprotocol.

    I replaced the dfu_public_key.c with the one I previously generated.

    I also replaced the board define to BOARD_PCA_10059 since I'm using dongles.

    I rebuilt the project and merged the hex file with my bootloader settings hex file.

    When I try to flash the resulting hex I get the error.

Children
Related