mbed library

Sysprogs forums Forums VisualGDB mbed library

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #7480
    Silvergaucho
    Participant

    Hei 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

    #7483
    support
    Keymaster

    Hi,

    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.

    #7488
    Silvergaucho
    Participant

    hei Bazis,

    Thank you for the answer.

     

    Have u got a release date?

    Which version of the mbed libraries are you going to support?

    Thanks

     

    #7496
    support
    Keymaster

    Hi,

    We expect a preview build this week. We are going to support the latest version from github.

    #7505
    Silvergaucho
    Participant

    OK,

    good waiting for that.

    What I want to realize is:

    nrf52 + mbed + visualGDB debugging

     

     

    #7508
    Dan Bryant
    Participant

    I’ll second that #nrf52 + mbed + visualGDB debugging

    #7509
    Silvergaucho
    Participant

    I really think will be a big boost for visualGDB adoptions

    #7523
    support
    Keymaster

    Hi,

    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/

    #7528
    Silvergaucho
    Participant

    Bazis,

    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

    #7529
    support
    Keymaster

    Hi,

    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.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.