What are the *.launch files in debug directory intended for ?
They seem to be related to Eclipse but when I try to open them with 'Kepler' it just complained about non matching tags. Is there something platform or version specific here?
Thanks.
Debug 'launch' files
Moderators: RoccoMarco, lbednarz, tfAteba
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: Debug 'launch' files
You don't need to open them, they appear under the debug menu in the toolbar when the project is open.
Giovanni
Giovanni
Re: Debug 'launch' files
Thanks for the explanation but I don't see any such menu.
I imported the demo as a Makefile project. I can make clean and make all. It works and I get a binary.
I don't see a debug menu anywhere.
I imported the demo as a Makefile project. I can make clean and make all. It works and I get a binary.
Code: Select all
Creating build/ch.dmp
text data bss dec hex filename
44728 684 130832 176244 2b074 build/ch.elf
Creating build/ch.list
DoneI don't see a debug menu anywhere.
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: Debug 'launch' files
Ah, I found I have to enable the debug "perspective" buried down deep somewhere. Now I have the little bug. Thanks.
now it says "cannot execute binary file". My guess is that it is trying to run it on the i686 host but that uninformative msg does not help at all
Ah I managed to change it to use my openOCD , that was the problem. Now it builds and flashes the device.
jolly good!
Still not running in debugger but getting hopeful.
now it says "cannot execute binary file". My guess is that it is trying to run it on the i686 host but that uninformative msg does not help at all
INFO src/stlink-common.c: Flash written and verified! jolly good!
Ah I managed to change it to use my openOCD , that was the problem. Now it builds and flashes the device.
jolly good!
Still not running in debugger but getting hopeful.
Re: Debug 'launch' files
The makefile is able to find everything and do a clean rebuild but eclipse seems to be failing to find the source that is outside the demo directory. I think that is why it is objecting to running it in the debugger.
Any idea how to get around that one?
Code: Select all
No source available for "Reset_Handler() at 0x80001c0"
Any idea how to get around that one?
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: Debug 'launch' files
There is no C source there, you can step instructions or put a breakpoint in main().
Giovanni
Giovanni
Re: Debug 'launch' files
Man, the Eclipse interface is hopelessly complicated to configure and it seems like a "hammer to crack a wallnut" solution since I already have manual debugging working on st-link using st-util and arm-none-eabi-gdb.
It may have a chance of working if it was using the right port.
Do you have an idea where I can set this in Eclipse.
thx.
[EDIT] OK I think I've found it !!
gdbserver reports that it's connecting.
Code: Select all
Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:10000
Error message from debugger back end:
localhost:10000: Connection timed out.
localhost:10000: Connection timed out.It may have a chance of working if it was using the right port.
Do you have an idea where I can set this in Eclipse.
thx.
[EDIT] OK I think I've found it !!
gdbserver reports that it's connecting.
