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.