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?
USBASP AVR programmer + Adaptor (HCDVBD0031)
Re: USBASP AVR programmer + Adaptor (HCDVBD0031)
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.
Re: USBASP AVR programmer + Adaptor (HCDVBD0031)
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.
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.
Re: USBASP AVR programmer + Adaptor (HCDVBD0031)
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
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
Re: USBASP AVR programmer + Adaptor (HCDVBD0031)
No, it is only compatible with Atmel AVR devices via their ICSP interface so you can't use it to flash an ESP.am I am I able to use this with esptool.exe to load a .bin file directly to the attached micro
It is compatible with the Arduino IDE. You can use it to flash either a bootloader or a sketch to a compatible device.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)?
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: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.
- > avrdude –c usbasp –p m328p –u –U flash:w:mybinfile.bin
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.