i have two usbasp device, they have stopped working. I use AVRDUDES to upload code on atmega avrs.
owing to some error in one to one connections on a icsp header these have stopped uploading and the error is
avrdude.exe done. Thank you.
WARNING: Unable to detect MCU
avrdude.exe: error: could not find USB device with vid=0x16c0 pid=0x5dc vendor='www.fischl.de' product='USBasp'
avrdude.exe done. Thank you.
i put one of them on self prog mode and uploaded the Arduinoisp sketch to my arduino uno.
the upload is successful
I then hook up connections as
USBASP Arduino
2 5V
10 GND
7 13
9(MISO) 12
1(MOSI) 11
5(RESET) 10
In the command prompt window
this command is entered
D:\Arduino_1.8.9\arduino-1.8.9\hardware\tools\avr\bin> avrdude -C..\etc\avrdude.conf -c avrisp -P COM7 -b 19200 -p m8 -V
and the out put is
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.04s
avrdude: Device signature = 0x1e9307 (probably m8)
avrdude: safemode: Sorry, reading back fuses was unreliable. I have given up and exited programming mode
avrdude done. Thank you.]
I have not been able to understand why this error is generated, AVR not happy.
Seek inputs from senior members please.
I bought a new USBASP and the response is the same. Leads me to think that the problem is elsewhere, perhaps the drivers need to be reinstalled. Will update after having reinstalled the drivers.
I think you want pin 10 of the Arduino to be connected to the USBAsp reset pin - not the pin of the USBAsp that gets connected to the target. Is that what you have connected to it?
DrAzzy:
I think you want pin 10 of the Arduino to be connected to the USBAsp reset pin - not the pin of the USBAsp that gets connected to the target. Is that what you have connected to it?
Thanks for your question DrAzzy.
That was the case in my first post where i thought i need to reload the firmware on my usbasp.
but in my post #2 i am using avrdude to write the hex file onto a an atmega8(target) connected to the usbasp with a FRC cable with 10 pin connectors at both ends.
As per the response of the averdude command the write is successful but there is a read error.
Thanks for the info. It's may be helpful to others who are having the same issue and find this thread in their search for a solution. I also have found that changing from the libusb-win32 driver to the libusbK driver fixes the problem with the USBasp:
I also have found that changing from the libusb-win32 driver to the libusbK driver fixes the problem with the USBasp.
[\quote]
It is funny but now my Arduino clone is also recognised as a libusbK device and the port under tools is greyed.
How do I get the ports back in the Arduino IDE?
You must have accidentally installed the libusbK driver to your Arduino. To fix this:
Plug your Arduino board into your computer.
Start Windows Device Manager
Expand the "libusbK USB devices" section of the Device Manager tree.
Right click on the Arduino board under the "libusbK USB devices" section.
Click "Uninstall Device".
Click the "Uninstall" button.
Wait for the uninstall to finish.
Unplug your Arduino board from your computer.
Wait for Device Manager to update.
Plug your Arduino board into your computer. You should now see the board under the "Ports (COM and LPT)" section of the Device Manager tree with an assigned COM port as normal.
per1234 commented on Aug 3, 2016 @bperrybap thanks for looking into this. I'm not sure when I'll have time to look into building avrdude from source, etc. I know that's lame but the issues caused by the last Arduino release have been eating up all the time I can contribute to Arduino and much more. I'm obligated to put priority on getting all the 3rd party boards projects I'm involved with fixed ASAP.
I hope the information I provided and the work you've done will help others. I'm happy to provide any more information requested.
If anyone reading this has Windows and a USBasp it would be great if you could see if you can reproduce this issue to make sure it isn't something specific to my computers:
Download Zadig from http://zadig.akeo.ie/
Plug the USBasp into your computer
Start Zadig
Options > List all devices
Select USBasp from the dropdown menu
Select libusb-win32 (v1.2.6.0)
Click Install
Start Arduino IDE
Install Arduino AVR Boards 1.6.12 in Tools > Boards > Boards Manager if you're using a previous version
Unplug USBasp
Connect the USBasp to your Arduino
Plug the USBasp into your computer
Tools > Board > select your Arduino
Tools > Programmer > USBasp
Tools > Burn Bootloader
I upload the bootloader and now my board shows up in device manager as a USB serial device (COM5)
Port option is selectable under tools menu.
Now my boards are good to go!
Thanks for your inputs pert.
The most noticeable advantage of the peterVH/bperrybap USBasp firmware is that it allows you to do Upload Using Programmer to chips with a lot of flash memory like the ATmega2560:
I like that firmware because it solves the one flaw I ever encountered with the USBasp, but it's also fairly rare for people to want to Upload Using Programmer to an ATmega2560, so the stock firmware will work fine for most. I actually don't have much experience with the official firmware from fischl.de. I've mostly worked with either the "Baite" firmware that comes on the common 6 pin USBasp from eBay, or the peterVH/bperrybap firmware.
It's proprietary (probably in violation of the USBasp open source license). They lock the flash memory on the USBasp so that you can't download it. So the only way to have the firmware is to buy one of the Chinese USBasp, like this one: