Eclipse debug plugin for ChibiOS/RT

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Eclipse debug plugin for ChibiOS/RT

Post by Giovanni »

It is also included in versions 2.2.7 and 2.3.3 :-)

Giovanni
matis
Posts: 53
Joined: Fri Jul 01, 2011 1:46 pm

Re: Eclipse debug plugin for ChibiOS/RT

Post by matis »

Thanx guys,

I can confirm that org.chibios.tools.eclipse.debug_1.0.7.jar works like a charm on Ubuntu 10.04.3 x64 with Indigo SR1 compiled with arm-none-eabi-gcc-4.5.2 :)

Thanks for your effort!
pmichniewski
Posts: 1
Joined: Mon Nov 07, 2011 5:09 pm

Re: Eclipse debug plugin for ChibiOS/RT

Post by pmichniewski »

Hi, the plugin is great.

Do you plan to port it to the DSF mode of GDB?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Eclipse debug plugin for ChibiOS/RT

Post by Giovanni »

Hi,

Eventually, but it is not an high priority right now, the problem with Eclipse is the documentation (that is both extensive and lacking :-)), the standard debugger was simply easier to understand and documented.
If somebody has experience with DSF the process could be faster. The plugin source code is on the repository and a single class encapsulates all the debugger-related code.

Giovanni
DaWaN
Posts: 2
Joined: Mon Nov 21, 2011 3:12 pm

Re: Eclipse debug plugin for ChibiOS/RT

Post by DaWaN »

This plugin is awesome :) I use this plugin with Eclipse Inidigo CDT

I've tested it with the Zylin plugin and that works fine too, very nice.

I do have one problem though: I cannot see the stack usage...
Image

It's problably due to some issues with Inidigo, I wanted to look into the source but couldn't find the source quickly in the SVN browser, were is it located in the SVN repository ?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Eclipse debug plugin for ChibiOS/RT

Post by Giovanni »

Hi,

Probably it is because you have to enable the options CH_DBG_ENABLE_STACK_CHECK and CH_DBG_FILL_THREADS in chconf.h.

The feature works by measuring how many bytes containing the filler remains in the stack.

The source code is available here: http://chibios.svn.sourceforge.net/view ... pse_debug/

Giovanni
DaWaN
Posts: 2
Joined: Mon Nov 21, 2011 3:12 pm

Re: Eclipse debug plugin for ChibiOS/RT

Post by DaWaN »

Looked into the sources and found out that 2.2.7 stable does not have the stacklimit implemented!
Now tested 2.3.3 unstable and stack checking function works :)
mobyfab
Posts: 484
Joined: Sat Nov 19, 2011 6:47 pm
Has thanked: 21 times
Been thanked: 31 times

Re: Eclipse debug plugin for ChibiOS/RT

Post by mobyfab »

Hi Giovanni,

I have just tested with my STM32F4DISCOVERY board and it does not seem to work... (nothing displayed by the plugin, debugging itself works fine)

Could you verify?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Eclipse debug plugin for ChibiOS/RT

Post by Giovanni »

Hi,

I will look into it.

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Eclipse debug plugin for ChibiOS/RT

Post by Giovanni »

Hi Mobyfab,

I just tested it, it worked. Make sure to enable the registry in chconf.h (it is enabled by default). Also, until the program goes past chSysInit() there is nothing to fetch so you need to step at least after that point.

Giovanni
Post Reply