CompilingApps.txt 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /** \file
  2. *
  3. * This file contains special DoxyGen information for the generation of the main page and other special
  4. * documentation pages. It is not a project source file.
  5. */
  6. /** \page Page_CompilingApps Compiling the Demos, Bootloaders and Projects
  7. *
  8. * The following details how to compile the included LUFA demos, applications and bootloaders using AVR-GCC.
  9. *
  10. * \section Sec_CompilingApps_Prerequisites Prerequisites
  11. * Before you can compile any of the LUFA library code or demos, you will need a recent distribution of avr-libc (1.6.2+)
  12. * and the AVR-GCC (4.2+) compiler. A standard "coreutils" package for your system is also required for command line
  13. * compilation of LUFA based applications.
  14. *
  15. * \subsection SSec_CompilingApps_PreqWindows Windows Prerequisites
  16. * On Windows, you will need a copy of the latest Atmel Toolchain (<a>http://www.atmel.com/tools/ATMELAVRTOOLCHAINFORWINDOWS.aspx</a>),
  17. * either downloaded and installed as a standalone package, or installed as part of Atmel Studio. You will need to ensure
  18. * that the "bin" directory of the toolchain is available in your system's <b>PATH</b> environment variable.
  19. *
  20. * In addition, you will need to install a ported version of the ZSH or BASH *nix shells, and a standard set of *nix
  21. * utilities such as <i>cut</i>, <i>find</i> and <i>sed</i>. These can be found in the "basic" system package of the
  22. * of the MinGW installer (<a>http://www.mingw.org</a>). Once installed, add the "msys\1.0\bin" of the MinGW installation
  23. * folder is added to your system's <b>PATH</b> environment variable.
  24. *
  25. * \subsection SSec_CompilingApps_PreqLinux Linux Prerequisites
  26. * On Linux systems you will need to install the latest Linux distribution of the standalone Atmel Toolchain from the
  27. * Atmel website (<a>http://www.atmel.com/tools/ATMELAVRTOOLCHAINFORLINUX.aspx</a>), or use the latest avr-libc and avr-gcc packages
  28. * for your chosen distribution's package manager. For full device support, the Atmel standalone Toolchain package is recommended.
  29. *
  30. * \section Sec_CompilingApps_Compiling Compiling a LUFA Application
  31. * Compiling the LUFA demos, applications and/or bootloaders is very simple. LUFA comes with makefile scripts for
  32. * each individual demo, bootloader and project folder, as well as scripts in the Demos/, Bootloaders/, Projects/
  33. * and the LUFA root directory. Compilation of projects can be started from any of the above directories, with a build
  34. * started from an upper directory in the directory structure executing build of all child directories under it. This
  35. * means that while a build inside a particular demo directory will build only that particular demo, a build started from
  36. * the /Demos/ directory will build all LUFA demo projects sequentially.
  37. *
  38. * To build a project from the source via the command line, the command <b>"make all"</b> should be executed from the command
  39. * line in the directory of interest. To remove compiled files (including the binary output, all intermediately files and all
  40. * diagnostic output files), execute <b>"make clean"</b>. Once a "make all" has been run and no errors were encountered, the
  41. * resulting binary will be located in the generated ".HEX" file. If your project makes use of pre-initialized EEPROM
  42. * variables, the generated ".EEP" file will contain the project's EEPROM data.
  43. *
  44. * \see \ref Page_BuildSystem for information on the LUFA build system.
  45. */