I just now started getting errors from avrdude after flashing a chip.
I had gotten an error 139 from make
Makefile:17: recipe for target 'program' failed make: *** [program] Error 139
Now, it appeared that the programming and verification went okay, just this strange error that didn't seem to make sense. So I purged avrdude and reinstalled it. Now I get the following, which looks like a bug in avrdude maybe but again ... programming seems to have succeded.
*** Error in `avrdude': free(): invalid next size (normal): 0x000000000112c720 *** Makefile:17: recipe for target 'program' failed make: *** [program] Error 134
This is my Makefile that was used when the error was produced:
hexclock.hex : hexclock.elf avr-objcopy -j .text -j .data -j .bss -O ihex hexclock.elf hexclock.hex hexclock.elf : hexclock.o avr-gcc -mmcu=attiny2313a -Wall -Werror -o hexclock.elf hexclock.o -Wl,-Map,hexclock.map hexclock.o : hexclock.c avr-gcc -c -Os -mmcu=attiny2313a -std=gnu99 -fshort-enums -Wall -Werror -o hexclock.o hexclock.c clean : rm -f hexclock.o hexclock.elf hexclock.map hexclock.hex hexclock.s program : sudo avrdude -v -p attiny2313 -c usbtiny -P usb -U flash:w:hexclock.hex:i asm: avr-gcc -S -Os -mmcu=attiny2313a -std=gnu99 -fshort-enums -Wall -Werror -o hexclock.s hexclock.c
I have never gotten these errors before. Here is the entire verbose output from avrdude (and make ... at the end of it all): http://pastebin.com/dN8aByEv. Thanks in advance to the ones that can help me fix this, or at least tell me what is wrong.