Debug 'launch' files

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
chibby
Posts: 66
Joined: Wed Oct 22, 2014 11:20 am

Debug 'launch' files

Post 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.
User avatar
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

Post by Giovanni »

You don't need to open them, they appear under the debug menu in the toolbar when the project is open.

Giovanni
chibby
Posts: 66
Joined: Wed Oct 22, 2014 11:20 am

Re: Debug 'launch' files

Post 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. :?
User avatar
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

Post by Giovanni »

It is the bug in the toolbar.

Image

Giovanni
chibby
Posts: 66
Joined: Wed Oct 22, 2014 11:20 am

Re: Debug 'launch' files

Post 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.
chibby
Posts: 66
Joined: Wed Oct 22, 2014 11:20 am

Re: Debug 'launch' files

Post 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?
User avatar
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

Post by Giovanni »

There is no C source there, you can step instructions or put a breakpoint in main().

Giovanni
chibby
Posts: 66
Joined: Wed Oct 22, 2014 11:20 am

Re: Debug 'launch' files

Post 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. ;)
Post Reply