avrdude crashes when eeprom is read
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
avrdude (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 14.04.1 i386
avrdudude 6.0.1-1
I try to read EEPROM from Arduino board (ATmega328p) with USBtiny ISP programmer.
FIRST
It crashed regularly. There is a report that free() detected memory allocation problem. EEPROM is empty, all 0xff; this can be important to replicate this crash.
# avrdude -c usbtiny -p m328p -U eeprom:r:xx.bin:r
avrdude: AVR device initialized and ready to accept instructions
Reading | #######
avrdude: Device signature = 0x1e950f
avrdude: reading eeprom memory:
Reading | #######
avrdude: writing output file "xx.bin"
avrdude: safemode: Fuses OK (H:05, E:DA, L:FF)
avrdude done. Thank you.
*** Error in `avrdude': free(): invalid next size (normal): 0x093d5360 ***
Aborted (core dumped)
SECOND
When I write data to EEROM, it can be all 0xff, I read back different data and verification fails. It is good that it is detected but 100% of EEPROM is read to find that the first byte doesn't match. This can be improved, USBtiny is slow...
THIRD
Write data to EEPROM doesn't work, see previous point.
# avrdude -c usbtiny -p m328p -U eeprom:w:xx.bin:r
I tried USBasp programmer to the the same with Arduino and it works good so my troubles are related to USBtiny programmer. I cannot say if problem is in avrdude or in firmware of USBtiny programmer.
While this is Electronics, but does it belong to the ubuntu-hams-devel group? It looks like a direct import, as the maintainer is from Debian.