Project

General

Profile

Firmware » History » Version 11

peteruithoven, 2013-05-15 23:57

1 1 peter
h1. LAOS firmware
2 1 peter
3 1 peter
h3. Firmware
4 1 peter
5 6 KalleP
The "Firmware":/index.php/Firmware is the code that controls the motor and laser. It is installed on the mainboard. Installation of the firmware on the controller, and configuration of the firmware for your system is described "here":/index.php/Config.txt_this. To test the hardware, a separate test program is written. Its use is described "here":/index.php/Mainboard_Rev2#Testing_the_board.
6 1 peter
7 6 KalleP
The firmware uses a simple instruction language that is described [[SimpleCode|here]]. These instructions are used to instruct the laser to move, cut and mark.
8 1 peter
9 1 peter
h3. Download compiled versions
10 1 peter
11 1 peter
The compiled firmware file is here (save to your MBED):
12 1 peter
13 7 jaap
p(((. https://github.com/LaosLaser/Firmware
14 1 peter
15 1 peter
The configuration files are here (download, modify for your machine, and save on MBED as *config.txt*):
16 1 peter
17 7 jaap
p(((. http://redmine.laoslaser.org/projects/laos/wiki/LAOS_configuration_file
18 4 peter
19 8 axel
The MBED uses the latest .bin file (timestamp).
20 4 peter
21 8 axel
22 8 axel
23 4 peter
h1. Development
24 1 peter
25 4 peter
These are other version of the firmware that might fix some bugs.
26 4 peter
27 7 jaap
* Development Firmware V0.4 (Dated 11-aug-2012) Fixes the laser power on problem- ["Download":https://github.com/LaosLaser/Firmware.git] and save to your MBED.
28 8 axel
29 9 peter
h1. Compiling from source
30 1 peter
31 9 peter
It is possible to compile the software from source and make a binary image that runs on the mbed.
32 9 peter
# MBED online compiler (at http://mbed.org): You need an account on mbed.org and a Internet connection. 
33 9 peter
# GCC4MBED offline compiler, using GCC. Download at (https://github.com/adamgreen/gcc4mbed)
34 1 peter
35 9 peter
You can use GCC4MBED on your platform, or use a linux virtual machine to compile the sources. See:
36 9 peter
http://jeelabs.net/projects/tosca/wiki/ARM_toolchain_setup_GCC4ARM
37 1 peter
38 10 peteruithoven
Installation of gcc4mbed on linux:
39 11 peteruithoven
<pre>
40 11 peteruithoven
wget https://github.com/adamgreen/gcc4mbed/zipball/master
41 10 peteruithoven
mv master adamgreen-gcc4mbed.zip
42 10 peteruithoven
unzip adamgreen-gcc4mbed.zip
43 1 peter
mv adamgreen-gcc4mbed-* gcc4mbed
44 10 peteruithoven
cd gcc4mbed
45 11 peteruithoven
./linux_install
46 11 peteruithoven
</pre>
47 10 peteruithoven
Then download / clone the firmware
48 1 peter
<pre>
49 1 peter
git clone https://github.com/LaosLaser/Firmware.git
50 10 peteruithoven
</pre>
51 10 peteruithoven
Place laser folder in gcc4mbed folder
52 10 peteruithoven
Run the following command in that folder
53 10 peteruithoven
<pre>
54 9 peter
make
55 9 peter
</pre>
56 1 peter
57 1 peter
and copy the resulting bin file to your MBED or LPC.
58 10 peteruithoven
59 10 peteruithoven
The compiler (currently) creates two .bin files. (laos.bin and laos-lpc.bin) laos-LPC is (experimental) for the lpcexpresso (not mbed).