Cannot debug ANNA B112 with nrf52840-DK as Jlink

Hi,

while switching to the nRF Connect SDK, I cannot program anymore my ANNA B112 (which is a nRF52832) using my nRF52840-DK as a programmer.

The following are working:

  • Flashing and reading the program from the ANNA B112 with VS Code and SES using the new SDK
  • Debugging the ANNA B112 with Segger Embedded Studio with the nRF 5 SDK 
  • Debugging the nRF52840-DK directly with VS Code and SES using the new SDK

When I attempt to debug with the new SDK on the ANNA B112, the debugger goes to cpu_idle.S and stays there. That's with many projects, including projects that are in production now, using a ANNA B112.

Thanks in advance,

Parents
  • Hi,

    Just want to clarify something: Are you able to debug the device with then nrf52 DK but not re-flash or otherwise erase or reset it?

    If the device has been flashed with code that has DCDC enabled and the physical unit does not have that then you could brick the device, could this be what happend?


    It is unclear to me if the device works or not after switching to nRF Connect SDK. 

    Regards,
    Jonathan

  • Hi,

    I am able to erase, debug, flash and reflash with the nrf52840-DK using SES on the nrf5 SDK.
    With the nrf52840-DK using both the newer SES and VsCode and the nrfConnect SDK I can only flash, reflash and erase. Debugging doesn't work.

    The device is not bricked.

  • emlynkz said:
    Debugging doesn't work.

    Do you gett eany errors?

    Does it work if you are not using the nrf52840 DK as a programmer\debugger wehn using NCS(nRF Connect SDK)?

    Can you share some more info on the work enviroment?

    Operating system
    VS code version
    NCS version

    Thanks for the explanation.

    Regards,
    Jonathan

  • I get this as an error when the debug launches:

    0x00004f80 in ?? ()
    Program stopped, probably due to a reset and/or halt issued by debugger
    add symbol table from file "c:/[REDACTED PATH TO PROJECT]/build/zephyr/zephyr.elf"
    (y or n) [answered Y; input not from terminal]
    Reading symbols from c:/[REDACTED PATH TO PROJECT]/build/zephyr/zephyr.elf...
    Resetting target
    Resetting target
    Run to 'main' timed out. Trying to pause program
    

    I tried another devkit of the same model as a programmer, and also a NINA-B111 as a programmer. All 3 have the exact same behavior.

    NCS Version 1.8.0

    VSCode version 1.63.2 with nRF connect extension pack v2021.9.1

    EDIT: OS version is Windows 10 21H2 build 19044.1466

    Thanks,

Reply
  • I get this as an error when the debug launches:

    0x00004f80 in ?? ()
    Program stopped, probably due to a reset and/or halt issued by debugger
    add symbol table from file "c:/[REDACTED PATH TO PROJECT]/build/zephyr/zephyr.elf"
    (y or n) [answered Y; input not from terminal]
    Reading symbols from c:/[REDACTED PATH TO PROJECT]/build/zephyr/zephyr.elf...
    Resetting target
    Resetting target
    Run to 'main' timed out. Trying to pause program
    

    I tried another devkit of the same model as a programmer, and also a NINA-B111 as a programmer. All 3 have the exact same behavior.

    NCS Version 1.8.0

    VSCode version 1.63.2 with nRF connect extension pack v2021.9.1

    EDIT: OS version is Windows 10 21H2 build 19044.1466

    Thanks,

Children
Related