Project

General

Profile

Firmware » History » Version 10

peteruithoven, 2013-05-15 23:57

1 1 peter
h1. LAOS firmware
2
3
h3. Firmware
4
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
h3. Download compiled versions
10
11
The compiled firmware file is here (save to your MBED):
12
13 7 jaap
p(((. https://github.com/LaosLaser/Firmware
14 1 peter
15
The configuration files are here (download, modify for your machine, and save on MBED as *config.txt*):
16
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
23 4 peter
h1. Development
24 1 peter
25 4 peter
These are other version of the firmware that might fix some bugs.
26
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
# MBED online compiler (at http://mbed.org): You need an account on mbed.org and a Internet connection. 
33
# 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
http://jeelabs.net/projects/tosca/wiki/ARM_toolchain_setup_GCC4ARM
37 1 peter
38 10 peteruithoven
Installation of gcc4mbed on linux:
39
@wget https://github.com/adamgreen/gcc4mbed/zipball/master
40
mv master adamgreen-gcc4mbed.zip
41
unzip adamgreen-gcc4mbed.zip
42
mv adamgreen-gcc4mbed-* gcc4mbed
43
cd gcc4mbed
44
./linux_install@
45 9 peter
46 10 peteruithoven
Then download / clone the firmware
47 1 peter
<pre>
48
git clone https://github.com/LaosLaser/Firmware.git
49 10 peteruithoven
</pre>
50
Place laser folder in gcc4mbed folder
51
Run the following command in that folder
52
<pre>
53 9 peter
make
54
</pre>
55 1 peter
56
and copy the resulting bin file to your MBED or LPC.
57 10 peteruithoven
58
The compiler (currently) creates two .bin files. (laos.bin and laos-lpc.bin) laos-LPC is (experimental) for the lpcexpresso (not mbed).