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
[OSX] Cross-debugger help needed
-
- CodeLite Curious
- Posts: 1
- Joined: Sun Nov 22, 2015 12:31 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: [OSX] Cross-debugger help needed
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:
If you need more startup commands to pass to the debugger, add them from:
project settings->debugger page->startup commands
Eran
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
project settings->debugger page->startup commands
Eran
Make sure you have read the HOW TO POST thread