Yotta build failed


I am new to the mbed and I am now trying the blinky example.

I am using the board LPC1768 and I set the target as nxp-lpc1768-armcc

But when I try yt build, it comes the following error:

ERROR: the arm toolchain program armcc could not be found.

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
– Configuring incomplete, errors occurred!
error: command [‘cmake’, ‘-D’, ‘CMAKE_BUILD_TYPE=RelWithDebInfo’, ‘-G’, ‘Ninja’, ‘.’] failed

I have searched on internet but didn’t find any soultion.

Thank you for your help!

This failure is because the armcc compiler can’t be found.

armcc is available as part of ARM’s DS5 tools: http://ds.arm.com/ds-5/build/arm-compiler-5/

Please note that lpc1768 isn’t (yet!) an officially supported mbed OS board, all of the officially supported boards can also be compiled with the open-source gcc toolchain available here: https://launchpad.net/gcc-arm-embedded

One small addition to the above, you can also install uvision5 (use latest versions which include c++11 support , they updated some vital features). It comes with ARMCC, which you can use for yotta armcc development.