<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.paparazziuav.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dirkx</id>
	<title>PaparazziUAV - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.paparazziuav.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dirkx"/>
	<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/wiki/Special:Contributions/Dirkx"/>
	<updated>2026-04-28T23:44:39Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=File:Protech-5fm-scope.jpg&amp;diff=5488</id>
		<title>File:Protech-5fm-scope.jpg</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=File:Protech-5fm-scope.jpg&amp;diff=5488"/>
		<updated>2009-09-20T17:25:09Z</updated>

		<summary type="html">&lt;p&gt;Dirkx: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dirkx</name></author>
	</entry>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=File:Protech-5fm-pad.jpg&amp;diff=5487</id>
		<title>File:Protech-5fm-pad.jpg</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=File:Protech-5fm-pad.jpg&amp;diff=5487"/>
		<updated>2009-09-20T17:24:58Z</updated>

		<summary type="html">&lt;p&gt;Dirkx: With pad&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;With pad&lt;/div&gt;</summary>
		<author><name>Dirkx</name></author>
	</entry>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=File:Protech-5fm.jpg&amp;diff=5486</id>
		<title>File:Protech-5fm.jpg</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=File:Protech-5fm.jpg&amp;diff=5486"/>
		<updated>2009-09-20T17:23:12Z</updated>

		<summary type="html">&lt;p&gt;Dirkx: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dirkx</name></author>
	</entry>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=Compiling&amp;diff=4102</id>
		<title>Compiling</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=Compiling&amp;diff=4102"/>
		<updated>2008-10-11T18:10:27Z</updated>

		<summary type="html">&lt;p&gt;Dirkx: /* Step 2 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Flight plans, tuning and configuration settings are compiled into a single binary image and transferred to the microcontroler flash rom through USB.  Most tuning and flight plan parameters can be changed in-flight but after each power cycle, the autopilot reverts to the original settings.  Permanent changes must be made in the source files, compiled, and uploaded to the autopilot.&lt;br /&gt;
&lt;br /&gt;
== Configuring Non-Root users to access USB ==&lt;br /&gt;
&lt;br /&gt;
Non-Root users typically do not have access to hardware I/O with USB ports included.  The user you are using to program the autpilots must be a member of the ''plugdev'' group. The original user login given during the Linux install process usually is a member. If not, add yourself to this group with the following command:&lt;br /&gt;
&lt;br /&gt;
  sudo adduser &amp;lt;your login&amp;gt; plugdev&lt;br /&gt;
&lt;br /&gt;
It will be effective only on your next login or after the command&lt;br /&gt;
&lt;br /&gt;
   newgrp plugdev&lt;br /&gt;
&lt;br /&gt;
== USB flashing ==&lt;br /&gt;
&lt;br /&gt;
The Paparazzi device rules are required for USB flashing.  Copy them into place if you haven't already done so:&lt;br /&gt;
 sudo cp $PAPARAZZI_HOME/conf/system/udev/rules/10-paparazzi.rules /etc/udev/rules.d/&lt;br /&gt;
&lt;br /&gt;
If you are using Ubuntu, the Braille TTY driver interferes with FTDI USB Serial adapters and should be removed:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get remove brltty&lt;br /&gt;
&lt;br /&gt;
[[Image:Tiny_test_wiring.jpg|thumb|Example wiring for programming and telemetry]]&lt;br /&gt;
If the autopilot senses a connected USB cable during power-on, it will wait to receive a firmware image rather than booting normally.  The firmware can be compiled and flashed by several means, '''the simplest way using the [[Paparazzi_Center|Paparazzi Center]]''', the traditionnal way being:&lt;br /&gt;
 make AIRCRAFT=''myplane'' clean_ac ap.upload&lt;br /&gt;
 (where ''myplane'' is the name of your airframe as defined in &amp;lt;tt&amp;gt;conf/conf.xml&amp;lt;/tt&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
This command erases any compiled autopilot code from the PC, recompiles everything from scratch, and then sends it to the autopilot.  &lt;br /&gt;
Variations include:&lt;br /&gt;
* make AIRCRAFT=''myplane'' sim&lt;br /&gt;
*: Compiles your code for use in the simulator - note that &amp;quot;clean_ac&amp;quot; will remove this code, so the simulator code must be rebuilt each time a clean has been performed.&lt;br /&gt;
* make AIRCRAFT=''myplane'' fbw.upload&lt;br /&gt;
*: This is needed when configuring the separate &amp;quot;fly by wire&amp;quot; MCU on the [[Classix]] autopilot.&lt;br /&gt;
* make AIRCRAFT=''myplane'' ap&lt;br /&gt;
*: This will simply build the portions of autopilot code that have changed since the last compile without attempting to flash.  Note: this method may not detect certain changes (i.e. changes to the airframe makefile section or CVS updated code).&lt;br /&gt;
* make AIRCRAFT=''myplane'' ap.upload FLASH_MODE=IAP&lt;br /&gt;
*: Specifies USB flashing.  This should be specified at the top of the makefile section of your airframe file but can be overridden here.  Use FLASH_MODE=IAS for serial flashing.&lt;br /&gt;
&lt;br /&gt;
=== Verify that above downloads work ===&lt;br /&gt;
&lt;br /&gt;
==== Step 1 ====&lt;br /&gt;
&lt;br /&gt;
Connect the USB cable to the USB port (U23, corner of the board). You then typically should see feedback like:&lt;br /&gt;
&lt;br /&gt;
   ~/paparazzi3$ dmesg | tail -5&lt;br /&gt;
   [79212.484187] pl2303 1-2.3:1.0: device disconnected&lt;br /&gt;
   [82312.463077] usb 5-1: new high speed USB device using ehci_hcd and address 23&lt;br /&gt;
   [82327.555770] usb 5-1: device descriptor read/64, error -110&lt;br /&gt;
   [82342.752307] usb 5-1: device descriptor read/64, error -110&lt;br /&gt;
   [82342.968031] usb 5-1: new high speed USB device using ehci_hcd and address 24&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
which confirms that your device is powered up and visible. If not - check your power and connections. Failing that - prepare to download the USB Bootloader through the 'Download' connector. &lt;br /&gt;
&lt;br /&gt;
Above output is for the Tiny2.1.&lt;br /&gt;
&lt;br /&gt;
==== Step 2 ====&lt;br /&gt;
&lt;br /&gt;
Secondly - download some firmare (here we're using a modified [http://paparazzi.enac.fr/wiki/index.php/Using_demo_programs_in_sw/airborne demo2] - which flashes the LEDs with a Tiny2.1 board):&lt;br /&gt;
&lt;br /&gt;
   $ export PAPARAZZI_HOME=.. if needed... etc.&lt;br /&gt;
   $ make AIRCRAFT=DEMO demo2.upload&lt;br /&gt;
     make[1]: Leaving directory `/usr/share/paparazzi'&lt;br /&gt;
    cd sw/airborne; make PAPARAZZI_SRC=/usr/share/paparazzi PAPARAZZI_HOME=/home/dirkx/paparazzi3 TARGET=demo2 all&lt;br /&gt;
    make[1]: Entering directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
    /home/dirkx/paparazzi3/var/demo/demo2/demo2.elf  :&lt;br /&gt;
    section    size         addr&lt;br /&gt;
    .text       956        16384&lt;br /&gt;
    .ctors        0        17340&lt;br /&gt;
    .dtors        0        17340&lt;br /&gt;
    .data         0   1073741824&lt;br /&gt;
    .bss         12   1073741824&lt;br /&gt;
    .stack     4096   1073742080&lt;br /&gt;
    .comment     54            0&lt;br /&gt;
    Total      5118&lt;br /&gt;
    make[1]: Leaving directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
    cd sw/airborne; make PAPARAZZI_SRC=/usr/share/paparazzi PAPARAZZI_HOME=/home/dirkx/paparazzi3 TARGET=demo2 upload&lt;br /&gt;
    make[1]: Entering directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
    /usr/share/paparazzi/sw/ground_segment/lpc21iap/lpc21iap  /home/dirkx/paparazzi3/var/demo/demo2/demo2.elf&lt;br /&gt;
    .&lt;br /&gt;
    Found USB device&lt;br /&gt;
    BootROM code: 2.12&lt;br /&gt;
    Part ID: 0x0402FF25 (LPC2148, 512k Flash, 32k+8k RAM)&lt;br /&gt;
    BootLoader version: 1.3&lt;br /&gt;
    #&lt;br /&gt;
    Starting software at 0x00004000&lt;br /&gt;
    make[1]: Leaving directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
    make: Leaving directory `/usr/share/paparazzi'&lt;br /&gt;
    ~/paparazzi3$&lt;br /&gt;
&lt;br /&gt;
which confirms that your device has the bootloader functioning. The important bit of output is:&lt;br /&gt;
&lt;br /&gt;
    Found USB device&lt;br /&gt;
    BootROM code: 2.12&lt;br /&gt;
    Part ID: 0x0402FF25 (LPC2148, 512k Flash, 32k+8k RAM)&lt;br /&gt;
    BootLoader version: 1.3&lt;br /&gt;
    #&lt;br /&gt;
&lt;br /&gt;
==== Step 3 ====&lt;br /&gt;
&lt;br /&gt;
Observe the LEDs flashing.&lt;br /&gt;
&lt;br /&gt;
==== Step 4 ====&lt;br /&gt;
&lt;br /&gt;
Disconnect the usb cable, powercylce the unit - LEDs should flash again.&lt;br /&gt;
&lt;br /&gt;
=== Installing the UART tunnel for direct access to the GPS ===&lt;br /&gt;
&lt;br /&gt;
Type the following command from your paparazzi folder, substituting the name of your airframe and paying attention to case sensitivity:&lt;br /&gt;
 make AIRCRAFT=''myplane'' tunnel.upload&lt;br /&gt;
Connect the usb cable and power on the autopilot to receive the code.&lt;br /&gt;
&lt;br /&gt;
* This completely replaces the normal autopilot code (leaving the USB bootloader intact) with a simple serial-to-serial pass-thru that essentially connects the GPS serial port directly to the modem serial port.  You will have no LED indicators or other autopilot functionality with this code.  Use this only to gain direct access to the GPS for testing/configuration with [[GPS#GPS_configuration_using_U-Center|U-Center]] or other software.&lt;br /&gt;
* This can be done without the USB bootloader by appending ''FLASH_MODE=ISP'' to the command line (specifing ISP serial loading).  This will require a serial cable connection (i.e. FTDI USB-to-TTL).  Installing tunnel code with the ISP method will erase any USB bootloader code.&lt;br /&gt;
&lt;br /&gt;
=== Installing the USB Bootloader ===&lt;br /&gt;
&lt;br /&gt;
The USB bootloader should only need to be installed once when the board is first built.  It is loaded through the serial interface UART0 (Serial1) by holding pin P0.14 low during power-up.  If you were supplied with a Tiny Autopilot it may have already had the USB bootloader installed, please check with your supplier.&lt;br /&gt;
&lt;br /&gt;
You will need to convert the PC's RS232 Serial with voltage levels of +/-13V to 3.3V (or 5V) TTL in order to communicate directly with the device.  This can be accomplished in multiple ways.  The easiest and most convenient method is to purchase or build a USB -&amp;gt; Serial 3.3V adapter similar to this one [http://www.ftdichip.com/Products/EvaluationKits/TTL-232R-3V3.htm TTL-232R-3V3]&lt;br /&gt;
Here's a few other examples:&lt;br /&gt;
[http://www.sparkfun.com/commerce/product_info.php?products_id=199]&lt;br /&gt;
[http://www.sparkfun.com/commerce/product_info.php?products_id=718]&lt;br /&gt;
[http://www.pololu.com/products/pololu/0391/]&lt;br /&gt;
[http://www.hvwtech.com/products_view.asp?CatID=166&amp;amp;SubCatID=183&amp;amp;SubSubCatID=0&amp;amp;ProductID=409]&lt;br /&gt;
[http://shop.halfbase.com/product_info.php/products_id/54]&lt;br /&gt;
Users are strongly urged to use FTDI usb-serial converters as they are well supported by default in the linux kernel and since the Paparazzi ground station software is configured to look for modems on FTDI ports by default, the converter can likely serve as a modem interface after it's use in programming.&lt;br /&gt;
&lt;br /&gt;
Make up a wiring harness similar to the following.  You may vary the details however this is a working solution:&lt;br /&gt;
&lt;br /&gt;
TINY RXD0 &amp;lt;-- PC SERIAL TX (5V or 3.3V)&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY TXD0 --&amp;gt; PC SERIAL RX (5V or 3.3V)&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY RESET --&amp;gt; ''optional'' wired to ground through a pushbutton so you can reset&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY P0.14 (SERIAL1-5) --&amp;gt; attach to ground, or wire through a pushbutton to ground&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY GND --&amp;gt; PC SERIAL ADAPTER GND&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once this wiring is ready you will be ready to send the USB Bootloader to the Tiny from the PC.&lt;br /&gt;
&lt;br /&gt;
To prepare the Tiny to accept programming over its serial port you must have pin P0.14 LOW for at least 3mS while it is powering up or resetting.  While it is still powered up it is ready to accept code over serial.  Proceed now to instructions to load it via software.&lt;br /&gt;
&lt;br /&gt;
'''In Linux'''&lt;br /&gt;
&lt;br /&gt;
From your paparazzi3 folder in linux, type:&lt;br /&gt;
&lt;br /&gt;
 make upload_bl PROC=GENERIC&lt;br /&gt;
&lt;br /&gt;
This will begin compiling your USB Bootloader and then attempt to transfer it to the Autopilot. This will also assume you are using a USB -&amp;gt; Serial adapter for the connection.  It uses /dev/ttyUSB0 by default. If your adapter is mapped to a different tty, you will need to modify the Makefile accordingly.&lt;br /&gt;
&lt;br /&gt;
'''In Windows'''&lt;br /&gt;
&lt;br /&gt;
If for some reason you need to program your Tiny's USB Bootloader in windows grab a copy of [http://www.standardics.nxp.com/support/documents/microcontrollers/zip/flash.isp.utility.lpc2000.zip LPC2000 Flash Utility V2.2.3] or later.  You will then prepare the Tiny and boot it into the ISP bootloader as mentioned above but program it with this utility.  You will need to copy your compiled bl.hex file from Linux of course.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
As a rapidly evolving open-source project, on occasion your software may fail to compile after a [[Installation#Software_Updates|CVS Update]].  This is most likely due to a new or changed variable name that is now required in your airframe, flight plan, etc.  Since the user-configured files are not updated automatically you may need to view the most recently changed sample airframe or flight plan files to find the required changes.&amp;lt;br&amp;gt;&lt;br /&gt;
See the [[Software_Troubleshooting|Software Troubleshooting]] page for help with common compiliation errors.&lt;/div&gt;</summary>
		<author><name>Dirkx</name></author>
	</entry>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=Compiling&amp;diff=3992</id>
		<title>Compiling</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=Compiling&amp;diff=3992"/>
		<updated>2008-08-25T13:36:04Z</updated>

		<summary type="html">&lt;p&gt;Dirkx: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Flight plans, tuning and configuration settings are compiled into a single binary image and transferred to the microcontroler flash rom through USB.  Most tuning and flight plan parameters can be changed in-flight but after each power cycle, the autopilot reverts to the original settings.  Permanent changes must be made in the source files, compiled, and uploaded to the autopilot.&lt;br /&gt;
&lt;br /&gt;
== Configuring Non-Root users to access USB ==&lt;br /&gt;
&lt;br /&gt;
Non-Root users typically do not have access to hardware I/O with USB ports included.  The user you are using to program the autpilots must be a member of the ''plugdev'' group. The original user login given during the Linux install process usually is a member. If not, add yourself to this group with the following command:&lt;br /&gt;
&lt;br /&gt;
  sudo adduser &amp;lt;your login&amp;gt; plugdev&lt;br /&gt;
&lt;br /&gt;
It will be effective only on your next login or after the command&lt;br /&gt;
&lt;br /&gt;
   newgrp plugdev&lt;br /&gt;
&lt;br /&gt;
== USB flashing ==&lt;br /&gt;
&lt;br /&gt;
The Paparazzi device rules are required for USB flashing.  Copy them into place if you haven't already done so:&lt;br /&gt;
 sudo cp $PAPARAZZI_HOME/conf/system/udev/rules/10-paparazzi.rules /etc/udev/rules.d/&lt;br /&gt;
&lt;br /&gt;
If you are using Ubuntu, the Braille TTY driver interferes with FTDI USB Serial adapters and should be removed:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get remove brltty&lt;br /&gt;
&lt;br /&gt;
[[Image:Tiny_test_wiring.jpg|thumb|Example wiring for programming and telemetry]]&lt;br /&gt;
If the autopilot senses a connected USB cable during power-on, it will wait to receive a firmware image rather than booting normally.  The firmware can be compiled and flashed by several means, '''the simplest way using the [[Paparazzi_Center|Paparazzi Center]]''', the traditionnal way being:&lt;br /&gt;
 make AIRCRAFT=''myplane'' clean_ac ap.upload&lt;br /&gt;
 (where ''myplane'' is the name of your airframe as defined in &amp;lt;tt&amp;gt;conf/conf.xml&amp;lt;/tt&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
This command erases any compiled autopilot code from the PC, recompiles everything from scratch, and then sends it to the autopilot.  &lt;br /&gt;
Variations include:&lt;br /&gt;
* make AIRCRAFT=''myplane'' sim&lt;br /&gt;
*: Compiles your code for use in the simulator - note that &amp;quot;clean_ac&amp;quot; will remove this code, so the simulator code must be rebuilt each time a clean has been performed.&lt;br /&gt;
* make AIRCRAFT=''myplane'' fbw.upload&lt;br /&gt;
*: This is needed when configuring the separate &amp;quot;fly by wire&amp;quot; MCU on the [[Classix]] autopilot.&lt;br /&gt;
* make AIRCRAFT=''myplane'' ap&lt;br /&gt;
*: This will simply build the portions of autopilot code that have changed since the last compile without attempting to flash.  Note: this method may not detect certain changes (i.e. changes to the airframe makefile section or CVS updated code).&lt;br /&gt;
* make AIRCRAFT=''myplane'' ap.upload FLASH_MODE=IAP&lt;br /&gt;
*: Specifies USB flashing.  This should be specified at the top of the makefile section of your airframe file but can be overridden here.  Use FLASH_MODE=IAS for serial flashing.&lt;br /&gt;
&lt;br /&gt;
=== Verify that above downloads work ===&lt;br /&gt;
&lt;br /&gt;
==== Step 1 ====&lt;br /&gt;
&lt;br /&gt;
Connect the USB cable to the USB port (U23, corner of the board). You then typically should see feedback like:&lt;br /&gt;
&lt;br /&gt;
   ~/paparazzi3$ dmesg | tail -5&lt;br /&gt;
   [79212.484187] pl2303 1-2.3:1.0: device disconnected&lt;br /&gt;
   [82312.463077] usb 5-1: new high speed USB device using ehci_hcd and address 23&lt;br /&gt;
   [82327.555770] usb 5-1: device descriptor read/64, error -110&lt;br /&gt;
   [82342.752307] usb 5-1: device descriptor read/64, error -110&lt;br /&gt;
   [82342.968031] usb 5-1: new high speed USB device using ehci_hcd and address 24&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
which confirms that your device is powered up and visible. If not - check your power and connections. Failing that - prepare to download the USB Bootloader through the 'Download' connector. &lt;br /&gt;
&lt;br /&gt;
Above output is for the Tiny2.1.&lt;br /&gt;
&lt;br /&gt;
==== Step 2 ====&lt;br /&gt;
&lt;br /&gt;
Secondly - download some firmare (here we're using a modified [http://paparazzi.enac.fr/wiki/index.php/Using_demo_programs_in_sw/airborne demo2] - which flashes the LEDs with a Tiny2.1 board):&lt;br /&gt;
&lt;br /&gt;
     make[1]: Leaving directory `/usr/share/paparazzi'&lt;br /&gt;
    cd sw/airborne; make PAPARAZZI_SRC=/usr/share/paparazzi PAPARAZZI_HOME=/home/dirkx/paparazzi3 TARGET=demo2 all&lt;br /&gt;
    make[1]: Entering directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
    /home/dirkx/paparazzi3/var/demo/demo2/demo2.elf  :&lt;br /&gt;
    section    size         addr&lt;br /&gt;
    .text       956        16384&lt;br /&gt;
    .ctors        0        17340&lt;br /&gt;
    .dtors        0        17340&lt;br /&gt;
    .data         0   1073741824&lt;br /&gt;
    .bss         12   1073741824&lt;br /&gt;
    .stack     4096   1073742080&lt;br /&gt;
    .comment     54            0&lt;br /&gt;
    Total      5118&lt;br /&gt;
    make[1]: Leaving directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
    cd sw/airborne; make PAPARAZZI_SRC=/usr/share/paparazzi PAPARAZZI_HOME=/home/dirkx/paparazzi3 TARGET=demo2 upload&lt;br /&gt;
    make[1]: Entering directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
    /usr/share/paparazzi/sw/ground_segment/lpc21iap/lpc21iap  /home/dirkx/paparazzi3/var/demo/demo2/demo2.elf&lt;br /&gt;
    .&lt;br /&gt;
    Found USB device&lt;br /&gt;
    BootROM code: 2.12&lt;br /&gt;
    Part ID: 0x0402FF25 (LPC2148, 512k Flash, 32k+8k RAM)&lt;br /&gt;
    BootLoader version: 1.3&lt;br /&gt;
    #&lt;br /&gt;
    Starting software at 0x00004000&lt;br /&gt;
    make[1]: Leaving directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
    make: Leaving directory `/usr/share/paparazzi'&lt;br /&gt;
    ~/paparazzi3$&lt;br /&gt;
&lt;br /&gt;
which confirms that your device has the bootloader functioning. The important bit of output is:&lt;br /&gt;
&lt;br /&gt;
    Found USB device&lt;br /&gt;
    BootROM code: 2.12&lt;br /&gt;
    Part ID: 0x0402FF25 (LPC2148, 512k Flash, 32k+8k RAM)&lt;br /&gt;
    BootLoader version: 1.3&lt;br /&gt;
    #&lt;br /&gt;
&lt;br /&gt;
==== Step 3 ====&lt;br /&gt;
&lt;br /&gt;
Observe the LEDs flashing.&lt;br /&gt;
&lt;br /&gt;
==== Step 4 ====&lt;br /&gt;
&lt;br /&gt;
Disconnect the usb cable, powercylce the unit - LEDs should flash again.&lt;br /&gt;
&lt;br /&gt;
=== Installing the UART tunnel for direct access to the GPS ===&lt;br /&gt;
&lt;br /&gt;
Type the following command from your paparazzi folder, substituting the name of your airframe and paying attention to case sensitivity:&lt;br /&gt;
 make AIRCRAFT=''myplane'' tunnel.upload&lt;br /&gt;
Connect the usb cable and power on the autopilot to receive the code.&lt;br /&gt;
&lt;br /&gt;
* This completely replaces the normal autopilot code (leaving the USB bootloader intact) with a simple serial-to-serial pass-thru that essentially connects the GPS serial port directly to the modem serial port.  You will have no LED indicators or other autopilot functionality with this code.  Use this only to gain direct access to the GPS for testing/configuration with [[GPS#GPS_configuration_using_U-Center|U-Center]] or other software.&lt;br /&gt;
* This can be done without the USB bootloader by appending ''FLASH_MODE=ISP'' to the command line (specifing ISP serial loading).  This will require a serial cable connection (i.e. FTDI USB-to-TTL).  Installing tunnel code with the ISP method will erase any USB bootloader code.&lt;br /&gt;
&lt;br /&gt;
=== Installing the USB Bootloader ===&lt;br /&gt;
&lt;br /&gt;
The USB bootloader should only need to be installed once when the board is first built.  It is loaded through the serial interface UART0 (Serial1) by holding pin P0.14 low during power-up.  If you were supplied with a Tiny Autopilot it may have already had the USB bootloader installed, please check with your supplier.&lt;br /&gt;
&lt;br /&gt;
You will need to convert the PC's RS232 Serial with voltage levels of +/-13V to 3.3V (or 5V) TTL in order to communicate directly with the device.  This can be accomplished in multiple ways.  The easiest and most convenient method is to purchase or build a USB -&amp;gt; Serial 3.3V adapter similar to this one [http://www.ftdichip.com/Products/EvaluationKits/TTL-232R-3V3.htm TTL-232R-3V3]&lt;br /&gt;
Here's a few other examples:&lt;br /&gt;
[http://www.sparkfun.com/commerce/product_info.php?products_id=199]&lt;br /&gt;
[http://www.sparkfun.com/commerce/product_info.php?products_id=718]&lt;br /&gt;
[http://www.pololu.com/products/pololu/0391/]&lt;br /&gt;
[http://www.hvwtech.com/products_view.asp?CatID=166&amp;amp;SubCatID=183&amp;amp;SubSubCatID=0&amp;amp;ProductID=409]&lt;br /&gt;
[http://shop.halfbase.com/product_info.php/products_id/54]&lt;br /&gt;
Users are strongly urged to use FTDI usb-serial converters as they are well supported by default in the linux kernel and since the Paparazzi ground station software is configured to look for modems on FTDI ports by default, the converter can likely serve as a modem interface after it's use in programming.&lt;br /&gt;
&lt;br /&gt;
Make up a wiring harness similar to the following.  You may vary the details however this is a working solution:&lt;br /&gt;
&lt;br /&gt;
TINY RXD0 &amp;lt;-- PC SERIAL TX (5V or 3.3V)&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY TXD0 --&amp;gt; PC SERIAL RX (5V or 3.3V)&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY RESET --&amp;gt; ''optional'' wired to ground through a pushbutton so you can reset&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY P0.14 (SERIAL1-5) --&amp;gt; attach to ground, or wire through a pushbutton to ground&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY GND --&amp;gt; PC SERIAL ADAPTER GND&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once this wiring is ready you will be ready to send the USB Bootloader to the Tiny from the PC.&lt;br /&gt;
&lt;br /&gt;
To prepare the Tiny to accept programming over its serial port you must have pin P0.14 LOW for at least 3mS while it is powering up or resetting.  While it is still powered up it is ready to accept code over serial.  Proceed now to instructions to load it via software.&lt;br /&gt;
&lt;br /&gt;
'''In Linux'''&lt;br /&gt;
&lt;br /&gt;
From your paparazzi3 folder in linux, type:&lt;br /&gt;
&lt;br /&gt;
 make upload_bl PROC=GENERIC&lt;br /&gt;
&lt;br /&gt;
This will begin compiling your USB Bootloader and then attempt to transfer it to the Autopilot. This will also assume you are using a USB -&amp;gt; Serial adapter for the connection.  It uses /dev/ttyUSB0 by default. If your adapter is mapped to a different tty, you will need to modify the Makefile accordingly.&lt;br /&gt;
&lt;br /&gt;
'''In Windows'''&lt;br /&gt;
&lt;br /&gt;
If for some reason you need to program your Tiny's USB Bootloader in windows grab a copy of [http://www.standardics.nxp.com/support/documents/microcontrollers/zip/flash.isp.utility.lpc2000.zip LPC2000 Flash Utility V2.2.3] or later.  You will then prepare the Tiny and boot it into the ISP bootloader as mentioned above but program it with this utility.  You will need to copy your compiled bl.hex file from Linux of course.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
As a rapidly evolving open-source project, on occasion your software may fail to compile after a [[Installation#Software_Updates|CVS Update]].  This is most likely due to a new or changed variable name that is now required in your airframe, flight plan, etc.  Since the user-configured files are not updated automatically you may need to view the most recently changed sample airframe or flight plan files to find the required changes.&amp;lt;br&amp;gt;&lt;br /&gt;
See the [[Software_Troubleshooting|Software Troubleshooting]] page for help with common compiliation errors.&lt;/div&gt;</summary>
		<author><name>Dirkx</name></author>
	</entry>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=File:Tiny-demo2.txt&amp;diff=3990</id>
		<title>File:Tiny-demo2.txt</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=File:Tiny-demo2.txt&amp;diff=3990"/>
		<updated>2008-08-25T13:32:47Z</updated>

		<summary type="html">&lt;p&gt;Dirkx: Patch to make demo2 work with tiny 2.1 board.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Patch to make demo2 work with tiny 2.1 board.&lt;/div&gt;</summary>
		<author><name>Dirkx</name></author>
	</entry>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=Compiling&amp;diff=3986</id>
		<title>Compiling</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=Compiling&amp;diff=3986"/>
		<updated>2008-08-25T13:23:35Z</updated>

		<summary type="html">&lt;p&gt;Dirkx: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Flight plans, tuning and configuration settings are compiled into a single binary image and transferred to the microcontroler flash rom through USB.  Most tuning and flight plan parameters can be changed in-flight but after each power cycle, the autopilot reverts to the original settings.  Permanent changes must be made in the source files, compiled, and uploaded to the autopilot.&lt;br /&gt;
&lt;br /&gt;
== Configuring Non-Root users to access USB ==&lt;br /&gt;
&lt;br /&gt;
Non-Root users typically do not have access to hardware I/O with USB ports included.  The user you are using to program the autpilots must be a member of the ''plugdev'' group. The original user login given during the Linux install process usually is a member. If not, add yourself to this group with the following command:&lt;br /&gt;
&lt;br /&gt;
  sudo adduser &amp;lt;your login&amp;gt; plugdev&lt;br /&gt;
&lt;br /&gt;
It will be effective only on your next login or after the command&lt;br /&gt;
&lt;br /&gt;
   newgrp plugdev&lt;br /&gt;
&lt;br /&gt;
== USB flashing ==&lt;br /&gt;
&lt;br /&gt;
The Paparazzi device rules are required for USB flashing.  Copy them into place if you haven't already done so:&lt;br /&gt;
 sudo cp $PAPARAZZI_HOME/conf/system/udev/rules/10-paparazzi.rules /etc/udev/rules.d/&lt;br /&gt;
&lt;br /&gt;
If you are using Ubuntu, the Braille TTY driver interferes with FTDI USB Serial adapters and should be removed:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get remove brltty&lt;br /&gt;
&lt;br /&gt;
[[Image:Tiny_test_wiring.jpg|thumb|Example wiring for programming and telemetry]]&lt;br /&gt;
If the autopilot senses a connected USB cable during power-on, it will wait to receive a firmware image rather than booting normally.  The firmware can be compiled and flashed by several means, '''the simplest way using the [[Paparazzi_Center|Paparazzi Center]]''', the traditionnal way being:&lt;br /&gt;
 make AIRCRAFT=''myplane'' clean_ac ap.upload&lt;br /&gt;
 (where ''myplane'' is the name of your airframe as defined in &amp;lt;tt&amp;gt;conf/conf.xml&amp;lt;/tt&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
This command erases any compiled autopilot code from the PC, recompiles everything from scratch, and then sends it to the autopilot.  &lt;br /&gt;
Variations include:&lt;br /&gt;
* make AIRCRAFT=''myplane'' sim&lt;br /&gt;
*: Compiles your code for use in the simulator - note that &amp;quot;clean_ac&amp;quot; will remove this code, so the simulator code must be rebuilt each time a clean has been performed.&lt;br /&gt;
* make AIRCRAFT=''myplane'' fbw.upload&lt;br /&gt;
*: This is needed when configuring the separate &amp;quot;fly by wire&amp;quot; MCU on the [[Classix]] autopilot.&lt;br /&gt;
* make AIRCRAFT=''myplane'' ap&lt;br /&gt;
*: This will simply build the portions of autopilot code that have changed since the last compile without attempting to flash.  Note: this method may not detect certain changes (i.e. changes to the airframe makefile section or CVS updated code).&lt;br /&gt;
* make AIRCRAFT=''myplane'' ap.upload FLASH_MODE=IAP&lt;br /&gt;
*: Specifies USB flashing.  This should be specified at the top of the makefile section of your airframe file but can be overridden here.  Use FLASH_MODE=IAS for serial flashing.&lt;br /&gt;
&lt;br /&gt;
=== Verify that above downloads work ===&lt;br /&gt;
&lt;br /&gt;
==== Step 1 ====&lt;br /&gt;
&lt;br /&gt;
Connect the USB cable to the USB port (U23, corner of the board). You then typically should see feedback like:&lt;br /&gt;
&lt;br /&gt;
~/paparazzi3$ dmesg | tail -5&lt;br /&gt;
[79212.484187] pl2303 1-2.3:1.0: device disconnected&lt;br /&gt;
[82312.463077] usb 5-1: new high speed USB device using ehci_hcd and address 23&lt;br /&gt;
[82327.555770] usb 5-1: device descriptor read/64, error -110&lt;br /&gt;
[82342.752307] usb 5-1: device descriptor read/64, error -110&lt;br /&gt;
[82342.968031] usb 5-1: new high speed USB device using ehci_hcd and address 24&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which confirms that your device is powered up and visible. If not - check your power and connections. Failing that - prepare to download the USB Bootloader through the 'Download' connector. &lt;br /&gt;
&lt;br /&gt;
Above output is for the Tiny2.1.&lt;br /&gt;
&lt;br /&gt;
==== Step 2 ====&lt;br /&gt;
&lt;br /&gt;
Secondly - download some firmare (here we're using a modified [http://paparazzi.enac.fr/wiki/index.php/Using_demo_programs_in_sw/airborne demo2] - which flashes the LEDs with a Tiny2.1 board):&lt;br /&gt;
&lt;br /&gt;
     make[1]: Leaving directory `/usr/share/paparazzi'&lt;br /&gt;
    cd sw/airborne; make PAPARAZZI_SRC=/usr/share/paparazzi PAPARAZZI_HOME=/home/dirkx/paparazzi3 TARGET=demo2 all&lt;br /&gt;
    make[1]: Entering directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
    /home/dirkx/paparazzi3/var/demo/demo2/demo2.elf  :&lt;br /&gt;
    section    size         addr&lt;br /&gt;
    .text       956        16384&lt;br /&gt;
    .ctors        0        17340&lt;br /&gt;
    .dtors        0        17340&lt;br /&gt;
    .data         0   1073741824&lt;br /&gt;
    .bss         12   1073741824&lt;br /&gt;
    .stack     4096   1073742080&lt;br /&gt;
    .comment     54            0&lt;br /&gt;
    Total      5118&lt;br /&gt;
    make[1]: Leaving directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
    cd sw/airborne; make PAPARAZZI_SRC=/usr/share/paparazzi PAPARAZZI_HOME=/home/dirkx/paparazzi3 TARGET=demo2 upload&lt;br /&gt;
    make[1]: Entering directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
    /usr/share/paparazzi/sw/ground_segment/lpc21iap/lpc21iap  /home/dirkx/paparazzi3/var/demo/demo2/demo2.elf&lt;br /&gt;
    .&lt;br /&gt;
    Found USB device&lt;br /&gt;
    BootROM code: 2.12&lt;br /&gt;
    Part ID: 0x0402FF25 (LPC2148, 512k Flash, 32k+8k RAM)&lt;br /&gt;
    BootLoader version: 1.3&lt;br /&gt;
    #&lt;br /&gt;
    Starting software at 0x00004000&lt;br /&gt;
    make[1]: Leaving directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
    make: Leaving directory `/usr/share/paparazzi'&lt;br /&gt;
    ~/paparazzi3$&lt;br /&gt;
&lt;br /&gt;
which confirms that your device has the bootloader functioning. The important bit of output is:&lt;br /&gt;
&lt;br /&gt;
    Found USB device&lt;br /&gt;
    BootROM code: 2.12&lt;br /&gt;
    Part ID: 0x0402FF25 (LPC2148, 512k Flash, 32k+8k RAM)&lt;br /&gt;
    BootLoader version: 1.3&lt;br /&gt;
    #&lt;br /&gt;
&lt;br /&gt;
==== Step 3 ====&lt;br /&gt;
&lt;br /&gt;
Observe the LEDs flashing.&lt;br /&gt;
&lt;br /&gt;
==== Step 4 ====&lt;br /&gt;
&lt;br /&gt;
Disconnect the usb cable, powercylce the unit - LEDs should flash again.&lt;br /&gt;
&lt;br /&gt;
=== Installing the UART tunnel for direct access to the GPS ===&lt;br /&gt;
&lt;br /&gt;
Type the following command from your paparazzi folder, substituting the name of your airframe and paying attention to case sensitivity:&lt;br /&gt;
 make AIRCRAFT=''myplane'' tunnel.upload&lt;br /&gt;
Connect the usb cable and power on the autopilot to receive the code.&lt;br /&gt;
&lt;br /&gt;
* This completely replaces the normal autopilot code (leaving the USB bootloader intact) with a simple serial-to-serial pass-thru that essentially connects the GPS serial port directly to the modem serial port.  You will have no LED indicators or other autopilot functionality with this code.  Use this only to gain direct access to the GPS for testing/configuration with [[GPS#GPS_configuration_using_U-Center|U-Center]] or other software.&lt;br /&gt;
* This can be done without the USB bootloader by appending ''FLASH_MODE=ISP'' to the command line (specifing ISP serial loading).  This will require a serial cable connection (i.e. FTDI USB-to-TTL).  Installing tunnel code with the ISP method will erase any USB bootloader code.&lt;br /&gt;
&lt;br /&gt;
=== Installing the USB Bootloader ===&lt;br /&gt;
&lt;br /&gt;
The USB bootloader should only need to be installed once when the board is first built.  It is loaded through the serial interface UART0 (Serial1) by holding pin P0.14 low during power-up.  If you were supplied with a Tiny Autopilot it may have already had the USB bootloader installed, please check with your supplier.&lt;br /&gt;
&lt;br /&gt;
You will need to convert the PC's RS232 Serial with voltage levels of +/-13V to 3.3V (or 5V) TTL in order to communicate directly with the device.  This can be accomplished in multiple ways.  The easiest and most convenient method is to purchase or build a USB -&amp;gt; Serial 3.3V adapter similar to this one [http://www.ftdichip.com/Products/EvaluationKits/TTL-232R-3V3.htm TTL-232R-3V3]&lt;br /&gt;
Here's a few other examples:&lt;br /&gt;
[http://www.sparkfun.com/commerce/product_info.php?products_id=199]&lt;br /&gt;
[http://www.sparkfun.com/commerce/product_info.php?products_id=718]&lt;br /&gt;
[http://www.pololu.com/products/pololu/0391/]&lt;br /&gt;
[http://www.hvwtech.com/products_view.asp?CatID=166&amp;amp;SubCatID=183&amp;amp;SubSubCatID=0&amp;amp;ProductID=409]&lt;br /&gt;
[http://shop.halfbase.com/product_info.php/products_id/54]&lt;br /&gt;
Users are strongly urged to use FTDI usb-serial converters as they are well supported by default in the linux kernel and since the Paparazzi ground station software is configured to look for modems on FTDI ports by default, the converter can likely serve as a modem interface after it's use in programming.&lt;br /&gt;
&lt;br /&gt;
Make up a wiring harness similar to the following.  You may vary the details however this is a working solution:&lt;br /&gt;
&lt;br /&gt;
TINY RXD0 &amp;lt;-- PC SERIAL TX (5V or 3.3V)&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY TXD0 --&amp;gt; PC SERIAL RX (5V or 3.3V)&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY RESET --&amp;gt; ''optional'' wired to ground through a pushbutton so you can reset&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY P0.14 (SERIAL1-5) --&amp;gt; attach to ground, or wire through a pushbutton to ground&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY GND --&amp;gt; PC SERIAL ADAPTER GND&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once this wiring is ready you will be ready to send the USB Bootloader to the Tiny from the PC.&lt;br /&gt;
&lt;br /&gt;
To prepare the Tiny to accept programming over its serial port you must have pin P0.14 LOW for at least 3mS while it is powering up or resetting.  While it is still powered up it is ready to accept code over serial.  Proceed now to instructions to load it via software.&lt;br /&gt;
&lt;br /&gt;
'''In Linux'''&lt;br /&gt;
&lt;br /&gt;
From your paparazzi3 folder in linux, type:&lt;br /&gt;
&lt;br /&gt;
 make upload_bl PROC=GENERIC&lt;br /&gt;
&lt;br /&gt;
This will begin compiling your USB Bootloader and then attempt to transfer it to the Autopilot. This will also assume you are using a USB -&amp;gt; Serial adapter for the connection.  It uses /dev/ttyUSB0 by default. If your adapter is mapped to a different tty, you will need to modify the Makefile accordingly.&lt;br /&gt;
&lt;br /&gt;
'''In Windows'''&lt;br /&gt;
&lt;br /&gt;
If for some reason you need to program your Tiny's USB Bootloader in windows grab a copy of [http://www.standardics.nxp.com/support/documents/microcontrollers/zip/flash.isp.utility.lpc2000.zip LPC2000 Flash Utility V2.2.3] or later.  You will then prepare the Tiny and boot it into the ISP bootloader as mentioned above but program it with this utility.  You will need to copy your compiled bl.hex file from Linux of course.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
As a rapidly evolving open-source project, on occasion your software may fail to compile after a [[Installation#Software_Updates|CVS Update]].  This is most likely due to a new or changed variable name that is now required in your airframe, flight plan, etc.  Since the user-configured files are not updated automatically you may need to view the most recently changed sample airframe or flight plan files to find the required changes.&amp;lt;br&amp;gt;&lt;br /&gt;
See the [[Software_Troubleshooting|Software Troubleshooting]] page for help with common compiliation errors.&lt;/div&gt;</summary>
		<author><name>Dirkx</name></author>
	</entry>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=Compiling&amp;diff=3985</id>
		<title>Compiling</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=Compiling&amp;diff=3985"/>
		<updated>2008-08-25T13:21:33Z</updated>

		<summary type="html">&lt;p&gt;Dirkx: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Flight plans, tuning and configuration settings are compiled into a single binary image and transferred to the microcontroler flash rom through USB.  Most tuning and flight plan parameters can be changed in-flight but after each power cycle, the autopilot reverts to the original settings.  Permanent changes must be made in the source files, compiled, and uploaded to the autopilot.&lt;br /&gt;
&lt;br /&gt;
== Configuring Non-Root users to access USB ==&lt;br /&gt;
&lt;br /&gt;
Non-Root users typically do not have access to hardware I/O with USB ports included.  The user you are using to program the autpilots must be a member of the ''plugdev'' group. The original user login given during the Linux install process usually is a member. If not, add yourself to this group with the following command:&lt;br /&gt;
&lt;br /&gt;
  sudo adduser &amp;lt;your login&amp;gt; plugdev&lt;br /&gt;
&lt;br /&gt;
It will be effective only on your next login or after the command&lt;br /&gt;
&lt;br /&gt;
   newgrp plugdev&lt;br /&gt;
&lt;br /&gt;
== USB flashing ==&lt;br /&gt;
&lt;br /&gt;
The Paparazzi device rules are required for USB flashing.  Copy them into place if you haven't already done so:&lt;br /&gt;
 sudo cp $PAPARAZZI_HOME/conf/system/udev/rules/10-paparazzi.rules /etc/udev/rules.d/&lt;br /&gt;
&lt;br /&gt;
If you are using Ubuntu, the Braille TTY driver interferes with FTDI USB Serial adapters and should be removed:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get remove brltty&lt;br /&gt;
&lt;br /&gt;
[[Image:Tiny_test_wiring.jpg|thumb|Example wiring for programming and telemetry]]&lt;br /&gt;
If the autopilot senses a connected USB cable during power-on, it will wait to receive a firmware image rather than booting normally.  The firmware can be compiled and flashed by several means, '''the simplest way using the [[Paparazzi_Center|Paparazzi Center]]''', the traditionnal way being:&lt;br /&gt;
 make AIRCRAFT=''myplane'' clean_ac ap.upload&lt;br /&gt;
 (where ''myplane'' is the name of your airframe as defined in &amp;lt;tt&amp;gt;conf/conf.xml&amp;lt;/tt&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
This command erases any compiled autopilot code from the PC, recompiles everything from scratch, and then sends it to the autopilot.  &lt;br /&gt;
Variations include:&lt;br /&gt;
* make AIRCRAFT=''myplane'' sim&lt;br /&gt;
*: Compiles your code for use in the simulator - note that &amp;quot;clean_ac&amp;quot; will remove this code, so the simulator code must be rebuilt each time a clean has been performed.&lt;br /&gt;
* make AIRCRAFT=''myplane'' fbw.upload&lt;br /&gt;
*: This is needed when configuring the separate &amp;quot;fly by wire&amp;quot; MCU on the [[Classix]] autopilot.&lt;br /&gt;
* make AIRCRAFT=''myplane'' ap&lt;br /&gt;
*: This will simply build the portions of autopilot code that have changed since the last compile without attempting to flash.  Note: this method may not detect certain changes (i.e. changes to the airframe makefile section or CVS updated code).&lt;br /&gt;
* make AIRCRAFT=''myplane'' ap.upload FLASH_MODE=IAP&lt;br /&gt;
*: Specifies USB flashing.  This should be specified at the top of the makefile section of your airframe file but can be overridden here.  Use FLASH_MODE=IAS for serial flashing.&lt;br /&gt;
&lt;br /&gt;
=== Verify that above downloads work ===&lt;br /&gt;
&lt;br /&gt;
1) connect the USB cable to the USB port (U23, corner of the board). You then typically should see feedback like:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
~/paparazzi3$ dmesg | tail -5&lt;br /&gt;
[79212.484187] pl2303 1-2.3:1.0: device disconnected&lt;br /&gt;
[82312.463077] usb 5-1: new high speed USB device using ehci_hcd and address 23&lt;br /&gt;
[82327.555770] usb 5-1: device descriptor read/64, error -110&lt;br /&gt;
[82342.752307] usb 5-1: device descriptor read/64, error -110&lt;br /&gt;
[82342.968031] usb 5-1: new high speed USB device using ehci_hcd and address 24&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
which confirms that your device is powered up and visible.&lt;br /&gt;
&lt;br /&gt;
Secondly - download some firmare (here we're using a modified [http://paparazzi.enac.fr/wiki/index.php/Using_demo_programs_in_sw/airborne demo2] - which flashes the LEDs):&lt;br /&gt;
&lt;br /&gt;
     make[1]: Leaving directory `/usr/share/paparazzi'&lt;br /&gt;
    cd sw/airborne; make PAPARAZZI_SRC=/usr/share/paparazzi PAPARAZZI_HOME=/home/dirkx/paparazzi3 TARGET=demo2 all&lt;br /&gt;
    make[1]: Entering directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
    /home/dirkx/paparazzi3/var/demo/demo2/demo2.elf  :&lt;br /&gt;
    section    size         addr&lt;br /&gt;
    .text       956        16384&lt;br /&gt;
    .ctors        0        17340&lt;br /&gt;
    .dtors        0        17340&lt;br /&gt;
    .data         0   1073741824&lt;br /&gt;
    .bss         12   1073741824&lt;br /&gt;
    .stack     4096   1073742080&lt;br /&gt;
    .comment     54            0&lt;br /&gt;
    Total      5118&lt;br /&gt;
    make[1]: Leaving directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
    cd sw/airborne; make PAPARAZZI_SRC=/usr/share/paparazzi PAPARAZZI_HOME=/home/dirkx/paparazzi3 TARGET=demo2 upload&lt;br /&gt;
    make[1]: Entering directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
    /usr/share/paparazzi/sw/ground_segment/lpc21iap/lpc21iap  /home/dirkx/paparazzi3/var/demo/demo2/demo2.elf&lt;br /&gt;
    .&lt;br /&gt;
    Found USB device&lt;br /&gt;
    BootROM code: 2.12&lt;br /&gt;
    Part ID: 0x0402FF25 (LPC2148, 512k Flash, 32k+8k RAM)&lt;br /&gt;
    BootLoader version: 1.3&lt;br /&gt;
    #&lt;br /&gt;
    Starting software at 0x00004000&lt;br /&gt;
    make[1]: Leaving directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
    make: Leaving directory `/usr/share/paparazzi'&lt;br /&gt;
    ~/paparazzi3$&lt;br /&gt;
&lt;br /&gt;
which confirms that your device has the bootloader functioning. The important bit of output is:&lt;br /&gt;
&lt;br /&gt;
    Found USB device&lt;br /&gt;
    BootROM code: 2.12&lt;br /&gt;
    Part ID: 0x0402FF25 (LPC2148, 512k Flash, 32k+8k RAM)&lt;br /&gt;
    BootLoader version: 1.3&lt;br /&gt;
    #&lt;br /&gt;
&lt;br /&gt;
3) Observe the LEDs flashing.&lt;br /&gt;
&lt;br /&gt;
4) Disconnect the usb cable, powercylce the unit - LEDs should flash again.&lt;br /&gt;
&lt;br /&gt;
=== Installing the UART tunnel for direct access to the GPS ===&lt;br /&gt;
Type the following command from your paparazzi folder, substituting the name of your airframe and paying attention to case sensitivity:&lt;br /&gt;
 make AIRCRAFT=''myplane'' tunnel.upload&lt;br /&gt;
Connect the usb cable and power on the autopilot to receive the code.&lt;br /&gt;
&lt;br /&gt;
* This completely replaces the normal autopilot code (leaving the USB bootloader intact) with a simple serial-to-serial pass-thru that essentially connects the GPS serial port directly to the modem serial port.  You will have no LED indicators or other autopilot functionality with this code.  Use this only to gain direct access to the GPS for testing/configuration with [[GPS#GPS_configuration_using_U-Center|U-Center]] or other software.&lt;br /&gt;
* This can be done without the USB bootloader by appending ''FLASH_MODE=ISP'' to the command line (specifing ISP serial loading).  This will require a serial cable connection (i.e. FTDI USB-to-TTL).  Installing tunnel code with the ISP method will erase any USB bootloader code.&lt;br /&gt;
&lt;br /&gt;
=== Installing the USB Bootloader ===&lt;br /&gt;
&lt;br /&gt;
The USB bootloader should only need to be installed once when the board is first built.  It is loaded through the serial interface UART0 (Serial1) by holding pin P0.14 low during power-up.  If you were supplied with a Tiny Autopilot it may have already had the USB bootloader installed, please check with your supplier.&lt;br /&gt;
&lt;br /&gt;
You will need to convert the PC's RS232 Serial with voltage levels of +/-13V to 3.3V (or 5V) TTL in order to communicate directly with the device.  This can be accomplished in multiple ways.  The easiest and most convenient method is to purchase or build a USB -&amp;gt; Serial 3.3V adapter similar to this one [http://www.ftdichip.com/Products/EvaluationKits/TTL-232R-3V3.htm TTL-232R-3V3]&lt;br /&gt;
Here's a few other examples:&lt;br /&gt;
[http://www.sparkfun.com/commerce/product_info.php?products_id=199]&lt;br /&gt;
[http://www.sparkfun.com/commerce/product_info.php?products_id=718]&lt;br /&gt;
[http://www.pololu.com/products/pololu/0391/]&lt;br /&gt;
[http://www.hvwtech.com/products_view.asp?CatID=166&amp;amp;SubCatID=183&amp;amp;SubSubCatID=0&amp;amp;ProductID=409]&lt;br /&gt;
[http://shop.halfbase.com/product_info.php/products_id/54]&lt;br /&gt;
Users are strongly urged to use FTDI usb-serial converters as they are well supported by default in the linux kernel and since the Paparazzi ground station software is configured to look for modems on FTDI ports by default, the converter can likely serve as a modem interface after it's use in programming.&lt;br /&gt;
&lt;br /&gt;
Make up a wiring harness similar to the following.  You may vary the details however this is a working solution:&lt;br /&gt;
&lt;br /&gt;
TINY RXD0 &amp;lt;-- PC SERIAL TX (5V or 3.3V)&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY TXD0 --&amp;gt; PC SERIAL RX (5V or 3.3V)&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY RESET --&amp;gt; ''optional'' wired to ground through a pushbutton so you can reset&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY P0.14 (SERIAL1-5) --&amp;gt; attach to ground, or wire through a pushbutton to ground&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY GND --&amp;gt; PC SERIAL ADAPTER GND&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once this wiring is ready you will be ready to send the USB Bootloader to the Tiny from the PC.&lt;br /&gt;
&lt;br /&gt;
To prepare the Tiny to accept programming over its serial port you must have pin P0.14 LOW for at least 3mS while it is powering up or resetting.  While it is still powered up it is ready to accept code over serial.  Proceed now to instructions to load it via software.&lt;br /&gt;
&lt;br /&gt;
'''In Linux'''&lt;br /&gt;
&lt;br /&gt;
From your paparazzi3 folder in linux, type:&lt;br /&gt;
&lt;br /&gt;
 make upload_bl PROC=GENERIC&lt;br /&gt;
&lt;br /&gt;
This will begin compiling your USB Bootloader and then attempt to transfer it to the Autopilot. This will also assume you are using a USB -&amp;gt; Serial adapter for the connection.  It uses /dev/ttyUSB0 by default. If your adapter is mapped to a different tty, you will need to modify the Makefile accordingly.&lt;br /&gt;
&lt;br /&gt;
'''In Windows'''&lt;br /&gt;
&lt;br /&gt;
If for some reason you need to program your Tiny's USB Bootloader in windows grab a copy of [http://www.standardics.nxp.com/support/documents/microcontrollers/zip/flash.isp.utility.lpc2000.zip LPC2000 Flash Utility V2.2.3] or later.  You will then prepare the Tiny and boot it into the ISP bootloader as mentioned above but program it with this utility.  You will need to copy your compiled bl.hex file from Linux of course.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
As a rapidly evolving open-source project, on occasion your software may fail to compile after a [[Installation#Software_Updates|CVS Update]].  This is most likely due to a new or changed variable name that is now required in your airframe, flight plan, etc.  Since the user-configured files are not updated automatically you may need to view the most recently changed sample airframe or flight plan files to find the required changes.&amp;lt;br&amp;gt;&lt;br /&gt;
See the [[Software_Troubleshooting|Software Troubleshooting]] page for help with common compiliation errors.&lt;/div&gt;</summary>
		<author><name>Dirkx</name></author>
	</entry>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=Compiling&amp;diff=3984</id>
		<title>Compiling</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=Compiling&amp;diff=3984"/>
		<updated>2008-08-25T13:21:01Z</updated>

		<summary type="html">&lt;p&gt;Dirkx: Demo/testing of flashing&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Flight plans, tuning and configuration settings are compiled into a single binary image and transferred to the microcontroler flash rom through USB.  Most tuning and flight plan parameters can be changed in-flight but after each power cycle, the autopilot reverts to the original settings.  Permanent changes must be made in the source files, compiled, and uploaded to the autopilot.&lt;br /&gt;
&lt;br /&gt;
== Configuring Non-Root users to access USB ==&lt;br /&gt;
&lt;br /&gt;
Non-Root users typically do not have access to hardware I/O with USB ports included.  The user you are using to program the autpilots must be a member of the ''plugdev'' group. The original user login given during the Linux install process usually is a member. If not, add yourself to this group with the following command:&lt;br /&gt;
&lt;br /&gt;
  sudo adduser &amp;lt;your login&amp;gt; plugdev&lt;br /&gt;
&lt;br /&gt;
It will be effective only on your next login or after the command&lt;br /&gt;
&lt;br /&gt;
   newgrp plugdev&lt;br /&gt;
&lt;br /&gt;
== USB flashing ==&lt;br /&gt;
&lt;br /&gt;
The Paparazzi device rules are required for USB flashing.  Copy them into place if you haven't already done so:&lt;br /&gt;
 sudo cp $PAPARAZZI_HOME/conf/system/udev/rules/10-paparazzi.rules /etc/udev/rules.d/&lt;br /&gt;
&lt;br /&gt;
If you are using Ubuntu, the Braille TTY driver interferes with FTDI USB Serial adapters and should be removed:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get remove brltty&lt;br /&gt;
&lt;br /&gt;
[[Image:Tiny_test_wiring.jpg|thumb|Example wiring for programming and telemetry]]&lt;br /&gt;
If the autopilot senses a connected USB cable during power-on, it will wait to receive a firmware image rather than booting normally.  The firmware can be compiled and flashed by several means, '''the simplest way using the [[Paparazzi_Center|Paparazzi Center]]''', the traditionnal way being:&lt;br /&gt;
 make AIRCRAFT=''myplane'' clean_ac ap.upload&lt;br /&gt;
 (where ''myplane'' is the name of your airframe as defined in &amp;lt;tt&amp;gt;conf/conf.xml&amp;lt;/tt&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
This command erases any compiled autopilot code from the PC, recompiles everything from scratch, and then sends it to the autopilot.  &lt;br /&gt;
Variations include:&lt;br /&gt;
* make AIRCRAFT=''myplane'' sim&lt;br /&gt;
*: Compiles your code for use in the simulator - note that &amp;quot;clean_ac&amp;quot; will remove this code, so the simulator code must be rebuilt each time a clean has been performed.&lt;br /&gt;
* make AIRCRAFT=''myplane'' fbw.upload&lt;br /&gt;
*: This is needed when configuring the separate &amp;quot;fly by wire&amp;quot; MCU on the [[Classix]] autopilot.&lt;br /&gt;
* make AIRCRAFT=''myplane'' ap&lt;br /&gt;
*: This will simply build the portions of autopilot code that have changed since the last compile without attempting to flash.  Note: this method may not detect certain changes (i.e. changes to the airframe makefile section or CVS updated code).&lt;br /&gt;
* make AIRCRAFT=''myplane'' ap.upload FLASH_MODE=IAP&lt;br /&gt;
*: Specifies USB flashing.  This should be specified at the top of the makefile section of your airframe file but can be overridden here.  Use FLASH_MODE=IAS for serial flashing.&lt;br /&gt;
&lt;br /&gt;
=== Verify that above downloads work ===&lt;br /&gt;
&lt;br /&gt;
1) connect the USB cable to the USB port (U23, corner of the board). You then typically should see feedback like:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
~/paparazzi3$ dmesg | tail -5&lt;br /&gt;
[79212.484187] pl2303 1-2.3:1.0: device disconnected&lt;br /&gt;
[82312.463077] usb 5-1: new high speed USB device using ehci_hcd and address 23&lt;br /&gt;
[82327.555770] usb 5-1: device descriptor read/64, error -110&lt;br /&gt;
[82342.752307] usb 5-1: device descriptor read/64, error -110&lt;br /&gt;
[82342.968031] usb 5-1: new high speed USB device using ehci_hcd and address 24&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
which confirms that your device is powered up and visible.&lt;br /&gt;
&lt;br /&gt;
Secondly - download some firmare (here we're using a modified [http://paparazzi.enac.fr/wiki/index.php/Using_demo_programs_in_sw/airborne demo2] - which flashes the LEDs):&lt;br /&gt;
&lt;br /&gt;
     make[1]: Leaving directory `/usr/share/paparazzi'&lt;br /&gt;
    cd sw/airborne; make PAPARAZZI_SRC=/usr/share/paparazzi PAPARAZZI_HOME=/home/dirkx/paparazzi3 TARGET=demo2 all&lt;br /&gt;
    make[1]: Entering directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
&lt;br /&gt;
    /home/dirkx/paparazzi3/var/demo/demo2/demo2.elf  :&lt;br /&gt;
    section    size         addr&lt;br /&gt;
    .text       956        16384&lt;br /&gt;
    .ctors        0        17340&lt;br /&gt;
    .dtors        0        17340&lt;br /&gt;
    .data         0   1073741824&lt;br /&gt;
    .bss         12   1073741824&lt;br /&gt;
    .stack     4096   1073742080&lt;br /&gt;
    .comment     54            0&lt;br /&gt;
    Total      5118&lt;br /&gt;
&lt;br /&gt;
    /home/dirkx/paparazzi3/var/demo/demo2/demo2.elf  :&lt;br /&gt;
    section    size         addr&lt;br /&gt;
    .text       956        16384&lt;br /&gt;
    .ctors        0        17340&lt;br /&gt;
    .dtors        0        17340&lt;br /&gt;
    .data         0   1073741824&lt;br /&gt;
    .bss         12   1073741824&lt;br /&gt;
    .stack     4096   1073742080&lt;br /&gt;
    .comment     54            0&lt;br /&gt;
    Total      5118&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    make[1]: Leaving directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
    cd sw/airborne; make PAPARAZZI_SRC=/usr/share/paparazzi PAPARAZZI_HOME=/home/dirkx/paparazzi3 TARGET=demo2 upload&lt;br /&gt;
    make[1]: Entering directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
    /usr/share/paparazzi/sw/ground_segment/lpc21iap/lpc21iap  /home/dirkx/paparazzi3/var/demo/demo2/demo2.elf&lt;br /&gt;
    .&lt;br /&gt;
    Found USB device&lt;br /&gt;
    BootROM code: 2.12&lt;br /&gt;
    Part ID: 0x0402FF25 (LPC2148, 512k Flash, 32k+8k RAM)&lt;br /&gt;
    BootLoader version: 1.3&lt;br /&gt;
    #&lt;br /&gt;
    Starting software at 0x00004000&lt;br /&gt;
    make[1]: Leaving directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
    make: Leaving directory `/usr/share/paparazzi'&lt;br /&gt;
    ~/paparazzi3$&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
which confirms that your device has the bootloader functioning. The important bit of output is:&lt;br /&gt;
&lt;br /&gt;
    Found USB device&lt;br /&gt;
    BootROM code: 2.12&lt;br /&gt;
    Part ID: 0x0402FF25 (LPC2148, 512k Flash, 32k+8k RAM)&lt;br /&gt;
    BootLoader version: 1.3&lt;br /&gt;
    #&lt;br /&gt;
&lt;br /&gt;
3) Observe the LEDs flashing.&lt;br /&gt;
&lt;br /&gt;
4) Disconnect the usb cable, powercylce the unit - LEDs should flash again.&lt;br /&gt;
&lt;br /&gt;
=== Installing the UART tunnel for direct access to the GPS ===&lt;br /&gt;
Type the following command from your paparazzi folder, substituting the name of your airframe and paying attention to case sensitivity:&lt;br /&gt;
 make AIRCRAFT=''myplane'' tunnel.upload&lt;br /&gt;
Connect the usb cable and power on the autopilot to receive the code.&lt;br /&gt;
&lt;br /&gt;
* This completely replaces the normal autopilot code (leaving the USB bootloader intact) with a simple serial-to-serial pass-thru that essentially connects the GPS serial port directly to the modem serial port.  You will have no LED indicators or other autopilot functionality with this code.  Use this only to gain direct access to the GPS for testing/configuration with [[GPS#GPS_configuration_using_U-Center|U-Center]] or other software.&lt;br /&gt;
* This can be done without the USB bootloader by appending ''FLASH_MODE=ISP'' to the command line (specifing ISP serial loading).  This will require a serial cable connection (i.e. FTDI USB-to-TTL).  Installing tunnel code with the ISP method will erase any USB bootloader code.&lt;br /&gt;
&lt;br /&gt;
=== Installing the USB Bootloader ===&lt;br /&gt;
&lt;br /&gt;
The USB bootloader should only need to be installed once when the board is first built.  It is loaded through the serial interface UART0 (Serial1) by holding pin P0.14 low during power-up.  If you were supplied with a Tiny Autopilot it may have already had the USB bootloader installed, please check with your supplier.&lt;br /&gt;
&lt;br /&gt;
You will need to convert the PC's RS232 Serial with voltage levels of +/-13V to 3.3V (or 5V) TTL in order to communicate directly with the device.  This can be accomplished in multiple ways.  The easiest and most convenient method is to purchase or build a USB -&amp;gt; Serial 3.3V adapter similar to this one [http://www.ftdichip.com/Products/EvaluationKits/TTL-232R-3V3.htm TTL-232R-3V3]&lt;br /&gt;
Here's a few other examples:&lt;br /&gt;
[http://www.sparkfun.com/commerce/product_info.php?products_id=199]&lt;br /&gt;
[http://www.sparkfun.com/commerce/product_info.php?products_id=718]&lt;br /&gt;
[http://www.pololu.com/products/pololu/0391/]&lt;br /&gt;
[http://www.hvwtech.com/products_view.asp?CatID=166&amp;amp;SubCatID=183&amp;amp;SubSubCatID=0&amp;amp;ProductID=409]&lt;br /&gt;
[http://shop.halfbase.com/product_info.php/products_id/54]&lt;br /&gt;
Users are strongly urged to use FTDI usb-serial converters as they are well supported by default in the linux kernel and since the Paparazzi ground station software is configured to look for modems on FTDI ports by default, the converter can likely serve as a modem interface after it's use in programming.&lt;br /&gt;
&lt;br /&gt;
Make up a wiring harness similar to the following.  You may vary the details however this is a working solution:&lt;br /&gt;
&lt;br /&gt;
TINY RXD0 &amp;lt;-- PC SERIAL TX (5V or 3.3V)&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY TXD0 --&amp;gt; PC SERIAL RX (5V or 3.3V)&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY RESET --&amp;gt; ''optional'' wired to ground through a pushbutton so you can reset&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY P0.14 (SERIAL1-5) --&amp;gt; attach to ground, or wire through a pushbutton to ground&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY GND --&amp;gt; PC SERIAL ADAPTER GND&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once this wiring is ready you will be ready to send the USB Bootloader to the Tiny from the PC.&lt;br /&gt;
&lt;br /&gt;
To prepare the Tiny to accept programming over its serial port you must have pin P0.14 LOW for at least 3mS while it is powering up or resetting.  While it is still powered up it is ready to accept code over serial.  Proceed now to instructions to load it via software.&lt;br /&gt;
&lt;br /&gt;
'''In Linux'''&lt;br /&gt;
&lt;br /&gt;
From your paparazzi3 folder in linux, type:&lt;br /&gt;
&lt;br /&gt;
 make upload_bl PROC=GENERIC&lt;br /&gt;
&lt;br /&gt;
This will begin compiling your USB Bootloader and then attempt to transfer it to the Autopilot. This will also assume you are using a USB -&amp;gt; Serial adapter for the connection.  It uses /dev/ttyUSB0 by default. If your adapter is mapped to a different tty, you will need to modify the Makefile accordingly.&lt;br /&gt;
&lt;br /&gt;
'''In Windows'''&lt;br /&gt;
&lt;br /&gt;
If for some reason you need to program your Tiny's USB Bootloader in windows grab a copy of [http://www.standardics.nxp.com/support/documents/microcontrollers/zip/flash.isp.utility.lpc2000.zip LPC2000 Flash Utility V2.2.3] or later.  You will then prepare the Tiny and boot it into the ISP bootloader as mentioned above but program it with this utility.  You will need to copy your compiled bl.hex file from Linux of course.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
As a rapidly evolving open-source project, on occasion your software may fail to compile after a [[Installation#Software_Updates|CVS Update]].  This is most likely due to a new or changed variable name that is now required in your airframe, flight plan, etc.  Since the user-configured files are not updated automatically you may need to view the most recently changed sample airframe or flight plan files to find the required changes.&amp;lt;br&amp;gt;&lt;br /&gt;
See the [[Software_Troubleshooting|Software Troubleshooting]] page for help with common compiliation errors.&lt;/div&gt;</summary>
		<author><name>Dirkx</name></author>
	</entry>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=Compiling&amp;diff=3983</id>
		<title>Compiling</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=Compiling&amp;diff=3983"/>
		<updated>2008-08-25T13:15:48Z</updated>

		<summary type="html">&lt;p&gt;Dirkx: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Flight plans, tuning and configuration settings are compiled into a single binary image and transferred to the microcontroler flash rom through USB.  Most tuning and flight plan parameters can be changed in-flight but after each power cycle, the autopilot reverts to the original settings.  Permanent changes must be made in the source files, compiled, and uploaded to the autopilot.&lt;br /&gt;
&lt;br /&gt;
== Configuring Non-Root users to access USB ==&lt;br /&gt;
&lt;br /&gt;
Non-Root users typically do not have access to hardware I/O with USB ports included.  The user you are using to program the autpilots must be a member of the ''plugdev'' group. The original user login given during the Linux install process usually is a member. If not, add yourself to this group with the following command:&lt;br /&gt;
&lt;br /&gt;
  sudo adduser &amp;lt;your login&amp;gt; plugdev&lt;br /&gt;
&lt;br /&gt;
It will be effective only on your next login or after the command&lt;br /&gt;
&lt;br /&gt;
   newgrp plugdev&lt;br /&gt;
&lt;br /&gt;
== USB flashing ==&lt;br /&gt;
&lt;br /&gt;
The Paparazzi device rules are required for USB flashing.  Copy them into place if you haven't already done so:&lt;br /&gt;
 sudo cp $PAPARAZZI_HOME/conf/system/udev/rules/10-paparazzi.rules /etc/udev/rules.d/&lt;br /&gt;
&lt;br /&gt;
If you are using Ubuntu, the Braille TTY driver interferes with FTDI USB Serial adapters and should be removed:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get remove brltty&lt;br /&gt;
&lt;br /&gt;
[[Image:Tiny_test_wiring.jpg|thumb|Example wiring for programming and telemetry]]&lt;br /&gt;
If the autopilot senses a connected USB cable during power-on, it will wait to receive a firmware image rather than booting normally.  The firmware can be compiled and flashed by several means, '''the simplest way using the [[Paparazzi_Center|Paparazzi Center]]''', the traditionnal way being:&lt;br /&gt;
 make AIRCRAFT=''myplane'' clean_ac ap.upload&lt;br /&gt;
 (where ''myplane'' is the name of your airframe as defined in &amp;lt;tt&amp;gt;conf/conf.xml&amp;lt;/tt&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
This command erases any compiled autopilot code from the PC, recompiles everything from scratch, and then sends it to the autopilot.  &lt;br /&gt;
Variations include:&lt;br /&gt;
* make AIRCRAFT=''myplane'' sim&lt;br /&gt;
*: Compiles your code for use in the simulator - note that &amp;quot;clean_ac&amp;quot; will remove this code, so the simulator code must be rebuilt each time a clean has been performed.&lt;br /&gt;
* make AIRCRAFT=''myplane'' fbw.upload&lt;br /&gt;
*: This is needed when configuring the separate &amp;quot;fly by wire&amp;quot; MCU on the [[Classix]] autopilot.&lt;br /&gt;
* make AIRCRAFT=''myplane'' ap&lt;br /&gt;
*: This will simply build the portions of autopilot code that have changed since the last compile without attempting to flash.  Note: this method may not detect certain changes (i.e. changes to the airframe makefile section or CVS updated code).&lt;br /&gt;
* make AIRCRAFT=''myplane'' ap.upload FLASH_MODE=IAP&lt;br /&gt;
*: Specifies USB flashing.  This should be specified at the top of the makefile section of your airframe file but can be overridden here.  Use FLASH_MODE=IAS for serial flashing.&lt;br /&gt;
=== Verify that above downloads work ===&lt;br /&gt;
&lt;br /&gt;
1) connect the USB cable to the USB port (U23, corner of the board). You then typically should see feedback like:&lt;br /&gt;
{{{&lt;br /&gt;
~/paparazzi3$ dmesg | tail -5&lt;br /&gt;
[79212.484187] pl2303 1-2.3:1.0: device disconnected&lt;br /&gt;
[82312.463077] usb 5-1: new high speed USB device using ehci_hcd and address 23&lt;br /&gt;
[82327.555770] usb 5-1: device descriptor read/64, error -110&lt;br /&gt;
[82342.752307] usb 5-1: device descriptor read/64, error -110&lt;br /&gt;
[82342.968031] usb 5-1: new high speed USB device using ehci_hcd and address 24&lt;br /&gt;
}}}&lt;br /&gt;
which confirms that your device is powered up and visible.&lt;br /&gt;
&lt;br /&gt;
Secondly - download some firmare (here we're using a modified demo2 - which flashes the LEDs):&lt;br /&gt;
{{{&lt;br /&gt;
~/paparazzi3$ export PAPARAZZI_HOME=~/paparazzi3&lt;br /&gt;
~/paparazzi3$ ./paparazzi-make  AIRCRAFT=demo demo2.upload&lt;br /&gt;
make: Entering directory `/usr/share/paparazzi'&lt;br /&gt;
demo&lt;br /&gt;
BUILD demo&lt;br /&gt;
make[1]: Entering directory `/usr/share/paparazzi'&lt;br /&gt;
make[1]: Nothing to be done for `all_ac_h'.&lt;br /&gt;
make[1]: Leaving directory `/usr/share/paparazzi'&lt;br /&gt;
cd sw/airborne; make PAPARAZZI_SRC=/usr/share/paparazzi PAPARAZZI_HOME=/home/dirkx/paparazzi3 TARGET=demo2 all&lt;br /&gt;
make[1]: Entering directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
&lt;br /&gt;
/home/dirkx/paparazzi3/var/demo/demo2/demo2.elf  :&lt;br /&gt;
section    size         addr&lt;br /&gt;
.text       956        16384&lt;br /&gt;
.ctors        0        17340&lt;br /&gt;
.dtors        0        17340&lt;br /&gt;
.data         0   1073741824&lt;br /&gt;
.bss         12   1073741824&lt;br /&gt;
.stack     4096   1073742080&lt;br /&gt;
.comment     54            0&lt;br /&gt;
Total      5118&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/home/dirkx/paparazzi3/var/demo/demo2/demo2.elf  :&lt;br /&gt;
section    size         addr&lt;br /&gt;
.text       956        16384&lt;br /&gt;
.ctors        0        17340&lt;br /&gt;
.dtors        0        17340&lt;br /&gt;
.data         0   1073741824&lt;br /&gt;
.bss         12   1073741824&lt;br /&gt;
.stack     4096   1073742080&lt;br /&gt;
.comment     54            0&lt;br /&gt;
Total      5118&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
make[1]: Leaving directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
cd sw/airborne; make PAPARAZZI_SRC=/usr/share/paparazzi PAPARAZZI_HOME=/home/dirkx/paparazzi3 TARGET=demo2 upload&lt;br /&gt;
make[1]: Entering directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
/usr/share/paparazzi/sw/ground_segment/lpc21iap/lpc21iap  /home/dirkx/paparazzi3/var/demo/demo2/demo2.elf&lt;br /&gt;
.&lt;br /&gt;
Found USB device&lt;br /&gt;
BootROM code: 2.12&lt;br /&gt;
Part ID: 0x0402FF25 (LPC2148, 512k Flash, 32k+8k RAM)&lt;br /&gt;
BootLoader version: 1.3&lt;br /&gt;
#&lt;br /&gt;
Starting software at 0x00004000&lt;br /&gt;
make[1]: Leaving directory `/usr/share/paparazzi/sw/airborne'&lt;br /&gt;
make: Leaving directory `/usr/share/paparazzi'&lt;br /&gt;
~/paparazzi3$&lt;br /&gt;
}}}&lt;br /&gt;
which confirms that your device has the bootloader functioning.&lt;br /&gt;
&lt;br /&gt;
3) Observe the LEDs flashing.&lt;br /&gt;
&lt;br /&gt;
4) Disconnect the usb cable, powercylce the unit - LEDs should flash again.&lt;br /&gt;
&lt;br /&gt;
=== Installing the UART tunnel for direct access to the GPS ===&lt;br /&gt;
Type the following command from your paparazzi folder, substituting the name of your airframe and paying attention to case sensitivity:&lt;br /&gt;
 make AIRCRAFT=''myplane'' tunnel.upload&lt;br /&gt;
Connect the usb cable and power on the autopilot to receive the code.&lt;br /&gt;
&lt;br /&gt;
* This completely replaces the normal autopilot code (leaving the USB bootloader intact) with a simple serial-to-serial pass-thru that essentially connects the GPS serial port directly to the modem serial port.  You will have no LED indicators or other autopilot functionality with this code.  Use this only to gain direct access to the GPS for testing/configuration with [[GPS#GPS_configuration_using_U-Center|U-Center]] or other software.&lt;br /&gt;
* This can be done without the USB bootloader by appending ''FLASH_MODE=ISP'' to the command line (specifing ISP serial loading).  This will require a serial cable connection (i.e. FTDI USB-to-TTL).  Installing tunnel code with the ISP method will erase any USB bootloader code.&lt;br /&gt;
&lt;br /&gt;
=== Installing the USB Bootloader ===&lt;br /&gt;
&lt;br /&gt;
The USB bootloader should only need to be installed once when the board is first built.  It is loaded through the serial interface UART0 (Serial1) by holding pin P0.14 low during power-up.  If you were supplied with a Tiny Autopilot it may have already had the USB bootloader installed, please check with your supplier.&lt;br /&gt;
&lt;br /&gt;
You will need to convert the PC's RS232 Serial with voltage levels of +/-13V to 3.3V (or 5V) TTL in order to communicate directly with the device.  This can be accomplished in multiple ways.  The easiest and most convenient method is to purchase or build a USB -&amp;gt; Serial 3.3V adapter similar to this one [http://www.ftdichip.com/Products/EvaluationKits/TTL-232R-3V3.htm TTL-232R-3V3]&lt;br /&gt;
Here's a few other examples:&lt;br /&gt;
[http://www.sparkfun.com/commerce/product_info.php?products_id=199]&lt;br /&gt;
[http://www.sparkfun.com/commerce/product_info.php?products_id=718]&lt;br /&gt;
[http://www.pololu.com/products/pololu/0391/]&lt;br /&gt;
[http://www.hvwtech.com/products_view.asp?CatID=166&amp;amp;SubCatID=183&amp;amp;SubSubCatID=0&amp;amp;ProductID=409]&lt;br /&gt;
[http://shop.halfbase.com/product_info.php/products_id/54]&lt;br /&gt;
Users are strongly urged to use FTDI usb-serial converters as they are well supported by default in the linux kernel and since the Paparazzi ground station software is configured to look for modems on FTDI ports by default, the converter can likely serve as a modem interface after it's use in programming.&lt;br /&gt;
&lt;br /&gt;
Make up a wiring harness similar to the following.  You may vary the details however this is a working solution:&lt;br /&gt;
&lt;br /&gt;
TINY RXD0 &amp;lt;-- PC SERIAL TX (5V or 3.3V)&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY TXD0 --&amp;gt; PC SERIAL RX (5V or 3.3V)&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY RESET --&amp;gt; ''optional'' wired to ground through a pushbutton so you can reset&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY P0.14 (SERIAL1-5) --&amp;gt; attach to ground, or wire through a pushbutton to ground&amp;lt;br /&amp;gt;&lt;br /&gt;
TINY GND --&amp;gt; PC SERIAL ADAPTER GND&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once this wiring is ready you will be ready to send the USB Bootloader to the Tiny from the PC.&lt;br /&gt;
&lt;br /&gt;
To prepare the Tiny to accept programming over its serial port you must have pin P0.14 LOW for at least 3mS while it is powering up or resetting.  While it is still powered up it is ready to accept code over serial.  Proceed now to instructions to load it via software.&lt;br /&gt;
&lt;br /&gt;
'''In Linux'''&lt;br /&gt;
&lt;br /&gt;
From your paparazzi3 folder in linux, type:&lt;br /&gt;
&lt;br /&gt;
 make upload_bl PROC=GENERIC&lt;br /&gt;
&lt;br /&gt;
This will begin compiling your USB Bootloader and then attempt to transfer it to the Autopilot. This will also assume you are using a USB -&amp;gt; Serial adapter for the connection.  It uses /dev/ttyUSB0 by default. If your adapter is mapped to a different tty, you will need to modify the Makefile accordingly.&lt;br /&gt;
&lt;br /&gt;
'''In Windows'''&lt;br /&gt;
&lt;br /&gt;
If for some reason you need to program your Tiny's USB Bootloader in windows grab a copy of [http://www.standardics.nxp.com/support/documents/microcontrollers/zip/flash.isp.utility.lpc2000.zip LPC2000 Flash Utility V2.2.3] or later.  You will then prepare the Tiny and boot it into the ISP bootloader as mentioned above but program it with this utility.  You will need to copy your compiled bl.hex file from Linux of course.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
As a rapidly evolving open-source project, on occasion your software may fail to compile after a [[Installation#Software_Updates|CVS Update]].  This is most likely due to a new or changed variable name that is now required in your airframe, flight plan, etc.  Since the user-configured files are not updated automatically you may need to view the most recently changed sample airframe or flight plan files to find the required changes.&amp;lt;br&amp;gt;&lt;br /&gt;
See the [[Software_Troubleshooting|Software Troubleshooting]] page for help with common compiliation errors.&lt;/div&gt;</summary>
		<author><name>Dirkx</name></author>
	</entry>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=Installation/Linux&amp;diff=3719</id>
		<title>Installation/Linux</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=Installation/Linux&amp;diff=3719"/>
		<updated>2008-06-01T18:58:32Z</updated>

		<summary type="html">&lt;p&gt;Dirkx: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Precompiled binaries can be downloaded and executed with the ''paparazzi-bin'' package but to maintain the power and flexibility of open-source code, most operations within Paparazzi involve recompilation of autopilot and/or ground station code.  Therefore the typical installation requires all of the necessary C and OCaml compilers as well as some XML and [http://www.tls.cena.fr/products/ivy/ Ivy] handlers. These tools are provided by the ''paparazzi-dev'' package.&lt;br /&gt;
&lt;br /&gt;
The Paparazzi sources are hosted by [http://savannah.nongnu.org/cvs/?group=paparazzi Savannah].&lt;br /&gt;
&lt;br /&gt;
The Paparazzi packages are hosted at the [http://www.recherche.enac.fr/paparazzi/debian ENAC repository].&lt;br /&gt;
&lt;br /&gt;
== Installation on Debian based distributions ==&lt;br /&gt;
&lt;br /&gt;
Paparazzi is packaged for Debian as well as all of its dependencies. The [http://www.recherche.enac.fr/paparazzi/debian repository] hosted at ENAC holds their latest version.&lt;br /&gt;
&lt;br /&gt;
=== Installation from the Command Line===&lt;br /&gt;
Just add the following lines to your repository list (&amp;lt;b&amp;gt;/etc/apt/sources.list&amp;lt;/b&amp;gt;) and then&lt;br /&gt;
uncomment the line relevant to your operating system (e.g. one of Sarge, etch, gutsy or hardy):&lt;br /&gt;
&lt;br /&gt;
{{Box Code|/etc/apt/sources.list|&lt;br /&gt;
 # Uncomment just _one_ of the next 4 lines - depending on your OS version&lt;br /&gt;
 # deb &amp;lt;nowiki&amp;gt;http://paparazzi.enac.fr/ubuntu&amp;lt;/nowiki&amp;gt; sarge main&lt;br /&gt;
 # deb &amp;lt;nowiki&amp;gt;http://paparazzi.enac.fr/ubuntu&amp;lt;/nowiki&amp;gt; etch main&lt;br /&gt;
 # deb &amp;lt;nowiki&amp;gt;http://paparazzi.enac.fr/ubuntu&amp;lt;/nowiki&amp;gt; gutsy main&lt;br /&gt;
 # deb &amp;lt;nowiki&amp;gt;http://paparazzi.enac.fr/ubuntu&amp;lt;/nowiki&amp;gt; hardy main&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Then, update your sources and install the precompiled &amp;lt;b&amp;gt;bin&amp;lt;/b&amp;gt;aries&lt;br /&gt;
 apt-get update&lt;br /&gt;
 apt-get install paparazzi-bin&lt;br /&gt;
&amp;lt;b&amp;gt;or&amp;lt;/b&amp;gt; the dependencies needed for recompiling from the source (&amp;lt;b&amp;gt;dev&amp;lt;/b&amp;gt;), and the cross-compiler (&amp;lt;b&amp;gt;arm7&amp;lt;/b&amp;gt;) :&lt;br /&gt;
 apt-get update&lt;br /&gt;
 apt-get install paparazzi-dev&lt;br /&gt;
 apt-get install paparazzi-arm7&lt;br /&gt;
Note: It is not recommended to install both &amp;lt;tt&amp;gt;paparazzi-bin&amp;lt;/tt&amp;gt; &amp;lt;b&amp;gt;and&amp;lt;/b&amp;gt; &amp;lt;tt&amp;gt;paparazzi-dev&amp;lt;/tt&amp;gt;. While the &amp;lt;b&amp;gt;bin&amp;lt;/b&amp;gt; package is self-contained and should be sufficient for users who do not want to patch the code, the &amp;lt;b&amp;gt;dev&amp;lt;/b&amp;gt; meta-package provides only the tools to compile the source code which must be separately downloaded, from an archive or the CVS repository.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Optional/Obsolete Packages ====&lt;br /&gt;
Users of older AVR based boards will also need the paparazzi-avr package.&lt;br /&gt;
&lt;br /&gt;
==== Extra for Ubuntu ====&lt;br /&gt;
&lt;br /&gt;
The Braille TTY driver interferes with FTDI USB Serial adapters and should be removed:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get remove brltty&lt;br /&gt;
&lt;br /&gt;
=== Installation thru Synaptic Package Manager ===&lt;br /&gt;
* Launch ''Synaptic Package Manager'' (''Applications/System'' Tools Menu)&lt;br /&gt;
* In '''Settings/Repositories''', add a new repository on URI = '''&amp;lt;nowiki&amp;gt;http://paparazzi.enac.fr/debian&amp;lt;/nowiki&amp;gt;''', Distribution = '''etch''' (or '''sarge''' or '''sid'''), Section = '''main''' . For Ubuntu, replace '''debian''' by '''ubuntu''' and '''etch''' by '''gutsy''' (or '''hardy''')&lt;br /&gt;
* Search for &amp;lt;tt&amp;gt;paparazzi-bin&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;paparazzi-dev&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;paparazzi-arm7&amp;lt;/tt&amp;gt; packages (use the ''Search'' button)&lt;br /&gt;
* Mark them for installation (right-click on package names)&lt;br /&gt;
* Left-click on ''Apply''&lt;br /&gt;
&lt;br /&gt;
== Manual Installation of Individual Packages ==&lt;br /&gt;
Users of other Linux flavors or anyone needing manual control of each individual package can install them independently.  The list of dependencies of the Debian package is located in the [http://cvs.savannah.gnu.org/viewvc/paparazzi/paparazzi3/debian/control.etch?revision=1.16&amp;amp;view=markup &amp;lt;tt&amp;gt; debian/control.etch&amp;lt;/tt&amp;gt;] file and may help users of other distributions.&lt;br /&gt;
&lt;br /&gt;
The binary packages and some corresponding source tarballs can be downloaded from&lt;br /&gt;
&lt;br /&gt;
 http://paparazzi.enac.fr/debian/dists/etch/main/binary-i386/&lt;br /&gt;
&lt;br /&gt;
For distributions using RPM packaging, the [http://packages.debian.org/unstable/source/alien alien] tool can be used to translate a .deb package into a .rpm package.&lt;br /&gt;
&lt;br /&gt;
For Fedora (Core8) users, you can install the following packages from standard repository:&lt;br /&gt;
* ocaml.i386&lt;br /&gt;
* ocaml-camlimages-devel.i386&lt;br /&gt;
* ocaml-lablgtk-devel.i386&lt;br /&gt;
* ocaml-xml-light-devel.i386&lt;br /&gt;
* boa.i386&lt;br /&gt;
* libgnomecanvas-devel.i386&lt;br /&gt;
* libusb-devel.i386&lt;br /&gt;
* pcre-devel.i386&lt;br /&gt;
* arm-gp2x-linux-gcc.i386&lt;br /&gt;
* arm-gp2x-linux-binutils.i386&lt;br /&gt;
* glade2.i386&lt;br /&gt;
* and gcc, make, cvs, gnuplot, imagemagik...&lt;br /&gt;
&lt;br /&gt;
Then you need [http://packages.debian.org/unstable/source/alien alien] tool to convert packages from the paparazzi repository:&lt;br /&gt;
* ivy-c&lt;br /&gt;
* ivy-c-dev&lt;br /&gt;
* ivy-ocaml (WARNING: debian and fedora have different path for ocaml (/usr/lib/ocaml/&amp;lt;version&amp;gt; vs. /usr/lib/ocaml), so you need to move by hand the files in /usr/lib/ocaml/&amp;lt;version&amp;gt; to /usr/lib/ocaml)&lt;br /&gt;
* lpc21isp&lt;br /&gt;
&lt;br /&gt;
== Installing the Source Code (not needed with paparazzi-bin) ==&lt;br /&gt;
After the &amp;lt;tt&amp;gt;paparazzi-dev&amp;lt;/tt&amp;gt; package is installed the complete source code should be downloaded from the CVS repository.  See the [http://savannah.nongnu.org/cvs/?group=paparazzi project page] at Savannah for more details.  From the directory of your choice type:&lt;br /&gt;
 cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/paparazzi co paparazzi3&lt;br /&gt;
This will download all of the code and install it into &amp;lt;tt&amp;gt;paparazzi3/&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you cannot use the CVS install, dayly updated tarballs can also be fetched from the [[Downloads|Downloads]] page.&lt;br /&gt;
&lt;br /&gt;
== Launching the Software ==&lt;br /&gt;
&lt;br /&gt;
If you are using the &amp;lt;tt&amp;gt;paparazzi-bin&amp;lt;/tt&amp;gt; package or the Live-CD, just launch the &amp;lt;tt&amp;gt;paparazzi&amp;lt;/tt&amp;gt; binary application and you will be guided through the installation of your personal configuration files.&lt;br /&gt;
&lt;br /&gt;
If you are using the source code, the first step is to compile it. From the &amp;lt;tt&amp;gt;paparazzi3&amp;lt;/tt&amp;gt; directory (&amp;lt;tt&amp;gt;cd paparazzi3&amp;lt;/tt&amp;gt;), run&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
You will have to run this command after each update of the source (&amp;lt;tt&amp;gt;cvs update&amp;lt;/tt&amp;gt; command).&lt;br /&gt;
Launch the software from the &amp;lt;tt&amp;gt;paparazzi3&amp;lt;/tt&amp;gt; directory with&lt;br /&gt;
&lt;br /&gt;
 ./paparazzi&lt;br /&gt;
&lt;br /&gt;
From the [[Paparazzi_Center|Paparazzi Center]] interface, select the ''MJ5'' aircraft, select the ''sim'' target and ''Build'' it. Then ''Execute'' the ''Simulation'' session.&lt;br /&gt;
&lt;br /&gt;
If ('''and only if''') you want to directly launch some Paparazzi agents (the ''Tools'' of the [[Paparazzi_Center|Paparazzi Center]]), without using the Paparazzi Center, you must have the Paparazzi source and home environment variables set correctly in your shell. These variables can be automatically set in your shell by adding the following lines to your .bashrc file:&lt;br /&gt;
{{Box Code|/home/your_username/.bashrc|&lt;br /&gt;
 export PAPARAZZI_HOME&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;''your paparazzi3 directory''&lt;br /&gt;
 export PAPARAZZI_SRC&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;''your paparazzi3 directory''&lt;br /&gt;
}}&lt;br /&gt;
If you wish to manually set the env variables (i.e. when compiling a backup copy of your code in a different folder) execute the following command from the folder you wish to set as your active paparazzi folder:&lt;br /&gt;
 export PAPARAZZI_HOME=`pwd`;export PAPARAZZI_SRC=`pwd`&lt;br /&gt;
Verify that your variables are set correctly with the following command:&lt;br /&gt;
 env | grep PAPARAZZI&lt;br /&gt;
which should return the following:&lt;br /&gt;
 PAPARAZZI_HOME&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;''your paparazzi3 directory''&lt;br /&gt;
 PAPARAZZI_SRC&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;''your paparazzi3 directory''&lt;br /&gt;
&lt;br /&gt;
== Setting access rights for USB download ==&lt;br /&gt;
&lt;br /&gt;
This may be required to flash the Paparazzi-boards directly thru USB. For flashing details, see [[Compiling]].&lt;br /&gt;
&lt;br /&gt;
Default linux rights may not allow standard (non root) users to directly access the USB bus. You will need to make yourself a member of a &amp;quot;group&amp;quot; and then create a &amp;quot;rule&amp;quot;, associated with that &amp;quot;group&amp;quot;. &amp;lt;br&amp;gt;&lt;br /&gt;
Make yourself a member of the ''plugdev'' group:&lt;br /&gt;
&lt;br /&gt;
 sudo adduser &amp;lt;your login&amp;gt; plugdev&lt;br /&gt;
&lt;br /&gt;
Logout and login again. Then add the following rule:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt; # all (fake VID 0x7070) LPCUSB devices (access through libusb)&amp;lt;br&amp;gt;&lt;br /&gt;
BUS==&amp;quot;usb&amp;quot;, SYSFS{idVendor}==&amp;quot;7070&amp;quot;, GROUP=&amp;quot;plugdev&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The file ''10-paparazzi.rules'' contains the above rule as well as other related rules.  Simply copy it as root from $PAPARAZZI_HOME/conf/system/udev/rules/ to /etc/udev/rules.d/&lt;br /&gt;
&lt;br /&gt;
 su -&lt;br /&gt;
 cp $PAPARAZZI_HOME/conf/system/udev/rules/10-paparazzi.rules /etc/udev/rules.d/&lt;br /&gt;
 &amp;lt;i&amp;gt;exit su with &amp;quot;&amp;lt;b&amp;gt;Ctrl-D&amp;lt;/b&amp;gt;&amp;quot;&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Software Updates ==&lt;br /&gt;
Paparazzi is a very rapidly evolving project and as such, you will find that variables and functions are frequently added, changed, or removed.  Update your software with care and caution, and always test the functionality on the ground and in the air as some updates will affect tuning parameters.  Your airframe file will not be updated by the CVS system and therefore any new or modified variable names will need to be added manually.  The compiler will usually identify the problem variables at which point you can look at some of the most recent airframe files on the CVS to find the proper syntax.  See the [[Compiling]] page for more help if needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
That said, keeping your software up to date is easy with the CVS system.  The system will compare all source code files with the server and update any that are needed, automatically merging any minor changes that you have incorporated along the way.&lt;br /&gt;
&lt;br /&gt;
To download and automatically merge any updated source files, run the following command from your Paparazzi directory&lt;br /&gt;
 cvs update -d&lt;br /&gt;
where the &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is needed to get any new directories.&lt;br /&gt;
&lt;br /&gt;
After any CVS update or source code modification the code can be recompiled from ''your paparazzi3 directory'' with the following command:&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
The ''make'' command will only recompile portions of the software where changed have been detected.  If it does not behave as expected you can deleted all compiled files and recompile from scratch with the following commands:&lt;br /&gt;
&lt;br /&gt;
 make clean&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
See the [[Compiling]] page for more info.&lt;br /&gt;
&lt;br /&gt;
Users making changes to their code structure may prefer to have more control over the updating and merging process and may wish to install and use '''tkcvs''' instead which provides highlighted comparisons of any files that differ between your code and the CVS server and allows for a file by file update.&lt;br /&gt;
&lt;br /&gt;
To update your Linux distribution as well as any dependencies of Paparazzi (seldom necessary), run the following as root:&lt;br /&gt;
 apt-get update&lt;br /&gt;
 apt get upgrade&lt;br /&gt;
&lt;br /&gt;
== LiveCd ==&lt;br /&gt;
&lt;br /&gt;
The LiveCD is an easy way to test Paparazzi: no installation is required and no changes are made to your computer.  Simply burn the image as a boot CD and reboot!  The LiveCD includes Linux and the complete paparazzi binary package (code source, tools and cross compilers).  It is intended for demonstration only and not frequently updated but it contains the complete system and can store changed files on a pen drive or compressed file on your hard drive so that it can compile, flash, and operate any aircraft, albeit slowly.  &lt;br /&gt;
 &lt;br /&gt;
The CD image is available from the [[Downloads|Downloads]] page.&lt;br /&gt;
&lt;br /&gt;
The Paparazzi demo is launchable on the Live CD from the Paparazzi icon.&lt;br /&gt;
&lt;br /&gt;
Knoppix allows for all the user data to be saved on a hard disk partition (most file systems are supported) or on a removable device (typically a USB pendrive). Note that this action is not destructive: the user data tree is compressed and stored on your file system as a single file (&amp;lt;tt&amp;gt;knoppix.img&amp;lt;/tt&amp;gt;).&lt;br /&gt;
* From the Knoppix menu (second from bottom left), choose '''Configure''', '''Create a persistent KNOPPIX disk image'''&lt;br /&gt;
* Choose your media (be sure to connect your USB pendrive before booting!)&lt;br /&gt;
* Choose if you want an encrypted filesystem (to protect your flight plan designed for the next MAV competition :-) )&lt;br /&gt;
* Choose the size of your home directory (100Mb is recommended)&lt;br /&gt;
On the next reboot, this saved state will be automatically located and loaded.&lt;br /&gt;
&lt;br /&gt;
Using this persistent feature, the Paparazzix Live CD can really be used to configure, simulate and fly an aircraft with the Paparazzi system.&lt;br /&gt;
&lt;br /&gt;
The Live CD can also be used to install a Debian system on the hard disk, using the &amp;lt;tt&amp;gt;knoppix-installer&amp;lt;/tt&amp;gt; command. Be sure to backup the hard disk before trying ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Lightscribe_CD_Cover_1.JPG|thumb|320px|LightScribe CD Cover]] A LiveCD needs some looks... In color or in LightScribe format, your CD will always look cool. &lt;br /&gt;
* Get the PDF version for download here [http://paparazzi.enac.fr/wiki_images/Lightscribe_CD_Cover_1.pdf LightScribe CD Cover 1].&lt;br /&gt;
&lt;br /&gt;
* The LightScribe version is in Nero Cover Design format (.ncd) and it's here for download [http://paparazzi.enac.fr/wiki_images/Lightscribe_CD_Cover_1.zip LightScribe CD Cover 1]&lt;/div&gt;</summary>
		<author><name>Dirkx</name></author>
	</entry>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=Installation/Linux&amp;diff=3718</id>
		<title>Installation/Linux</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=Installation/Linux&amp;diff=3718"/>
		<updated>2008-06-01T18:57:57Z</updated>

		<summary type="html">&lt;p&gt;Dirkx: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Precompiled binaries can be downloaded and executed with the ''paparazzi-bin'' package but to maintain the power and flexibility of open-source code, most operations within Paparazzi involve recompilation of autopilot and/or ground station code.  Therefore the typical installation requires all of the necessary C and OCaml compilers as well as some XML and [http://www.tls.cena.fr/products/ivy/ Ivy] handlers. These tools are provided by the ''paparazzi-dev'' package.&lt;br /&gt;
&lt;br /&gt;
The Paparazzi sources are hosted by [http://savannah.nongnu.org/cvs/?group=paparazzi Savannah].&lt;br /&gt;
&lt;br /&gt;
The Paparazzi packages are hosted at the [http://www.recherche.enac.fr/paparazzi/debian ENAC repository].&lt;br /&gt;
&lt;br /&gt;
== Installation on Debian based distributions ==&lt;br /&gt;
&lt;br /&gt;
Paparazzi is packaged for Debian as well as all of its dependencies. The [http://www.recherche.enac.fr/paparazzi/debian repository] hosted at ENAC holds their latest version.&lt;br /&gt;
&lt;br /&gt;
=== Installation from the Command Line===&lt;br /&gt;
Just add the following line to your repository list (&amp;lt;b&amp;gt;/etc/apt/sources.list&amp;lt;/b&amp;gt;).:&lt;br /&gt;
{{Box Code|/etc/apt/sources.list|&lt;br /&gt;
 # Uncomment just _one_ of the next 4 lines - depending on your OS version&lt;br /&gt;
 # deb &amp;lt;nowiki&amp;gt;http://paparazzi.enac.fr/ubuntu&amp;lt;/nowiki&amp;gt; sarge main&lt;br /&gt;
 # deb &amp;lt;nowiki&amp;gt;http://paparazzi.enac.fr/ubuntu&amp;lt;/nowiki&amp;gt; etch main&lt;br /&gt;
 # deb &amp;lt;nowiki&amp;gt;http://paparazzi.enac.fr/ubuntu&amp;lt;/nowiki&amp;gt; gutsy main&lt;br /&gt;
 # deb &amp;lt;nowiki&amp;gt;http://paparazzi.enac.fr/ubuntu&amp;lt;/nowiki&amp;gt; hardy main&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Then, update your sources and install the precompiled &amp;lt;b&amp;gt;bin&amp;lt;/b&amp;gt;aries&lt;br /&gt;
 apt-get update&lt;br /&gt;
 apt-get install paparazzi-bin&lt;br /&gt;
&amp;lt;b&amp;gt;or&amp;lt;/b&amp;gt; the dependencies needed for recompiling from the source (&amp;lt;b&amp;gt;dev&amp;lt;/b&amp;gt;), and the cross-compiler (&amp;lt;b&amp;gt;arm7&amp;lt;/b&amp;gt;) :&lt;br /&gt;
 apt-get update&lt;br /&gt;
 apt-get install paparazzi-dev&lt;br /&gt;
 apt-get install paparazzi-arm7&lt;br /&gt;
Note: It is not recommended to install both &amp;lt;tt&amp;gt;paparazzi-bin&amp;lt;/tt&amp;gt; &amp;lt;b&amp;gt;and&amp;lt;/b&amp;gt; &amp;lt;tt&amp;gt;paparazzi-dev&amp;lt;/tt&amp;gt;. While the &amp;lt;b&amp;gt;bin&amp;lt;/b&amp;gt; package is self-contained and should be sufficient for users who do not want to patch the code, the &amp;lt;b&amp;gt;dev&amp;lt;/b&amp;gt; meta-package provides only the tools to compile the source code which must be separately downloaded, from an archive or the CVS repository.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Optional/Obsolete Packages ====&lt;br /&gt;
Users of older AVR based boards will also need the paparazzi-avr package.&lt;br /&gt;
&lt;br /&gt;
==== Extra for Ubuntu ====&lt;br /&gt;
&lt;br /&gt;
The Braille TTY driver interferes with FTDI USB Serial adapters and should be removed:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get remove brltty&lt;br /&gt;
&lt;br /&gt;
=== Installation thru Synaptic Package Manager ===&lt;br /&gt;
* Launch ''Synaptic Package Manager'' (''Applications/System'' Tools Menu)&lt;br /&gt;
* In '''Settings/Repositories''', add a new repository on URI = '''&amp;lt;nowiki&amp;gt;http://paparazzi.enac.fr/debian&amp;lt;/nowiki&amp;gt;''', Distribution = '''etch''' (or '''sarge''' or '''sid'''), Section = '''main''' . For Ubuntu, replace '''debian''' by '''ubuntu''' and '''etch''' by '''gutsy''' (or '''hardy''')&lt;br /&gt;
* Search for &amp;lt;tt&amp;gt;paparazzi-bin&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;paparazzi-dev&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;paparazzi-arm7&amp;lt;/tt&amp;gt; packages (use the ''Search'' button)&lt;br /&gt;
* Mark them for installation (right-click on package names)&lt;br /&gt;
* Left-click on ''Apply''&lt;br /&gt;
&lt;br /&gt;
== Manual Installation of Individual Packages ==&lt;br /&gt;
Users of other Linux flavors or anyone needing manual control of each individual package can install them independently.  The list of dependencies of the Debian package is located in the [http://cvs.savannah.gnu.org/viewvc/paparazzi/paparazzi3/debian/control.etch?revision=1.16&amp;amp;view=markup &amp;lt;tt&amp;gt; debian/control.etch&amp;lt;/tt&amp;gt;] file and may help users of other distributions.&lt;br /&gt;
&lt;br /&gt;
The binary packages and some corresponding source tarballs can be downloaded from&lt;br /&gt;
&lt;br /&gt;
 http://paparazzi.enac.fr/debian/dists/etch/main/binary-i386/&lt;br /&gt;
&lt;br /&gt;
For distributions using RPM packaging, the [http://packages.debian.org/unstable/source/alien alien] tool can be used to translate a .deb package into a .rpm package.&lt;br /&gt;
&lt;br /&gt;
For Fedora (Core8) users, you can install the following packages from standard repository:&lt;br /&gt;
* ocaml.i386&lt;br /&gt;
* ocaml-camlimages-devel.i386&lt;br /&gt;
* ocaml-lablgtk-devel.i386&lt;br /&gt;
* ocaml-xml-light-devel.i386&lt;br /&gt;
* boa.i386&lt;br /&gt;
* libgnomecanvas-devel.i386&lt;br /&gt;
* libusb-devel.i386&lt;br /&gt;
* pcre-devel.i386&lt;br /&gt;
* arm-gp2x-linux-gcc.i386&lt;br /&gt;
* arm-gp2x-linux-binutils.i386&lt;br /&gt;
* glade2.i386&lt;br /&gt;
* and gcc, make, cvs, gnuplot, imagemagik...&lt;br /&gt;
&lt;br /&gt;
Then you need [http://packages.debian.org/unstable/source/alien alien] tool to convert packages from the paparazzi repository:&lt;br /&gt;
* ivy-c&lt;br /&gt;
* ivy-c-dev&lt;br /&gt;
* ivy-ocaml (WARNING: debian and fedora have different path for ocaml (/usr/lib/ocaml/&amp;lt;version&amp;gt; vs. /usr/lib/ocaml), so you need to move by hand the files in /usr/lib/ocaml/&amp;lt;version&amp;gt; to /usr/lib/ocaml)&lt;br /&gt;
* lpc21isp&lt;br /&gt;
&lt;br /&gt;
== Installing the Source Code (not needed with paparazzi-bin) ==&lt;br /&gt;
After the &amp;lt;tt&amp;gt;paparazzi-dev&amp;lt;/tt&amp;gt; package is installed the complete source code should be downloaded from the CVS repository.  See the [http://savannah.nongnu.org/cvs/?group=paparazzi project page] at Savannah for more details.  From the directory of your choice type:&lt;br /&gt;
 cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/paparazzi co paparazzi3&lt;br /&gt;
This will download all of the code and install it into &amp;lt;tt&amp;gt;paparazzi3/&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you cannot use the CVS install, dayly updated tarballs can also be fetched from the [[Downloads|Downloads]] page.&lt;br /&gt;
&lt;br /&gt;
== Launching the Software ==&lt;br /&gt;
&lt;br /&gt;
If you are using the &amp;lt;tt&amp;gt;paparazzi-bin&amp;lt;/tt&amp;gt; package or the Live-CD, just launch the &amp;lt;tt&amp;gt;paparazzi&amp;lt;/tt&amp;gt; binary application and you will be guided through the installation of your personal configuration files.&lt;br /&gt;
&lt;br /&gt;
If you are using the source code, the first step is to compile it. From the &amp;lt;tt&amp;gt;paparazzi3&amp;lt;/tt&amp;gt; directory (&amp;lt;tt&amp;gt;cd paparazzi3&amp;lt;/tt&amp;gt;), run&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
You will have to run this command after each update of the source (&amp;lt;tt&amp;gt;cvs update&amp;lt;/tt&amp;gt; command).&lt;br /&gt;
Launch the software from the &amp;lt;tt&amp;gt;paparazzi3&amp;lt;/tt&amp;gt; directory with&lt;br /&gt;
&lt;br /&gt;
 ./paparazzi&lt;br /&gt;
&lt;br /&gt;
From the [[Paparazzi_Center|Paparazzi Center]] interface, select the ''MJ5'' aircraft, select the ''sim'' target and ''Build'' it. Then ''Execute'' the ''Simulation'' session.&lt;br /&gt;
&lt;br /&gt;
If ('''and only if''') you want to directly launch some Paparazzi agents (the ''Tools'' of the [[Paparazzi_Center|Paparazzi Center]]), without using the Paparazzi Center, you must have the Paparazzi source and home environment variables set correctly in your shell. These variables can be automatically set in your shell by adding the following lines to your .bashrc file:&lt;br /&gt;
{{Box Code|/home/your_username/.bashrc|&lt;br /&gt;
 export PAPARAZZI_HOME&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;''your paparazzi3 directory''&lt;br /&gt;
 export PAPARAZZI_SRC&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;''your paparazzi3 directory''&lt;br /&gt;
}}&lt;br /&gt;
If you wish to manually set the env variables (i.e. when compiling a backup copy of your code in a different folder) execute the following command from the folder you wish to set as your active paparazzi folder:&lt;br /&gt;
 export PAPARAZZI_HOME=`pwd`;export PAPARAZZI_SRC=`pwd`&lt;br /&gt;
Verify that your variables are set correctly with the following command:&lt;br /&gt;
 env | grep PAPARAZZI&lt;br /&gt;
which should return the following:&lt;br /&gt;
 PAPARAZZI_HOME&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;''your paparazzi3 directory''&lt;br /&gt;
 PAPARAZZI_SRC&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;''your paparazzi3 directory''&lt;br /&gt;
&lt;br /&gt;
== Setting access rights for USB download ==&lt;br /&gt;
&lt;br /&gt;
This may be required to flash the Paparazzi-boards directly thru USB. For flashing details, see [[Compiling]].&lt;br /&gt;
&lt;br /&gt;
Default linux rights may not allow standard (non root) users to directly access the USB bus. You will need to make yourself a member of a &amp;quot;group&amp;quot; and then create a &amp;quot;rule&amp;quot;, associated with that &amp;quot;group&amp;quot;. &amp;lt;br&amp;gt;&lt;br /&gt;
Make yourself a member of the ''plugdev'' group:&lt;br /&gt;
&lt;br /&gt;
 sudo adduser &amp;lt;your login&amp;gt; plugdev&lt;br /&gt;
&lt;br /&gt;
Logout and login again. Then add the following rule:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt; # all (fake VID 0x7070) LPCUSB devices (access through libusb)&amp;lt;br&amp;gt;&lt;br /&gt;
BUS==&amp;quot;usb&amp;quot;, SYSFS{idVendor}==&amp;quot;7070&amp;quot;, GROUP=&amp;quot;plugdev&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The file ''10-paparazzi.rules'' contains the above rule as well as other related rules.  Simply copy it as root from $PAPARAZZI_HOME/conf/system/udev/rules/ to /etc/udev/rules.d/&lt;br /&gt;
&lt;br /&gt;
 su -&lt;br /&gt;
 cp $PAPARAZZI_HOME/conf/system/udev/rules/10-paparazzi.rules /etc/udev/rules.d/&lt;br /&gt;
 &amp;lt;i&amp;gt;exit su with &amp;quot;&amp;lt;b&amp;gt;Ctrl-D&amp;lt;/b&amp;gt;&amp;quot;&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Software Updates ==&lt;br /&gt;
Paparazzi is a very rapidly evolving project and as such, you will find that variables and functions are frequently added, changed, or removed.  Update your software with care and caution, and always test the functionality on the ground and in the air as some updates will affect tuning parameters.  Your airframe file will not be updated by the CVS system and therefore any new or modified variable names will need to be added manually.  The compiler will usually identify the problem variables at which point you can look at some of the most recent airframe files on the CVS to find the proper syntax.  See the [[Compiling]] page for more help if needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
That said, keeping your software up to date is easy with the CVS system.  The system will compare all source code files with the server and update any that are needed, automatically merging any minor changes that you have incorporated along the way.&lt;br /&gt;
&lt;br /&gt;
To download and automatically merge any updated source files, run the following command from your Paparazzi directory&lt;br /&gt;
 cvs update -d&lt;br /&gt;
where the &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; is needed to get any new directories.&lt;br /&gt;
&lt;br /&gt;
After any CVS update or source code modification the code can be recompiled from ''your paparazzi3 directory'' with the following command:&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
The ''make'' command will only recompile portions of the software where changed have been detected.  If it does not behave as expected you can deleted all compiled files and recompile from scratch with the following commands:&lt;br /&gt;
&lt;br /&gt;
 make clean&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
See the [[Compiling]] page for more info.&lt;br /&gt;
&lt;br /&gt;
Users making changes to their code structure may prefer to have more control over the updating and merging process and may wish to install and use '''tkcvs''' instead which provides highlighted comparisons of any files that differ between your code and the CVS server and allows for a file by file update.&lt;br /&gt;
&lt;br /&gt;
To update your Linux distribution as well as any dependencies of Paparazzi (seldom necessary), run the following as root:&lt;br /&gt;
 apt-get update&lt;br /&gt;
 apt get upgrade&lt;br /&gt;
&lt;br /&gt;
== LiveCd ==&lt;br /&gt;
&lt;br /&gt;
The LiveCD is an easy way to test Paparazzi: no installation is required and no changes are made to your computer.  Simply burn the image as a boot CD and reboot!  The LiveCD includes Linux and the complete paparazzi binary package (code source, tools and cross compilers).  It is intended for demonstration only and not frequently updated but it contains the complete system and can store changed files on a pen drive or compressed file on your hard drive so that it can compile, flash, and operate any aircraft, albeit slowly.  &lt;br /&gt;
 &lt;br /&gt;
The CD image is available from the [[Downloads|Downloads]] page.&lt;br /&gt;
&lt;br /&gt;
The Paparazzi demo is launchable on the Live CD from the Paparazzi icon.&lt;br /&gt;
&lt;br /&gt;
Knoppix allows for all the user data to be saved on a hard disk partition (most file systems are supported) or on a removable device (typically a USB pendrive). Note that this action is not destructive: the user data tree is compressed and stored on your file system as a single file (&amp;lt;tt&amp;gt;knoppix.img&amp;lt;/tt&amp;gt;).&lt;br /&gt;
* From the Knoppix menu (second from bottom left), choose '''Configure''', '''Create a persistent KNOPPIX disk image'''&lt;br /&gt;
* Choose your media (be sure to connect your USB pendrive before booting!)&lt;br /&gt;
* Choose if you want an encrypted filesystem (to protect your flight plan designed for the next MAV competition :-) )&lt;br /&gt;
* Choose the size of your home directory (100Mb is recommended)&lt;br /&gt;
On the next reboot, this saved state will be automatically located and loaded.&lt;br /&gt;
&lt;br /&gt;
Using this persistent feature, the Paparazzix Live CD can really be used to configure, simulate and fly an aircraft with the Paparazzi system.&lt;br /&gt;
&lt;br /&gt;
The Live CD can also be used to install a Debian system on the hard disk, using the &amp;lt;tt&amp;gt;knoppix-installer&amp;lt;/tt&amp;gt; command. Be sure to backup the hard disk before trying ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Lightscribe_CD_Cover_1.JPG|thumb|320px|LightScribe CD Cover]] A LiveCD needs some looks... In color or in LightScribe format, your CD will always look cool. &lt;br /&gt;
* Get the PDF version for download here [http://paparazzi.enac.fr/wiki_images/Lightscribe_CD_Cover_1.pdf LightScribe CD Cover 1].&lt;br /&gt;
&lt;br /&gt;
* The LightScribe version is in Nero Cover Design format (.ncd) and it's here for download [http://paparazzi.enac.fr/wiki_images/Lightscribe_CD_Cover_1.zip LightScribe CD Cover 1]&lt;/div&gt;</summary>
		<author><name>Dirkx</name></author>
	</entry>
</feed>