6 years, 2 months ago.

Microbit Not compile any more. Error: The build system did not finish successfully.

Hello,

Until yesterday I was able to compile my program for Microbit platform. Today, with no changes in my code, I always get a "The build system did not finish successfully"message with no more datails.

I also tried with a fresh example of "microbit_blinky" and I got the same message.

I can't compile any program for microbit.

Do you have more references about this problem?

Thanks in adavance.

3 Answers

6 years, 2 months ago.

Hi Samuel,

We are aware of the issue and are currently working on a fix. In the meantime, you can also use the offline Mbed CLI to compile for the Micro:bit, a quick start guide for the Mbed CLI is available here: https://os.mbed.com/docs/v5.10/tutorials/quick-start-offline.html

Please let me know if you have any questions!

- Jenny, team Mbed

If this solved your question, please make sure to click the "Thanks" link below!

6 years, 2 months ago.

Same here. Thanks for looking to this.

6 years, 2 months ago.

Hi,

I tried to use the offline Mbed CLI, but I get the following:

C:\mbed\blinky\mbed_blinky>mbed detect

[mbed] Detected NRF51_MICROBIT, port COM15, mounted G:, interface version 0241: [mbed] Supported toolchains for NRF51_MICROBIT

Targetmbed OS 2mbed OS 5ARMGCC_ARMIAR
-------------

Supported targets: 0

So no supported targets for my micro-bit board?

Please advise.

Many thanks,

Gary

Hi Gary,

The following OS versions and toolchains are supported for the NRF51_MICROBIT:

Targetmbed OS 2mbed OS 5ARMGCC_ARMuARMGCC_CRIARARMC6
NRF51_MICROBITSupported-SupportedSupported---Supported

I'm not sure why that information is not populating correctly. Are you running mbed detect from within an Mbed project? Also, can you please provide me your Mbed CLI version? mbed-cli --version

Thanks!

posted by Jenny Plunkett 02 Oct 2018

Hi Jenny,

Yes I think so. Having trouble using the online compiler, I followed the video about how to get started with the command line tool.

The cli version is:

C:\mbed\blinky\mbed_blinky>mbed-cli --version
1.7.2

My main.c is:

#include "mbed.h"

DigitalOut myled(LED2);

int main() {
    while(1) {
        myled = !myled;
        wait(0.5);
    }
}

When I go to compile it, I get a lot of errors:

C:\mbed\blinky\mbed_blinky>mbed compile main.c -t mbed OS 2 -m NRF51_MICROBIT
usage: make.py [-h] [-m MCU] [-t TOOLCHAIN] [--color] [--cflags CFLAGS]
               [--asmflags ASMFLAGS] [--ldflags LDFLAGS] [-c]
               [--profile PROFILE] [--app-config APP_CONFIG] [-p PROGRAM]
               [-n PROGRAM] [-j JOBS] [-v] [--silent] [-D MACROS]
               [-S [{matrix,toolchains,targets}]] [-f GENERAL_FILTER_REGEX]
               [--stats-depth STATS_DEPTH] [--automated] [--host HOST_TEST]
               [--extra EXTRA] [--peripherals PERIPHERALS]
               [--dep DEPENDENCIES] [--source SOURCE_DIR]
               [--duration DURATION] [--build BUILD_DIR] [-N ARTIFACT_NAME]
               [--ignore IGNORE] [-d DISK] [-s SERIAL] [-b BAUD] [-L] [--rpc]
               [--usb] [--dsp] [--testlib] [--build-data BUILD_DATA]
               [-l LINKER_SCRIPT]
make.py: error: argument -t/--tool: mbed is not a supported toolchain. Supported toolchains are:
ARM,     ARMC6,   GCC_ARM, IAR,     uARM
[mbed] ERROR: "C:\Python27\python.exe" returned error code 2.
[mbed] ERROR: Command "C:\Python27\python.exe -u C:\mbed\blinky\mbed_blinky\.temp\tools\make.py -t mbed -m NRF51_MICROBIT --source . --build .\BUILD\NRF51_MICROBIT\MBED main.c OS 2" in "C:\mbed\blinky\mbed_blinky"
---

Many thank,

Gary

posted by Gary Perry 03 Oct 2018

Hi Gary, please try the following command instead: mbed compile -t gcc_arm -m NRF51_MICROBIT

Also, here is a quickstart guide for the Mbed CLI: https://os.mbed.com/docs/latest/tutorials/quick-start-offline.html

- Jenny, team Mbed

posted by Jenny Plunkett 04 Oct 2018

Hi Jenny,

Sorry I haven't been back to you sooner.

Many thanks for your help again. I think we're getting closer. I tried your command line arguments and received this message:

C:\mbed\blinky\mbed_blinky>mbed compile -t gcc_arm -m NRF51_MICROBIT Using targets from C:\mbed\blinky\mbed_blinky\mbed\f9eeca106725\targets.json Building project mbed_blinky (NRF51_MICROBIT, GCC_ARM) Scan: mbed_blinky Compile [100.0%]: main.cpp Link: mbed_blinky c:/program files (x86)/gnu tools arm embedded/6 2017-q2-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o: In function `_start': (.text+0x52): undefined reference to `wrap_exit' collect2.exe: error: ld returned 1 exit status [ERROR] c:/program files (x86)/gnu tools arm embedded/6 2017-q2-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o: In function `_start': (.text+0x52): undefined reference to `wrap_exit' collect2.exe: error: ld returned 1 exit status

[mbed] ERROR: "C:\Python27\python.exe" returned error code 1. [mbed] ERROR: Command "C:\Python27\python.exe -u C:\mbed\blinky\mbed_blinky\.temp\tools\make.py -t gcc_arm -m NRF51_MICROBIT source . build .\BUILD\NRF51_MICROBIT\GCC_ARM" in "C:\mbed\blinky\mbed_blinky" -

So I think it compiled ok, but there could be a linker issue?

All the best,

Gary

posted by Gary Perry 08 Oct 2018