7 years, 8 months ago.

Export to gcc doesn't save any file

Hello, I am trying to export the "microbit-hello-world" example to gcc (arm embedded), but after seeing in the state bar "downloading" nothing happens. I can actually export it as zip archive, but then I get a bunch of errors regarding from the assembler when trying to compile in Eclipse.

Am I missing something ?

Eventually, is there a way to convert the assembly file in a format that is understood by GNU GCC ?

Thank you very much ...

1 Answer

7 years, 8 months ago.

Hi Jean Paul,

Thanks for your message.

We are currently having issues with exporting of GCC at the moment so this is why you are experience the issue. aI'll let you know ASAP when i have more information.

Let me know if theres anything else i can do.

Regards,

Andrea, team mbed

Accepted Answer

Hello, I succeeded in compiling the project making these three changes: 1) renamed BLE.h to BLEdevice.h and changed all the references 2) changed the stile of the .s file to the GNU one 3) Since i got this error: microbit/microbit-dal/source/drivers/MicroBitI2C.cpp: In member function 'int MicroBitI2C::write(int, const char*, int, bool)': microbit/microbit-dal/source/drivers/MicroBitI2C.cpp:124:35: error: too few arguments to function 'bool twi_master_init_and_clear(NRF_TWI_Type*)' twi_master_init_and_clear(); ^

I modified the call in "twi_master_init_and_clear(_i2c.i2c);"

There is a problem, though: the display doesn't seem to work properly. In particular 3 pins are always on ((1,4),(2,2) and (4,4), using 1 as a base) and some others are always off. The one working could be slightly off-place, but the "hello world" message can be recognized.

Have you any idea from where the problem could be generated ? I tried to change the display type, but it got even worse (the three pin on where the same , though ...).

Thank you for your help JP

PS Are you Italian? Io vengo da Aosta (lavoro a Basilea)

posted by Jean Paul Voyat 26 Aug 2016