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