Page 1 of 1

[OSX] Cross-debugger help needed

Posted: Sun Nov 22, 2015 12:42 am
by ihassin
Hi,
I am trying to debug a binary on an ARM board using GCCArm on a Mac.
I created a CodeLite project using "external makefile" and the binary is created correctly.

I'd like to have source-level debugging using CodeLite GUI connected to jlinkgdbserver and arm-none-eabi-gdb.

Manually, I'd start a terminal window and run:
jlinkgdbserver -device nrf51822 -if swd -speed 4000 -noir -port 2331

Then from another terminal window I'd run:
arm-none-eabi-gdb

and load my binary and connect using
(gdb) target remote localhost:2331
(gdb) file filename.hex
(gdb) continue

How can I achieve this under CodeLite to have a nice GUI when I debug?

Thanks so much for any guide or tutorial,
Itamar

Re: [OSX] Cross-debugger help needed

Posted: Sun Nov 22, 2015 10:22 am
by eranif
Which version of CodeLite are you using?
From the project settings->debugger page, enable the "Debugging a remote target" checkbox.
Also on that page, in the "Select debugger path" field, set the path to your "arm-none-eabi-gdb" executable

You can create an external tool (Plugins->External Tools) to launch a terminal and execute the command:

Code: Select all

jlinkgdbserver -device nrf51822 -if swd -speed 4000 -noir -port 2331
If you need more startup commands to pass to the debugger, add them from:
project settings->debugger page->startup commands

Eran