Im using Linux Mint with avrdude and avr-gcc installed. Im trying to upload this program to Arduino Leonardo. I got it to compile just fine, but make avrdude command (in linux terminal) returns timeout(). Uploading works fine through Arduino IDE.
I tried numerous ways to get avrdude to upload by resetting the Arduino:
1.) Connect GND-RESET OR 1click reset btn before uploading = using this method Arduino resets, but upon initializing "sees" that the ttyACM0 port is being used (by avrdude trying to upload the program), and it just switches to ttyACM1!
2.) Double click reset button puts the Leonardo in -LED 13 fading for some seconds- mode, that (at least on Linux) while it lasts seems to just not have any port opened, so that avrdude just fails because there is no port opened.
I also tried changing the programmers (avrisp, avrispmkII, avr109) in the makefile. Still the same error, just said differently - the avrdude run from terminal just cant upload to arduino