avrdude on win11, libhidapi-0.dll error.

Go To Last Post
13 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hello,

 

I am new here and resonably new to AVR in general. 

I have had a USBtinyisp and just bought a busp pirate 3.6.

 

because of this i would like to install AVRdude but when trying it out i get the following error msg:

 

the code execution can not proceed because libhudapi-0.dll was not found.

reinstalling the program might solve this issue.

 

ofcourse re-"installing" did not work.
I looked into installing winusb, but htis didn't seem to work either.

afterwards i went through the lengthy installation process of installing atmel studio 7. at the end it gave a winusb warning. no more information.

afterwards i tried again, but still the same error.

is this an win11 issue? is the a solution? i have googled extensively but nothing that could safely resolve the issue.

 

I would be really happy to get this solved.

 

Kind greats

 

Matthieu

 

Last Edited: Fri. Jan 7, 2022 - 09:13 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Welcome to AVRFreaks!

spikey1973 wrote:
USBtiyisp

I have no idea what this device is, did you mean you have a USBasp programmer?

similar to this? https://www.ebay.com/itm/2015560...

 

Have you tried installing Arduino ISP, does it work there?

 

Jim

 

 

FF = PI > S.E.T

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello Jim, thanks for your quick responce,

 

Well, it is a bit older but i guess it is similar in function, actually it is this specifically, guess i had it misspelled.

https://www.amazon.nl/USBTiny-US...

unfortunately it is a dutch amazon site

and yeah i have installed arduino IDE (which is also arduino ISP right?)
and no it is not working, unfortunately. (it being avrdude, i haven't used arduino ide on this win11 system yet)

 

Kind regards

 

Matthieu

Last Edited: Fri. Jan 7, 2022 - 09:27 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

no experience with W11 yet, but as Arduino uses AVRDude to upload code, I was just seeing if it worked with your programmer, if not the Arduino bootloader guy hangs out here and my offer an solution.

 

Jim

 

 

FF = PI > S.E.T

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

does arduino uses avrdude to upload all the code or only the bootloader?

 

is it is all the code i can just go and check if i can upload just a test code to one of my arduino boards.

 

Matthieu

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, the Arduino IDE has its own copy of AVRDude, which you can link to MC7 as an external tool to use for programming.

 

 

FF = PI > S.E.T

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Another thread with the same problem here: https://www.avrfreaks.net/commen...

had a possible solution.

 

FF = PI > S.E.T

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

oke thanks, i will go and have a look.!

in the mean time...

 

I tried to upload the blink code,

1) board was recognized,
2) port was recognized
3) code was verifies

4) upload timed out with the following error msg.

 

Arduino: 1.8.19 (Windows 10), Board: "Arduino Pro or Pro Mini, ATmega328P (5V, 16 MHz)"

Sketch uses 924 bytes (3%) of program storage space. Maximum is 30720 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x83

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x83

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x83

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x83

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x83

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x83

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x83

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x83

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x83

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x83

Problem uploading to board.  See https://support.arduino.cc/hc/en... for suggestions.

 

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

 

in reply to this link you posted.

i have installed avrdude 6.3 instead of 6.4 which solved the issue.
still the: https://github.com/mariusgreuel/... puzzles me, i have no idea how to implement this under windows.
Kinda wishing i was still ubuntu now.

 

never the less.

 

any suggestions on how to implement this libhidapi-win?

 

Matthieu

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Just to clarify that USBAsp and USBtinyISP are different. The former is traditionally made with mega8 though it might be modern equivalent like mega88p. With 8K of potential code it can be quite "intelligent" and operate a fairly high level protocol. The USBtinyISP on the other hand is traditionally a tiny2313. With only 2K of code space it's operations are very basic and much more of the "intelligence" of programming is done PC side. 

 

Given that they both cost about $2 I'm not sure why anyone would choose tiny. It used to have a cost advantage but economies of scale mean USBAsp costs the same or even less these days. 

 

Anyway with the recent move of avrdude into github you should find everything you need there or at least documented there. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

the reason i have the usptinyisp is because i have had it for a very (very) long time laying on a shelve somewhere after i used it only once. so this i understand that this is like a dinosaur.

besides the USBtinyisp i also have the bus pirate as mentioned, I purchased this again for a specific reason but am slowly learning more about the options and therefor getting interested in other options.

at the moment am realising that the bus pirate is not the best avr programmer so i am "using" the tiny besides it to have available.

i now do realise that i might should get a more modern version? 2 euro won't bankrupt me ofcourse.

 

besides that i am still learning.

 

Kind greats.

Last Edited: Sat. Jan 8, 2022 - 01:09 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Three days after 6.4 was a major change to libhidapi.

An alternative to 6.3 is Marius's fork for Windows 10.

There are API changes for Windows 11 though any Windows 10 application should be completely functional on Windows 11.

 

https://github.com/avrdudes/libhidapi/commits/windows

GitHub - mariusgreuel/avrdude: AVRDUDE for Windows 10 due to Avrdude stopped working suddenly | AVR Freaks

What Windows 11 Means for Developers - Windows Developer Blog (Project Reunion)

 

 

 

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I built my USBtiny from an adafruit schematic. They have a driver for windows that "just worked".  Getting the right USB driver is critical. The Zadig.exe program helps in switching the driver if nothing else works. Zadig has also helped me with the USBAsp Loader clone that I built from Obdev.at.  UsbTreeView.exe helps to visualize the USB devices on your machine. Good luck! 

I reserve my right to assemble!
Brawndo's got what plants crave... It's got electrolytes!