Ok, now it's partially fixed. I'm still just sending it a while loop, but now it writes. It seems that avrdude was looking for the cproject, not the hex file. So I changed this:
Code: Select all
-c usbtiny -p m328p -U flash:w:$(ProjectFileName).hex
to this:
Code: Select all
-c usbtiny -p m328p -U flash:w:$(ProjectFileName)
and didn't modify anything else. However, now when it attempts to verify, I get a couple errors. Here is the entire avrdude output:
Code: Select all
avrdude.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude.exe: Device signature = 0x1e9206
avrdude.exe: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude.exe: erasing chip
avrdude.exe: reading input file "3AC.cproj"
avrdude.exe: input file 3AC.cproj auto detected as raw binary
avrdude.exe: writing flash (4096 bytes):
Writing | ################################################## | 100% 2.76s
avrdude.exe: 4096 bytes of flash written
avrdude.exe: verifying flash memory against 3AC.cproj:
avrdude.exe: load data flash data from input file 3AC.cproj:
avrdude.exe: input file 3AC.cproj auto detected as raw binary
avrdude.exe: input file 3AC.cproj contains 4096 bytes
avrdude.exe: reading on-chip flash data:
Reading | ################################################## | 100% 2.14s
avrdude.exe: verifying ...
avrdude.exe: verification error, first mismatch at byte 0x0000
0xef != 0x00
avrdude.exe: verification error; content mismatch
avrdude.exe: safemode: lfuse changed! Was 62, and is now 0
Would you like this fuse to be changed back? [y/n]
Also, another problem is that I can't tell avrdude to change the fuse back or not since it's in the output window.