User Tools

Site Tools


build

This is an old revision of the document!


The released source does NOT contain the full firmare of r0ket for the camp. If you build your own version some of the hidden functionality may be lost. If you want to recover to the original state we will provide a flash service on site.

Build environment

1. Compiler

2. Source

  • Install git
    • sudo apt-get install git-core
  • Clone git repository
    • git clone git://github.com/r0ket/r0ket.git 

3. Build

  • cd firmware
    make

4. Deploy

The LPC1343 has a USB-ISP, it can be booted as an USB storage device, and the firmware can be copied as a file. Unfortunately, this only works on Windows. On Linux, the firmware has to be directly written to the device. Additionally, a bug in the ROM causes the CPU to hang for 20 seconds when entering the bootloader. To make development more convenient, the autoflash tool monitors the USB for r0kets in ISP-Mode and automatically flashes the last built firmware. An “ISPAndReset()”-function in the library enables the user to reset the r0ket to ISP-mode and circumvent the 20 second delay.
  • Install udev rule
    • sudo cp tools/bootloader/42-nxp-flash.rules /etc/udev/rules.d/
      sudo /etc/init.d/udev restart
  • start autoflasher
    • cd src
      ../tools/bootloader/autoflash
  • Method 1
    • Power off r0ket
    • Press and hold button X
    • Connect r0ket via USB
  • Method 2
    • Connect r0ket via USB
    • Select menu option “Invoke ISP
build.1308569011.txt.gz · Last modified: 2011/06/20 13:23 by iggy