-deleted-
9 years ago.

Offline Compiling with Offline Version Control, anyone doing this?

This question was motivated by the following two events:

http://developer.mbed.org/questions/7031/After-the-compiler-went-down-briefly-yes/ and http://developer.mbed.org/questions/6956/Compiler-Down-502-Bad-Gateway/ and intense frustration http://developer.mbed.org/questions/7033/mbed-SERVER-MAINTAINENCE-DESTROYS-4-MONT/

Related question: https://developer.mbed.org/questions/6474/cant-export-to-gcc-with-makefile/

I would like to know if there is someone in the community who has had success with offline compiling with version control perhaps using Mercurial http://mercurial.selenic.com/ or something similar.

I would appreciate any tips, hints or suggestions on how to be successful with this approach.

2 Answers

9 years ago.

Hello,

There's gcc4mbed, I wrote simple makefile for mbed I used in the past. I am currently developing project generator which should allow to export a project. This is a demo how it works with mbed, to export mbed blinky for various tools : https://github.com/0xc0170/project_generator_mbed_examples . Write a record for your project, your target, and export/build. I appreciate any feedback, look at the repository. It's published on pypi, where you can download the latest version.

You can access your code from here offline, using mercurial. Or use git with github for version control (more often commits), and minor/major versions to the repository to share it with the community.

Regards, 0xc0170

Accepted Answer

one more, mbed SDK is on github, where are tools which can export tests plus basic examples, they can also help: https://github.com/mbedmicro/mbed

A link to gcc4mbed - https://github.com/adamgreen/gcc4mbed

I personally work offline, so if you have any questions, ask ;) One of the efforts to have offline support is that project generator

posted by Martin Kojtal 09 Apr 2015

Thank you Martin. Sometimes a comment post fails, unless I use a ? first and then edit after.

posted by -deleted- 09 Apr 2015

what's not clear? Or testing if comments are working :) ?

posted by Martin Kojtal 10 Apr 2015
9 years ago.

I use a 1768 since a long time, with a offline compiler .
It was the standard CodeSourcery exporter as provided by Mbed until two weeks ago. Now I prefer Gcc Arm because the nanolib is better for me (less RAM )
For the version control of my local source files , I use Mercurial. A safety backup is provided by BitBucket and with a local differential backup ( ...paranoid ??)
Sometimes I make a zip file and I import this file in the online compiler for some performance tests or to compare the warning messages of the different compilers.
My project is a radio control transmitter and I am happy to fly with a Mbed in my transmitter !

Thank you Robert. I appreciate your help.

posted by -deleted- 09 Apr 2015