Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 5 months ago.
Programming for mbed offline
Hello.
I am currently working on Osx and was wondering whether there was a way to run the arm compilers offline on a mac. I have seen information regarding 'toolkits' but don't know what these actually mean.
1 Answer
8 years, 5 months ago.
You have to install complete ARM_GCC toolchain, either by compiling linaro toolchain from sources or download prebuilt binary from GNU ARM Embedded project page -> https://launchpad.net/gcc-arm-embedded/+download. Exported code from online IDE will get compiled with included Makefile. That's the hard way.
The easy way is to install PlatformIO supported IDE and appropriate IDE plugin -> http://docs.platformio.org/en/latest/ide.html (personally I prefer Atom editor with PIO plugin).
I have downloaded platformio and started working on the LPC 1768 board. However, I am unsure as to how to import libraries. Any tips ?
posted by 06 Jul 2016Easiest will be to clone them in lib/ subdirectory of your project - go to the library page and copy "clone" link, it copies complete hg clone command. The range of libraries supplied by PIO with their library manager for mbed (see http://platformio.org/lib/search?query=framework%253Ambed) is limited because they can not depend on compile time definitions that are automatically handled by mbed online IDE & compiler. You'd have specify additional build flags sometimes, as PIO itself is not able to detect library structure. This is described on PIO Community site, check the FAQ category. Had you have any questions - do not hesitate to ask, we're pretty friendly there -> https://community.platformio.org/
posted by 06 Jul 2016