Hi,
I want to rry CL for cross compilation.
I run it under WinXP and want to build (and debug)for ARM7 (STR7 from ST).
What is the best way to achieve this?
I think I have to add a new toolchain under 'Build Settings'?
And change the name of the programs from e.g. g++ to arm-elf-g++?
And than follow the docs here for using an external makefile (because there is already one)?
I'm just asking for not going in the wrong direction.
Anyone already tried CL for remote debugging (with OPENOCD)?
Thanks,
Joerg
Setting up CodeLight for cross compilation
-
- CodeLite Enthusiast
- Posts: 27
- Joined: Fri Apr 24, 2009 6:49 pm
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Setting up CodeLight for cross compilation
The only remote debugging I did was with gdbserver - pretty simple to setup and use.rekisum wrote:Anyone already tried CL for remote debugging (with OPENOCD)?
Never tried OPENOCD, if u ran into problems with it, post them here and I might help / change code if needed.
Yes, basically, this is the correct path. Define new 'compiler' from the build settings. And once defined, set it as your project's compiler from right click project -> settings -> general tab.rekisum wrote:I'm just asking for not going in the wrong direction.
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 27
- Joined: Fri Apr 24, 2009 6:49 pm
- Contact:
Re: Setting up CodeLight for cross compilation
compiling works,
I will try debugging next week
I will try debugging next week
-
- CodeLite Enthusiast
- Posts: 27
- Joined: Fri Apr 24, 2009 6:49 pm
- Contact:
Re: Setting up CodeLight for cross compilation
Hi,
remote debugging with my ARM controller works with
the exeption that I can not interrupt the program.
Pressing the the "Pause Debugger" button (should be equivalent to pressing ctrl+c in the gdb command line)
shows a "Interrupting debugee process: 1952" in the Debuger Tab, but nothing happens.
These are my gdb startup commands:
file tidnreadarm.elf
These are my gdb after attaching commands:
monitor reset
monitor sleep 500
monitor poll
monitor soft_reset_halt
monitor arm7_9 force_hw_bkpts enable
thbreak main
remote debugging with my ARM controller works with
the exeption that I can not interrupt the program.
Pressing the the "Pause Debugger" button (should be equivalent to pressing ctrl+c in the gdb command line)
shows a "Interrupting debugee process: 1952" in the Debuger Tab, but nothing happens.
These are my gdb startup commands:
file tidnreadarm.elf
These are my gdb after attaching commands:
monitor reset
monitor sleep 500
monitor poll
monitor soft_reset_halt
monitor arm7_9 force_hw_bkpts enable
thbreak main
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Setting up CodeLight for cross compilation
I am aware of this issue.
As a workaround, you might want to enable the 'show debugger terminal' option from 'settings -> debugger settings..' menu. This will display the debugger terminal where u can click Ctrl-C
Eran
As a workaround, you might want to enable the 'show debugger terminal' option from 'settings -> debugger settings..' menu. This will display the debugger terminal where u can click Ctrl-C
Eran
Make sure you have read the HOW TO POST thread