This is a repository which helps you to build your Arduino Due code without using Arduino IDE.
- Based on CMake
- Build your Arduino code without Arduino IDE
- Added FreeRTOS support
- Download Arduino for Linux
- Run Arduino IDE and download Arduino Due in board manager. (This will download SAM libraries and toolchains)
$ ./new_project.sh
New project directory name:test
$ cd test
$ cmake .
$ make
If you want to upload code to Arduino Due, run this second step
$ make upload
If you want verbose output, use
$ cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON .
.
├── cmake_include
│ ├── header_inc.cmake
│ ├── libraries.cmake
│ ├── toolchain.cmake
│ └── uploader.cmake
├── CMakeLists.txt
├── inc <- !Put your header files here!
│ ├── due_sam3x.h
│ └── due_sam3x.init.h
├── includes.list <- !Path included while building the project!
├── libraries.list <- !Libraries included!
├── scripts
│ ├── find_file.sh
│ ├── find_inc.sh
│ └── find_src.sh
└── src <- !Put your source files here!
└── main.cpp
Please let me know if you experience issues with this.