3 years, 4 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.

Comment on this question

1 Answer

3 years, 4 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 Mrinank Sharma 06 Jul 2016

Easiest 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 Jarek Zgoda 06 Jul 2016

I still dont really understand. I have been messing about with gcc tools for mac but have no idea where to go from there. Can't believe something that should be so easy is so difficult!!

posted by Mrinank Sharma 08 Jul 2016

You need to log in to post a question