USBASP AVR programmer + Adaptor (HCDVBD0031)

Atmel microcontroller development boards and accessories
andrew
Site Admin
Posts: 1292
Joined: Sun Aug 05, 2012 4:15 pm

Re: USBASP AVR programmer + Adaptor (HCDVBD0031)

Post by andrew » Tue Mar 29, 2022 2:12 pm

I've just given your command a try with an ATMega328 and although I do get the same warning I don't get the error and seems to be talking to the device OK.

The 'initialization failed, rc=-1' error is a common generic error and just means 'I can't talk to the device for some reason'. This is normally caused by a physical issue like an incorrect or bad connection to your target device. I'd advise double checking your connections.

I assume you're using the 10 to 6 pin adapter to program it via the Nanos ICSP header? Are you sure you have it connected in the correct orientation?
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

sdcandy
Posts: 2
Joined: Tue Mar 29, 2022 11:12 am

Re: USBASP AVR programmer + Adaptor (HCDVBD0031)

Post by sdcandy » Wed Mar 30, 2022 7:20 am

Hi Andrew,

I was using the 10 to 6 pin adapter. It was orientated the correct way (I tried it in both to be sure) but it seems to have been the issue. I have replaced it with a bunch of wires and am now happily programming the Nano.

Next time I have the soldering iron turned on I'm going to touch all the joints to make sure there isn't a bad connection.

-Andy.

scalesr1
Posts: 1
Joined: Tue Oct 11, 2022 3:39 am

Re: USBASP AVR programmer + Adaptor (HCDVBD0031)

Post by scalesr1 » Tue Oct 11, 2022 3:46 am

Please could you advise - am I am I able to use this with esptool.exe to load a .bin file directly to the attached micro or can I only use it from a dev environment like Arduino IDE where I have to program and upload the code (and hence need the source code)?
I want to know whether I can use these with just .bin files - this will make it easier for users to upload a compiled bin as opposed to messing with Arduino IDE and source.
- Richard

andrew
Site Admin
Posts: 1292
Joined: Sun Aug 05, 2012 4:15 pm

Re: USBASP AVR programmer + Adaptor (HCDVBD0031)

Post by andrew » Tue Oct 11, 2022 8:02 am

am I am I able to use this with esptool.exe to load a .bin file directly to the attached micro
No, it is only compatible with Atmel AVR devices via their ICSP interface so you can't use it to flash an ESP.

or can I only use it from a dev environment like Arduino IDE where I have to program and upload the code (and hence need the source code)?
It is compatible with the Arduino IDE. You can use it to flash either a bootloader or a sketch to a compatible device.

want to know whether I can use these with just .bin files - this will make it easier for users to upload a compiled bin as opposed to messing with Arduino IDE and source.
Yes, you can use it to flash bin files from the command line via AVRDude. You'll need to have AVRDude installed somewhere and then you can flash a bin file which something like this:

  1. > avrdude –c usbasp –p m328p –u –U flash:w:mybinfile.bin
In the above example it will flash mybinfile.bin to an ATMega328p. You can also set fuse bits if required at the same time.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

Post Reply

Return to “Atmel”