Project

General

Profile

Firmware » History » Revision 9

Revision 8 (axel, 2012-11-14 16:00) → Revision 9/29 (peter, 2012-12-28 13:13)

h1. LAOS firmware 

 h3. Firmware 

 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. 

 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. 

 h3. Download compiled versions 

 The compiled firmware file is here (save to your MBED): 

 p(((. https://github.com/LaosLaser/Firmware 

 The configuration files are here (download, modify for your machine, and save on MBED as *config.txt*): 

 p(((. http://redmine.laoslaser.org/projects/laos/wiki/LAOS_configuration_file 

 The MBED uses the latest .bin file (timestamp). 



 h1. Development 

 These are other version of the firmware that might fix some bugs. 

 * 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. 

 h1. Compiling from source 

 It is possible to compile the software from source and make a binary image that runs on the mbed. 
 # MBED online compiler (at http://mbed.org): You need an account on mbed.org and a Internet connection.  
 # GCC4MBED offline compiler, using GCC. Download at (https://github.com/adamgreen/gcc4mbed) 

 You can use GCC4MBED on your platform, or use a linux virtual machine to compile the sources. See: 
 http://jeelabs.net/projects/tosca/wiki/ARM_toolchain_setup_GCC4ARM 

 


 The compiler (currently) creates two .bin files. (laos.bin  

 laos.bin and laos-lpc.bin) laos-LPC laos-lpc.bin. 

 LPC is (experimental) for the lpcexpresso (not mbed). 

 Use the following commands to build your bin files in your shell: 
 <pre> 
 git clone https://github.com/LaosLaser/Firmware.git 
 make 
 </pre> 

 and copy the resulting bin file to your MBED or LPC. lpcexpresso.