Offline compiling how-to

03 Apr 2010 . Edited: 03 Apr 2010

I think the online compiler and mbed software platform is cool and all, but I was also interested in compiling C/C++ code directly with a toolchain (and on this forum it seems I'm not alone). So here's a quick guide on how you can compile the CMSIS example program (and anything else you'd like) for the mbed: http://dev.frozeneskimo.com/notes/compiling_your_own_cmsis_code_for_the_mbed

Note that these instructions don't include yet compilation with the mbed library that provides the convenient interfaces listed in the handbook. Also, If anyone comes up with a better system_LPC17xx.h configuration (I'm just using the CMSIS LPC17xx example), please let me know.

Thanks

03 Apr 2010 . Edited: 03 Apr 2010

I've made some progress compiling a C++ program with the mbed library and the CodeSourcery toolchain, however I've run into a few obstacles. I've posted what I have so far at the page above.

Thanks

07 Apr 2010

See this thread for Keil:

 

http://mbed.org/forum/mbed/topic/518/?page=1#comment-3165

07 Apr 2010

Cool, but Keil seems to be for Windows only and an evaluation ( http://www.keil.com/demo/requirements.asp ). The GNU toolchain is cross-platform and free.

Thanks

 

08 Apr 2010

vsergeev have you been able to link against the mbed libs?

09 Apr 2010

Jason Engelman: not yet, but I think its pretty close. I'll try to tinker around with it some more...

Thanks

17 May 2010

Hi All,

A friend, JohnC, told me about this website: http://www.coocox.com. He is using their compiler for his project (which isn't mbed, but uses the same chip).

Hope someone finds this information useful.

Sophie x