Im on Linux (ElementaryOS) and thiis is my Makefile:
After reset button is pressed I try to upload the program, this is the avrdude output:all:
avr-gcc -O1 -mmcu=atmega32u4 -Wall -c main.c -o main.out
avr-objcopy -O ihex main.out main.hex
upload:
avrdude -p m32u4 -P /dev/ttyACM0 -c avr109 -U main.hex
clean:
rm -f main.out
Any suggestion?avrdude -p m32u4 -P /dev/ttyACM0 -c avr109 -U main.hex
Connecting to programmer: .
Found programmer: Id = "LUFACDC"; type = S
Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.
Programmer supports the following devices:
Device code: 0x44
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9587
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "main.hex"
avrdude: input file main.hex auto detected as Intel Hex
avrdude: writing flash (46 bytes):
Writing | ################################################## | 100% 0.01s
avrdude: 46 bytes of flash written
avrdude: verifying flash memory against main.hex:
avrdude: load data flash data from input file main.hex:
avrdude: input file main.hex auto detected as Intel Hex
avrdude: input file main.hex contains 46 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.00s
avrdude: verifying ...
avrdude: 46 bytes of flash verified
avrdude: safemode: Fuses OK (H:C3, E:D0, L:FC)
avrdude done. Thank you