All Projects → mkleemann → Cmake Avr

mkleemann / Cmake Avr

Licence: other
cmake toolchain for AVR

Labels

Projects that are alternatives of or similar to Cmake Avr

Chip8cpp
Chip-8 Emulator in C++
Stars: ✭ 125 (-8.76%)
Mutual labels:  cmake
Example Cpp11 Cmake
Stars: ✭ 129 (-5.84%)
Mutual labels:  cmake
Notepanda
📃 A simple cross-platform notepad. Based on Qt and C++.
Stars: ✭ 134 (-2.19%)
Mutual labels:  cmake
Openage
Free (as in freedom) open source clone of the Age of Empires II engine 🚀
Stars: ✭ 10,712 (+7718.98%)
Mutual labels:  cmake
Warzone2100
Command the forces of The Project in a battle to rebuild the world after mankind has been nearly destroyed by nuclear missiles. A 100% free and open source real-time strategy game for Windows, macOS, Linux, BSD+
Stars: ✭ 2,094 (+1428.47%)
Mutual labels:  cmake
Racecar gazebo
A gazebo-based simulator of the MIT Racecar.
Stars: ✭ 130 (-5.11%)
Mutual labels:  cmake
Arduino Cmake Ng
CMake-Based framework for Arduino platforms
Stars: ✭ 123 (-10.22%)
Mutual labels:  cmake
Cmakeprotosgrpc
gRPC + protobuf using CMake example
Stars: ✭ 137 (+0%)
Mutual labels:  cmake
F4mp
Stars: ✭ 130 (-5.11%)
Mutual labels:  cmake
Gemm hls
Scalable systolic array-based matrix-matrix multiplication implemented in Vivado HLS for Xilinx FPGAs.
Stars: ✭ 134 (-2.19%)
Mutual labels:  cmake
Opencv4androidwithcmake
Use Android Studio 3.0 (>=2.2) and Cmake Toolchain to make your Android device fly with Opencv (OpenCV 3.40)
Stars: ✭ 126 (-8.03%)
Mutual labels:  cmake
Ffmpeg Development Kit
Stars: ✭ 127 (-7.3%)
Mutual labels:  cmake
Cmake Example
Example project which demonstrates various CMake features.
Stars: ✭ 131 (-4.38%)
Mutual labels:  cmake
Ros Travis Integration
ROS package continuous integration using travis-CI
Stars: ✭ 125 (-8.76%)
Mutual labels:  cmake
Blt
A streamlined CMake build system foundation for developing HPC software
Stars: ✭ 135 (-1.46%)
Mutual labels:  cmake
Core
parallel finite element unstructured meshes
Stars: ✭ 124 (-9.49%)
Mutual labels:  cmake
Limited Systems
Limited Systems
Stars: ✭ 132 (-3.65%)
Mutual labels:  cmake
Cmake
Common CMake modules
Stars: ✭ 137 (+0%)
Mutual labels:  cmake
Sdl2 Examples
Examples for getting started with SDL2, for over 12 different programming languages
Stars: ✭ 136 (-0.73%)
Mutual labels:  cmake
Hlslib
A collection of extensions for Vivado HLS and Intel FPGA OpenCL to improve developer quality of life.
Stars: ✭ 131 (-4.38%)
Mutual labels:  cmake

cmake-avr - a cmake toolchain for AVR projects

Testing the example provided

The toolchain was created and tested within the following environment:

Linux

  • Arch Linux with kernel 3.12.5-1-ARCH up to 3.16.2-1-ARCH
  • cmake version 2.8.12.1 - 3.0.2
  • GNU Make 4.0
  • avr-gcc (GCC) 4.8.2 - 4.9.1
  • avr-binutils 2.23.2-1 - 2.24-2
  • avr-libc 1.8.0-5 - 1.8.1-1
  • git version 1.8.5.2 - 2.1.0

Windows XP

  • cmake version 2.8.10.2
  • GNU Make 3.81
  • avr-gcc (AVR_8_bit_GNU_Toolchain_3.4.1_798) 4.6.2 (Atmel Studio 6)
  • avr-binutils AVR_8_bit_GNU_Toolchain_3.4.1_798 (Atmel Studio 6)
  • avr-libc AVR_8_bit_GNU_Toolchain_3.4.1_798 (Atmel Studio 6)
  • git version 1.7.11.msysgit.1

Windows 7

  • cmake 3.0.2
  • Atmel Studio 6.2
  • git 1.9.0.msysgit

OS X

  • OS X 10.10 with AVR toolchain installed from macports
  • cmake 3.0.2
  • GNU Make 3.81
  • avr-gcc 4.9.1
  • avr-libc 1.8.1
  • avr-binutils 2.24_1
  • git version 2.1.2

Note: If building in a Windows environment, you need to extent the values of the environment variable PATH to the location of the binaries, especially to find make. To enable a more general approach to different Windows toolchains, the variable AVR_FIND_ROOT_PATH needs to be defined. Tested was it with the following setup (XP):

PATH=...;d:/Program Files/Atmel/Atmel Studio 6.0/extensions/Atmel/AVRGCC/3.4.1.81/AVRToolchain/bin;...
AVR_FIND_ROOT_PATH="d:/Program Files/Atmel/Atmel Studio 6.0/extensions/Atmel/AVRGCC/3.4.1.81/AVRToolchain/avr"

Issue within Windows 7 environment With Windows 7 (64bit) and the Atmel Studio 6.2 setup, make.exe now resides differently. It also crashes during the cmake generation process, just after the simple examples to test the compiler (try_compile(...)) ran through. The why and avoidance of this is currently unknown to me. I didn't try to use a cygwin make as a substitute yet.

After getting the project

git clone [email protected]:mkleemann/cmake-avr.git /path/to/clone/in

you just need to run the following commands

mkdir -p /path/to/some/build/dir
cd /path/to/some/build/dir
cmake -DCMAKE_TOOLCHAIN_FILE=/path/to/clone/in/generic-gcc-avr.cmake /path/to/clone/in/example
make

For Windows use:

cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=/path/to/clone/in/generic-gcc-avr.cmake /path/to/clone/in/example

This just creates the example, but does not upload it. For all possible targets, you need to run

make help

after running the cmake command.

ToDo

  • [X] option for target name attachments with MCU type (option -DWITH_MCU=ON (default))
  • [X] usage of target names w/o extension for avr_target_link_libraries command
  • [X] cleanup baudrate and other AVRDUDE settings
  • [X] test in Windows environment
  • [X] use add_definition() instead of variables for compiler settings
  • [X] some more tests with upload and fuses
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].