This template allows you to easily start an avr project. It is currently set up for an ATMEGA328P but can easily be switched. To switch the processor change the AVR_MCU variable in CMakeLists.txt
.
Simply run:
./setup.sh
in the project directory
To the project:
cd bin
cmake ../
make
# Optionally
make upload_test
- Add option to make debug symbol file paths relative or not (right now it is fixed to relative)
The generic-gcc-avr.cmake
toolchain file is from this github repo. It has been modified a bit to properly output debug symbols (that use relative paths). This was mainly done so that compiling on WSL would still make symbols load properly on Windows.