User Tools

Site Tools


projects:crazyflie:devenv:index

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
projects:crazyflie:devenv:index [2012-11-15 21:07]
arnaud [Setup on Ubuntu 10.04 LTS / 11.10]
projects:crazyflie:devenv:index [2013-06-07 09:48]
macke
Line 3: Line 3:
 ===== Software Tools ===== ===== Software Tools =====
 ==== Software used ==== ==== Software used ====
-The following software is in the Crazyflie development environment toolchain: +The following software are used by the Crazyflie development environment toolchain: 
-  * [[http://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/|Sourcery CodeBench (formally known as Sourcery G++) Lite]] +  * [[https://launchpad.net/gcc-arm-embedded/+download| 
-  * [[http://http://openocd.sourceforge.net/|openOCD]]+GNU Tools for ARM Embedded Processors]] 
 +  * [[http://openocd.sourceforge.net/|openOCD]]
 These are available for both Windows and Linux. These are available for both Windows and Linux.
  
Line 26: Line 27:
 <code> <code>
 SUBSYSTEM=="usb", ATTRS{idVendor}=="1915", ATTRS{idProduct}=="7777", MODE="0664", GROUP="plugdev" SUBSYSTEM=="usb", ATTRS{idVendor}=="1915", ATTRS{idProduct}=="7777", MODE="0664", GROUP="plugdev"
 +SUBSYSTEM=="usb", ATTRS{idVendor}=="1915", ATTRS{idProduct}=="0101", MODE="0664", GROUP="plugdev"
 </code> </code>
  
 +==== Setup on Ubuntu 13.04 ====
 +Most of the software that you will need is now available from the repositories so just run the following command to install it:
 +<code>
 +sudo apt-get -y install mercurial python2.7 python-usb python-pygame python-qt4 qt4-designer openocd build-essential
 +</code>
  
 +Run the following to download, unpack and copy the ARM Embedded toolchain:
 +<code>
 +wget https://launchpad.net/gcc-arm-embedded/4.7/4.7-2013-q1-update/+download/gcc-arm-none-eabi-4_7-2013q1-20130313-linux.tar.bz2
 +tar xjf gcc-arm-none-eabi-4_7-2013q1-20130313-linux.tar.bz2
 +mkdir ~/bin
 +mv gcc-arm-none-eabi-4_7-2013q1 ~/bin/gcc-arm-none-eabi
 +</code>
  
-==== Setup on Ubuntu 10.04 LTS 11.10 ====+And then also add the binaries to your path: 
 +In order for the build system to find the toolchain when building the firmware it has to be added to the path: 
 +<code> 
 +echo -e "\nPATH=\$PATH:$HOME/bin/gcc-arm-none-eabi/bin" >> ~/.bashrc 
 +source ~/.bashrc 
 +</code>
  
-TBD 
 ==== Setup on Windows ==== ==== Setup on Windows ====
  
 +TBD
 ===== Compiling the copter code ===== ===== Compiling the copter code =====
  
Line 50: Line 69:
 A couple of variables can be set on the command line or shell environment to configure the build process: A couple of variables can be set on the command line or shell environment to configure the build process:
 ^  Variable ^  Default value  ^ Usage ^ ^  Variable ^  Default value  ^ Usage ^
-|  CLOAD |             | If at 1 the firmware is liked to be used with the bootloader.            | +|  CLOAD |             | If at 1 the firmware is liked to be used with the bootloader.            | 
-|  DEBUG |             | If at 1 the firmware will be build without optimization and with debug symbol (the firmware is ~70K in debug mode and ~40K optimized). |+|  DEBUG |             | If at 1 the firmware will be build without optimization and with debug symbol (the firmware is ~70K in debug mode and ~40K optimized). |
 |  CROSS_COMPILE |   arm-none-eabi-   | Prefix of the cross compilation toolchain to use. Any bare arm GCC should do. The default value is good for the CodeSourcery toolchain. | |  CROSS_COMPILE |   arm-none-eabi-   | Prefix of the cross compilation toolchain to use. Any bare arm GCC should do. The default value is good for the CodeSourcery toolchain. |
 |  OPENOCD_INTERFACE |   interface/jtagkey.cfg   | JTAG interface configuration file to use with openOCD. Default is for the Amontec JtagKEY. | |  OPENOCD_INTERFACE |   interface/jtagkey.cfg   | JTAG interface configuration file to use with openOCD. Default is for the Amontec JtagKEY. |
projects/crazyflie/devenv/index.txt · Last modified: 2021-06-24 16:47 by kimberly