Project

General

Profile

CompilingFirmware » History » Version 1

peteruithoven, 2013-08-11 12:40

1 1 peteruithoven
It is possible to compile the software from source and make a binary image that runs on the mbed.
2
# MBED online compiler (at http://mbed.org): You need an account on mbed.org and a Internet connection. 
3
# GCC4MBED offline compiler, using GCC. Download at (https://github.com/adamgreen/gcc4mbed)
4
5
You can use GCC4MBED on your platform, or use a linux virtual machine to compile the sources. See:
6
http://jeelabs.net/projects/tosca/wiki/ARM_toolchain_setup_GCC4ARM
7
8
Installation of gcc4mbed on linux:
9
<pre>
10
wget https://github.com/adamgreen/gcc4mbed/zipball/master
11
mv master adamgreen-gcc4mbed.zip
12
unzip adamgreen-gcc4mbed.zip
13
mv adamgreen-gcc4mbed-* gcc4mbed
14
cd gcc4mbed
15
./linux_install</pre>
16
Check the "Github gcc4mbed page":https://github.com/adamgreen/gcc4mbed when you run into problems. 
17
Then download / clone the firmware
18
<pre>git clone https://github.com/LaosLaser/Firmware.git</pre>
19
Place laser folder in gcc4mbed folder
20
Run the following command in that folder
21
<pre>make</pre>
22
And copy the resulting bin file to your MBED or LPC.
23
24
The compiler (currently) creates two .bin files. (laos.bin and laos-lpc.bin) laos-LPC is (experimental) for the lpcexpresso (not mbed).