tar xvzf usbasp.2011-05-28.tar.gz
cd usbasp.2011-05-28/firmware
patch <full/path/of/usbasp-pdi-usbaspfirmware-20120816.diff
make main.hex
svn co svn://svn.sv.gnu.org/avrdude/trunk -r 1092
cd trunk/avrdude
patch <full/path/of/usbasp-pdi-avrdude2091-20120816.diff
./bootstrap
./configure
make
*
./avrdude -C avrdude.conf -c usbasp -p x16a4 -U flash:w:../../../xmega/xmegatest.hex -E noreset
*
avrdude: AVR device initialized and ready to accept instructions
*
Reading | ################################################## | 100% 0.02s
*
avrdude: Device signature = 0x1e9441
avrdude: NOTE: Programmer supports page erase for Xmega devices.
Each page will be erased before programming it, but no chip erase is performed.
To disable page erases, specify the -D option; for a chip-erase, use the -e option.
avrdude: reading input file "../../../xmega/xmegatest.hex"
avrdude: input file ../../../xmega/xmegatest.hex auto detected as Intel Hex
avrdude: writing flash (440 bytes):
*
Writing | ################################################## | 100% 0.29s
*
avrdude: 440 bytes of flash written
avrdude: verifying flash memory against ../../../xmega/xmegatest.hex:
avrdude: load data flash data from input file ../../../xmega/xmegatest.hex:
avrdude: input file ../../../xmega/xmegatest.hex auto detected as Intel Hex
avrdude: input file ../../../xmega/xmegatest.hex contains 440 bytes
avrdude: reading on-chip flash data:
*
Reading | ################################################## | 100% 0.27s
*
avrdude: verifying ...
avrdude: 440 bytes of flash verified
*
avrdude done. Thank you.
After a long and hard time, I managed to compile the usbasp firmware under Windows (atmel studio 6.0 installed to use avrdude and make). And to compile a patched avrdude (r1092) under Windows with MinGW.
avrdude.exe: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
thanks for your attach file.
i think "initialization failed, rc=-1" error is about connection between ATMega8 and target chip, this connection must be check :
SCK
MISO
MOSI
RST
Vcc
GND
Dear Montspy
i tested your HEX file and AVRDUDE with USB2.0 port and ATMega16 and ATXMega128A1.
i can program ATMega16 without problem. but when i tried to program ATXMega128A1 i got below errors : (aatached image)
i think your AVRDUDE patch has an problem. what is your idea?
Exact same error. What is your USB 2.0 ports controller ? (Do you have USB 3.0 to test ? I know it's weird).
tpetar : My IC is solder on a custom made board with PDI standard 6 pins header. Then I have the adapter board (with the 2* 220 Ohm resistors). Every connection is solid (connectors and cables), no breadboard or anything. My connections are not the problem. I'll try to power the board from another 3.3V line than from the USPasp.
Val'
My post is linked with Vermes first post in thread. I post suggestion for uC socket adapter to maintain uC pins in good shape.
Regards,
Peter
:wink:
Go to Device Manager, you have something like USB bus controller. Open it, and you we'll see.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?