Page 1 of 1
Debug 'launch' files
Posted: Sun Nov 08, 2015 11:00 am
by chibby
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.
Re: Debug 'launch' files
Posted: Sun Nov 08, 2015 11:20 am
by Giovanni
You don't need to open them, they appear under the debug menu in the toolbar when the project is open.
Giovanni
Re: Debug 'launch' files
Posted: Wed Nov 11, 2015 5:20 pm
by chibby
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.
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
Done
I don't see a debug menu anywhere.

Re: Debug 'launch' files
Posted: Wed Nov 11, 2015 6:00 pm
by Giovanni
It is the bug in the toolbar.

Giovanni
Re: Debug 'launch' files
Posted: Wed Nov 11, 2015 6:04 pm
by chibby
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

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
Posted: Wed Nov 11, 2015 6:46 pm
by chibby
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.
Code: Select all
No source available for "Reset_Handler() at 0x80001c0"
Any idea how to get around that one?
Re: Debug 'launch' files
Posted: Wed Nov 11, 2015 7:14 pm
by Giovanni
There is no C source there, you can step instructions or put a breakpoint in main().
Giovanni
Re: Debug 'launch' files
Posted: Fri Nov 13, 2015 11:56 am
by chibby
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.
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.
