Note Debug is not supported yet
- Open the project with CLion
- Setup a new CLion Toolchain (i.e. set compilators and debugger location) with your AVR8 GNU installation (Settings -> Build, Execution, Deployment -> Toolchains).
You may use either
avr-gdb-py
oravr-gdb
. First one is better but requires Python to be installed.
- Use the toolchain for the project (Settings -> Build, Execution, Deployment -> CMake -> Toolchain:)
- Adjust CMakeLists.txt settings, such as avrdude location and actual COM port
- Select FLASH run configuration
- Build it. Arduino yellow LED should start blinking about 1Hz
- Install the simulator
- Linux, Mac, see https://github.com/buserror/simavr
- Windows install (https://sourceforge.net/projects/simutron/files/), simavr comes with it
- Open the project with CLion
- Setup AVR toolchain and CMake as above
- Open SIMAVR Run Configuaration and set actual path to simavr executable
- Set a breakpoint somewhere in your main()
- Select SIMAVR Run Configuaration
- Click Debug
- Enjoj!
- Uncomment avrdude verbose switch
- Check if this repository contains a branch dedicated to your CPU
- Clone this project
- Make adjustments as in "Use the project"
- Open the project with CLion
- Correct CMakeLists.txt
- Project name in add_executable() clause
- List of source files in add_executable clause
- add include_directories() clause(s) if needed
- TARGET_CPU
- FLASH custom target command line to reflect another hardware