Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usbasp not work in 7.2, but work in 5.1 !!! #1567

Closed
Ku100vEvgen opened this issue Nov 11, 2023 · 4 comments
Closed

usbasp not work in 7.2, but work in 5.1 !!! #1567

Ku100vEvgen opened this issue Nov 11, 2023 · 4 comments
Labels
invalid This doesn't seem right

Comments

@Ku100vEvgen
Copy link

Ku100vEvgen commented Nov 11, 2023

Hi !

found trouble, usbasp not work in 7.2, but work in 5.1 !!!

SET PROG_PATH7="hardware\avrdude\avrdude-v7.2-windows-windows-x86\"
SET PROG_PATH5="hardware\avrdude\avrdude-v5\"

SET PROG_CFG1=-p m168p -c usbasp       -v -P usb -U flash:r:flash_dump.hex:i
SET PROG_CFG2=-p m168p -c usbasp-clone -v -P usb -U flash:r:flash_dump.hex:i

rem WORK !
%PROG_PATH5%\avrdude.exe %PROG_CFG1%
pause

rem FAIL1
%PROG_PATH7%\avrdude.exe %PROG_CFG1%
pause

rem FAIL2
%PROG_PATH7%\avrdude.exe %PROG_CFG2%
pause

WORK:

avrdude.exe: Version 5.10, compiled on Sep  9 2010 at 15:36:47
avrdude.exe: AVR device initialized and ready to accept instructions
             Programmer Type : usbasp
             Description     : USBasp, http://www.fischl.de/usbasp/
Reading | ################################################## | 100% 0.02s
avrdude.exe: Device signature = 0x1e940b
avrdude.exe: safemode: lfuse reads as EF
avrdude.exe: safemode: hfuse reads as D4
avrdude.exe: safemode: efuse reads as 1
avrdude.exe: reading flash memory:
....
avrdude.exe done.  Thank you.

FAIL1:

avrdude: Version 7.2
         Using Port                    : usb
         Using Programmer              : usbasp
avrdude usbasp_open() error: cannot find USB device with vid=0x16c0 pid=0x5dc ve
ndor='www.fischl.de' product='USBasp'
avrdude main() error: unable to open programmer usbasp on port usb
avrdude done.  Thank you.

FAIL2

avrdude: Version 7.2
         Using Port                    : usb
         Using Programmer              : usbasp-clone
avrdude usbasp_open() error: cannot find USB device with vid=0x16c0 pid=0x5dc
avrdude main() error: unable to open programmer usbasp-clone on port usb
avrdude done.  Thank you.
@Ku100vEvgen
Copy link
Author

Ku100vEvgen commented Nov 11, 2023

@mcuee mcuee added the unconfirmed Maybe a bug, needs to be reproduced by someone else label Nov 11, 2023
@mcuee
Copy link
Collaborator

mcuee commented Nov 11, 2023

Which usbasp FW are you using and which Windows device driver are you using?

It is recommend to use the following FW and WinUSB driver for avrdude 7.0 and later. If you want to use libusb0.sys driver (libusb-win32), please upgrade to 1.2.7.3 release or 1.3.0.1 snapshot.
https://github.com/nerdralph/usbasp

The following FW will have more functionalities but you will have to use MinGW build and not the official MSVC build if you use avrdude 7.2 binary.
https://github.com/dioannidis/usbasp

@Ku100vEvgen
Copy link
Author

yes, it helped. Thank you for your promptness
update_drv

@mcuee mcuee added invalid This doesn't seem right and removed unconfirmed Maybe a bug, needs to be reproduced by someone else labels Nov 12, 2023
@mcuee
Copy link
Collaborator

mcuee commented Nov 12, 2023

Thanks for the updates. Glad that you have sorted out the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants