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

GDB fails when developing without soft device.

I've been developing firmware for the nrf52840 for a few months using armgcc+openocd+arm-none-eabi-gcc working successfully. I recently upgraded my ubuntu version (18.04) and now find that I cannot debug my code using gdb anymore.  I use the following commands to intialise openocd and gdb:

open ocd:

    openocd -f /usr/share/openocd/scripts/interface/jlink.cfg -c "transport select swd" -f /usr/share/openocd/scripts/target/nrf52.cfg

gdb:

 arm-none-eabi-gdb -ex "target remote localhost:3333" _build/nrf52840_xxaa.out

This is the error I get:

nrfx_rng_handler (
/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-775_20180622_1529687456/src/gdb/gdb/frame.c:542: internal-error: frame_id get_frame_id(frame_info*): Assertion `stashed' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.

Any thoughts?  This is frustrating as everything worked perfectly on my previous ubuntu installation (16.04).  I tried debugging a project without the softdevice and it seemed to work fine so I'm a little confused.

Parents
  • When you first run OpenOCD and it connects to the target, it prints a bunch of information. Can you please show us that? NOTE: this means that you show us everything from the point where you run the "openocd" command. I'm particularly interested in known what version you have.

    I've been using the latest version of OpenOCD from the official git repo along with GCC 8.3 and GDB 8.2 on a FreeBSD host system and it works fine for me.

    -Bill

Reply
  • When you first run OpenOCD and it connects to the target, it prints a bunch of information. Can you please show us that? NOTE: this means that you show us everything from the point where you run the "openocd" command. I'm particularly interested in known what version you have.

    I've been using the latest version of OpenOCD from the official git repo along with GCC 8.3 and GDB 8.2 on a FreeBSD host system and it works fine for me.

    -Bill

Children
No Data
Related