Firmware » History » Version 17
peteruithoven, 2013-08-11 12:38
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 | 17 | peteruithoven | p(((. "Latest firmware version":https://github.com/LaosLaser/Firmware/raw/master/laoslaser-2-6-2013.bin |
14 | p(((. All firmware versions: https://github.com/LaosLaser/Firmware |
||
15 | 1 | peter | |
16 | The configuration files are here (download, modify for your machine, and save on MBED as *config.txt*): |
||
17 | |||
18 | 7 | jaap | p(((. http://redmine.laoslaser.org/projects/laos/wiki/LAOS_configuration_file |
19 | 4 | peter | |
20 | 8 | axel | The MBED uses the latest .bin file (timestamp). |
21 | 4 | peter | |
22 | 8 | axel | |
23 | |||
24 | 4 | peter | h1. Development |
25 | 1 | peter | |
26 | 4 | peter | These are other version of the firmware that might fix some bugs. |
27 | |||
28 | 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. |
29 | 8 | axel | |
30 | 9 | peter | h1. Compiling from source |
31 | 1 | peter | |
32 | 9 | peter | It is possible to compile the software from source and make a binary image that runs on the mbed. |
33 | # MBED online compiler (at http://mbed.org): You need an account on mbed.org and a Internet connection. |
||
34 | # GCC4MBED offline compiler, using GCC. Download at (https://github.com/adamgreen/gcc4mbed) |
||
35 | 1 | peter | |
36 | 9 | peter | You can use GCC4MBED on your platform, or use a linux virtual machine to compile the sources. See: |
37 | http://jeelabs.net/projects/tosca/wiki/ARM_toolchain_setup_GCC4ARM |
||
38 | 1 | peter | |
39 | 10 | peteruithoven | Installation of gcc4mbed on linux: |
40 | 11 | peteruithoven | <pre> |
41 | wget https://github.com/adamgreen/gcc4mbed/zipball/master |
||
42 | 10 | peteruithoven | mv master adamgreen-gcc4mbed.zip |
43 | unzip adamgreen-gcc4mbed.zip |
||
44 | 1 | peter | mv adamgreen-gcc4mbed-* gcc4mbed |
45 | 10 | peteruithoven | cd gcc4mbed |
46 | 14 | peteruithoven | ./linux_install</pre> |
47 | 1 | peter | Check the "Github gcc4mbed page":https://github.com/adamgreen/gcc4mbed when you run into problems. |
48 | Then download / clone the firmware |
||
49 | 14 | peteruithoven | <pre>git clone https://github.com/LaosLaser/Firmware.git</pre> |
50 | 9 | peter | Place laser folder in gcc4mbed folder |
51 | Run the following command in that folder |
||
52 | 14 | peteruithoven | <pre>make</pre> |
53 | And copy the resulting bin file to your MBED or LPC. |
||
54 | 10 | peteruithoven | |
55 | The compiler (currently) creates two .bin files. (laos.bin and laos-lpc.bin) laos-LPC is (experimental) for the lpcexpresso (not mbed). |