7 years, 5 months ago.

mbed CLI Compile error (target 'NUCLEO_L073RZ')

After importing successfully the Nucleo_blink_led program using the mbed CLI import command, I try to compile it locally for the NUCLEO_L073RZ target (GCC_ARM toolchain), but I face the following problem:

[ERROR] Attribute 'default_build' not found in target 'NUCLEO_L073RZ' [mbed] ERROR: "python" returned error code 1.

The problem does not arise compiling the same program for NUCLEO_F401RE target.

Could you please help me to solve this issue? Thanks in advance.

Regards, Luigi

If it helps any, I saw the same problem for the NUCLEO_F042K6 target, but could compile after the suggested workaround.

posted by Andy Breuninger 03 Dec 2016

1 Answer

7 years, 5 months ago.

Hi Luigi,

Sorry for the issues you are having :).

So this seems to be some strange issues with the latest revision of mbed 2.0. Rolling back the revision from 0ab6a29f35bf to 25aea2a3f4e3 seemed to fix this issue.

I am going to flag this issue.

For now, open the mbed.bld file in text editor and replace everything with:

http://mbed.org/users/mbed_official/code/mbed/builds/25aea2a3f4e3

Then use 'mbed deploy' to update libraries to this revision.

Regards,

Andrea team mbed

Accepted Answer

Hi Andrea, many thanks for your support! Reverting the mbed library to the revision you have indicated, I'm able to successfully compile the program on my PC.

Could you please inform me when the new revision (with the fix) will be available?

Regards, Luigi

posted by Luigi Capobianco 11 Nov 2016

FTR the same error occurs with NRF51822, and the same workaround fixes the problem.

posted by Szabolcs Székelyi 03 Dec 2016