mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Issue: nRF51822 and new SoftDevice linker problem?

Starting this revision mbed online compiller creates wrong hex files for nRF51822 projects.
For example if I create new empty project with only main.cpp file:

#include "mbed.h"

DigitalOut myled(LED1);

int main() {
    while(1) {
        myled = 1;
        wait(0.2);
        myled = 0;
        wait(0.2);
    }
}

And import mbed-src library from this revision then after project compiles it'll create wrong hex file with size 4476 bytes and I can't flash it into device with error:
ERROR: Error in opening or parsing mbed_blinky_NRF51822_.hex file.
But if I import mbed-src library from previous revision with old softdevice then all works fine: compiler creates hex file with size 244960 bytes and I can flash it into my device without errors.

5 comments:

22 Oct 2014

Hi, thanks for reporting.

I believe this is because scripts in the online system has not been yet updated. To confirm this, go to the github mbed SDK repository, clone, build hello world for nrf51 target and flash it. If it works (mbed-src is mirror of mbed SDK on github), the website has an issue.

Can you do the same with github https://github.com/mbedmicro/mbed ? You can report issues there related to mbed SDK ;)

Regards,
0xc0170

22 Oct 2014

Hi, Martin,

Thanks for your response, I compiled blinky example with mbed-tools and checked it on my board and it works fine. So it's online compiler fault.

Martin Kojtal wrote:

Can you do the same with github https://github.com/mbedmicro/mbed ? You can report issues there related to mbed SDK ;)

It's best to report mbed issues on github in the future?

23 Oct 2014

Yes, bugs related to mbed SDK can be reported on github. As the development is happening there.

As this one is related to the website, I am not certain where is the correct place to report bugs. I would assume as a question here on the developer.mbed.org. I'll share this bug with mbed web team.

-deleted-
23 Oct 2014

Hi Nikita,

As Martin mentioned already, the online build system is not updated yet to support the latest version of the .hex file. mbed-src is a development branch of the official mbed library and as such it's expected that some features are not pushed to the live build system immediately. It is also expected that it compiles with the workspace_tools as these tools are provided for use with the development branch.

There is a scheduled update for this Friday, during which the online build system will be updated to support this.

Cheers,
Mihail

23 Oct 2014

Hi Mihail,

Ok, I understand, thanks for the explanation.