Go to file
Alan Dragomirecký c58a5298d6
Fix clang format settings
2021-04-14 16:39:20 +02:00
cmake Initial support for AnyAvrGcc toolchain 2021-04-13 10:17:03 +02:00
src Prepare main.cpp 2021-04-14 10:11:46 +02:00
tests Prepare parts of the build system 2021-04-13 08:24:43 +02:00
utils build.py: Switch to AnyAvrGcc.cmake 2021-04-14 16:29:26 +02:00
.clang-format Fix clang format settings 2021-04-14 16:39:20 +02:00
.cmake-format.py Prepare parts of the build system 2021-04-13 08:24:43 +02:00
.gitignore Prepare parts of the build system 2021-04-13 08:24:43 +02:00
.pre-commit-config.yaml Prepare parts of the build system 2021-04-13 08:24:43 +02:00
CMakeLists.txt Set correct MCU ID + output HEX files 2021-04-14 09:16:55 +02:00
README.md Add basic building instructions 2021-04-14 09:23:11 +02:00
version.txt Prepare parts of the build system 2021-04-13 08:24:43 +02:00

README.md

Prusa-Firmware-MMU-Private

How to prepare build env and tools

Use tools from the Buddy FW and a separate Atmel AVR GCC 5.4.

Extract the AVR-GCC to some dir, e.g. /home/user/AVRToolchainMMU/avr8-gnu-toolchain-5.4.0

mkdir .dependencies
cd .dependencies
ln -s ../../STM32Toolchain/clang-format-9.0.0-noext
ln -s ../../STM32Toolchain/cmake-3.15.5
ln -s ../../STM32Toolchain/ninja-1.9.0
ln -s ../../AVRToolchainMMU/avr8-gnu-toolchain-5.4.0

How to build the preliminary project so far:

Please make sure you have your cmake, clang-format and ninja in path

mkdir build
cd build
cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE=../../cmake/AnyAvrGcc.cmake
ninja

Should produce a firmware.hex file