User Tools

Site Tools


build

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
build [2012/11/26 10:30]
white_rabbit no more sourcery g++
build [2013/02/19 14:25] (current)
trapicki [4. Deploy] added instructions for manual firmware deployment
Line 108: Line 108:
 ===== 4. Deploy ===== ===== 4. Deploy =====
 <note tip> <note tip>
-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.+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, see [[#​manual|below]]. 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.
 </​note>​ </​note>​
 +
 +==== automatic =====
  
   * Install udev rule   * Install udev rule
Line 145: Line 147:
 </​note>​ </​note>​
  
 +==== manual ====
 +
 +Due to some incompatibility in the Linux vfat driver, just mounting and copying the firmware does not work. The firmware has to be dd'ed to the r0ket:
 +  - connect r0ket in ISP mode
 +  - make sure that the device is not mounted
 +  - dd if=firmware.bin of=/​dev/<​devicename>​ bs=1024 skip=2
 +
 +The right device is 34 kiByte in size.
 ===== 5. Building the original Firmware ===== ===== 5. Building the original Firmware =====
 To rebuild the original firmware you can use the release-all script in firmware/. It will build the firmware and all additional programs and put them into /release. You have to copy SECRETS to SECRETS.release first. To rebuild the original firmware you can use the release-all script in firmware/. It will build the firmware and all additional programs and put them into /release. You have to copy SECRETS to SECRETS.release first.
build.txt ยท Last modified: 2013/02/19 14:25 by trapicki