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

nRF51822 debugging through the command line over gdb remote server initialized by openocd.

Hi Community Members,

I have a nRF51822 SoC custom board on which i have successfully tried flashing the executable file using openocd commands over Linux environment (Ubuntu 18.04 LTS). Now am looking for debugging the same using command line with GDB remote server which is initialized by openocd.

Please let me know if anyone has done a similar sort of work. First, I would like to give it a try with command-line debugging then can integrate openocd debugging in eclipse IDE. I have one question: is the .elf file is a must for debugging purpose. Can we use Keil generated .axf file with GDB toolchain for debugging? I am not clear or sure about the debugging using GDB toolchain. It would be a great help for me if anyone could able me provide the overall insight for debugging using GDB toolchain. What kind of files it requires and different configurations?

Thanks & Regards

Sahil Saini

Related