Project

General

Profile

Firmware » History » Version 9

peter, 2012-12-28 13:13

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 9 peter
The compiler (currently) creates two .bin files. (laos.bin and laos-lpc.bin) laos-LPC is (experimental) for the lpcexpresso (not mbed).
39 9 peter
40 9 peter
Use the following commands to build your bin files in your shell:
41 9 peter
<pre>
42 9 peter
git clone https://github.com/LaosLaser/Firmware.git
43 9 peter
make
44 9 peter
</pre>
45 9 peter
46 9 peter
and copy the resulting bin file to your MBED or LPC.