11 years, 11 months ago.

Way to compile without a mbed board?

The mbed web compiler is very annoyng if you do not have the device. You cant export the project to Kies offline compiler.

I ordered my first mbed device seeedstudio arch and i have written and copy pasted hundreds of lines of code. The device comes in couple of weeks and it would be nice to compile the project because it has been some time since my last c++ project.

I found class browsers and class member helper features missing from the web IDE. I had programmed professionally a lot with Microsoft C++ and MS have the best programming IDEs.

3 Answers

11 years, 11 months ago.

Hello Eero Lehtinen,

the limitation that you can't use mbed online compiler without a board is logical, isn't it? However, you can build your application offline, download mbed sources (preferably from github), create a project in keil, add your sources, set target MCU and compile. Keil is just one option, there are many other compilers supported (not certain for you platform because I have not used it yet).

There are tutorials how to do offline compiling/debugging. I wrote for example a tutorial how to compile/debug code in eclipse with ARM GCC for KL25Z (or without eclipse, just compile, creates a binary file and flash it directly), there's another gcc4mbed project worth reading, or I wrote another tutorial how to create a project for KL05 in KEIL, this platform is not online supported yet, same as for your board. Check my notepad where are links ;)

Helpers are there, press Control (check other OS keys, it's published somewhere here on mbed), and it should pop up a description.

Regards,
0xc0170

11 years, 11 months ago.

Eero,

  1. Go to http://mbed.org/platforms/
  2. Choose the board you want to compile for.
  3. Click "Add to Compiler".

This will allow you to compile your project.

I'm not sure what "Kies" is, perhaps you're posting from a phone with auto-correct and you mean Keil? It is possible to export projects for Keil (and other offline toolchains) from the compiler for targets that you've added to the online compiler.

Regarding class browsers, if the library you're using is documented the documentation appears in the online compiler which you can find in the workspace tree to the left or you can hold control and click on certain tokens within a piece of source code to see some information about them.

You can find information about accessing and writing documentation here and there's a blog post here that describes what is called 'interactive mode' in the compiler.

Steve

11 years, 11 months ago.

Thanks for the info. To be excact first you need to select the platform, then re open the compiler and voila. This action order could be in the compiler, for example when the user first time opens the compiler, device selection could be there. Now I downloaded 500MB of Keil and compiled with that and corrected my c++ syntax.