lancaster-university / microbit-samples

http://lancaster-university.github.io/microbit-docs
Other
114 stars 72 forks source link

micro-bit-hello-world compile error #30

Closed FBSeletronica closed 4 years ago

FBSeletronica commented 4 years ago

Hello,

I'm trying to compile micro-bit-hello-world example in mbed compiler and I got this error:

Error: '.syntax divided' arm assembly not supported in "microbit/microbit-dal/nRF51822/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/delay/nrf_delay.h", Line: 266, Col: 6

Someone could help me?

I imported the example from this page: https://os.mbed.com/teams/microbit/ Captura de tela de 2019-09-28 17-41-58

jamesadevine commented 4 years ago

As that particular version of the DAL is pretty old, I would suspect that the mbed online compiler has been changed in someway to result in this output. Unfortunately, we have no control over the mbed online compiler and it may take some time to resolve, have you considered installing the toolchains locally?

@jaustin The ARMCC 6 compiler is not accounting for syntax divided in inline assembly (which is perfectly valid).

FBSeletronica commented 4 years ago

@jamesadevine thanks for the feedback.

Two weeks ago I compiled this same code and had no problems. I installed yotta and managed to compile offline but now I'm preparing a workshop with micro:bit and mbed and it would be better to use the online compiler.

madchutney commented 4 years ago

Hi @FBSeletronica ,

Apologies for the inconvenience, the Mbed Online Compiler has now been fixed. This was caused by the online compiler incorrectly selecting the Arm C6 toolchain for the micro:bit library after the last release.

FBSeletronica commented 4 years ago

@madchutney thank you very much!

jamesadevine commented 4 years ago

Wow thanks for the quick fix @madchutney :smile: