Sysprogs forums › Forums › VisualGDB › mbed library
- This topic has 9 replies, 3 voices, and was last updated 10 years ago by
support.
-
AuthorPosts
-
January 14, 2016 at 23:57 #7480
Silvergaucho
ParticipantHei there!
I’m evaluating VisualGDB and it looks great so far.
My question is if the mbed libraries can be used. Are there any examples or tutorials?
Thanks
January 16, 2016 at 03:51 #7483support
KeymasterHi,
We are planning to add mbed support in the next preview build of VisualGDB 5.1. We will be adding a tutorial in the next few weeks.
January 17, 2016 at 12:56 #7488Silvergaucho
Participanthei Bazis,
Thank you for the answer.
Have u got a release date?
Which version of the mbed libraries are you going to support?
Thanks
January 20, 2016 at 06:42 #7496support
KeymasterHi,
We expect a preview build this week. We are going to support the latest version from github.
January 22, 2016 at 12:46 #7505Silvergaucho
ParticipantOK,
good waiting for that.
What I want to realize is:
nrf52 + mbed + visualGDB debugging
January 22, 2016 at 13:22 #7508Dan Bryant
ParticipantI’ll second that #nrf52 + mbed + visualGDB debugging
January 22, 2016 at 14:02 #7509Silvergaucho
ParticipantI really think will be a big boost for visualGDB adoptions
January 25, 2016 at 05:46 #7523support
KeymasterHi,
OK, folks, we have added mbed support to VisualGDB.
Please try the newest 5.1 Preview 2.
A detailed tutorial is here: http://visualgdb.com/tutorials/arm/mbed/
January 25, 2016 at 18:58 #7528Silvergaucho
ParticipantBazis,
1) we have downloaded the new version as you suggested
2) created a new project as described in your blog post with target nrf51822
3) created a very simple led blinking project:#include <mbed.h>
DigitalOut g_LED(LED1);
int main()
{
for (;;)
{
g_LED = 1;
wait_ms(500);
g_LED = 0;
wait_ms(500);
}
}When we launch debug, we get this error from the GDB Session panel:
Cannot resolve the address of _estack. Skipping stack pointer validity check.
(Same board is used with normal(without mbed) nrf51822 board and everything works as expected)
And everything seems to be frozen. No breakpoints working.
Is maybe a mistake of us?
Another question is that it seems nrf52832 is not supported using mbed…is there a workaround?Thanks a lot
January 25, 2016 at 21:20 #7529support
KeymasterHi,
Thanks for reporting this, looks like the nRF51 port of mbed expects you to program the softdevice separately. We have published a detailed tutorial showing how to edit the linker script to embed the softdevice in your project just like VisualGDB does normally: http://visualgdb.com/tutorials/arm/mbed/nrf51/
As for nRF52, we will happily support it once mbed officially supports it. If there is an unofficial port already, you can run our open-source mbed BSP generator on it and import the resulting BSP into VisualGDB.
-
AuthorPosts
- You must be logged in to reply to this topic.