Home › Evil Mad Scientist Forums › Other kit and product support › Octolively and USBTinyISP
- This topic has 4 replies, 2 voices, and was last updated 10 years, 10 months ago by Windell Oskay.
Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
January 30, 2014 at 10:44 pm #20318grajohntParticipant
First – thanks for designing such awesome stuff!
I am working on programming my Octolively modules, and put together USBTinyISP to do so. I have no experience with AVR programming, so this is all a bit new to me.Following all of the various tutorials that are out there, I understand that I should be able to communicate with the Octolively with something like:avrdude -c usbtiny -p m164pBut despite trying various things, I inevitably get the response:avrdude: initialization failed, rc=-1Double check connections and try again, or use -F to overridethis check.So – the question: what’s the ‘right’ way to connect the Octolively with a USBTinyISP? I presumed that the on-board USBTinyISP 100 mA power was not enough to power an Octolively, so I have the USBTinyISP power jumper out, and the Octolively connected to power and turned on. I presume that the 6-pin connector should be oriented with the red-wire side on the same side as the silkscreened arrow on J6.The USBTinyISP seems to be responding correctly, with a valid USB connection (and green light), and when it attempts to communicate, I get some flashes on the red LED. It’s certainly possible that there’s something wrong with my USBTinyISP, as this is the first attempt to do something with it, but it seems to be functioning and responding correctly.…am I missing something?January 31, 2014 at 4:11 am #21669Windell OskayKeymasterUnless I’m being daft, everything that you have described seems correct to me. (And, thank you for describing the situation so clearly!)
However, the “initialization failed” error is a blanket error which basically means that there’s no good connection. It could be hardware (wiring, ISP connector installed on the wrong side of the board, bad solder joint somewhere, solder bridge, etc) or it could be software. To help eliminate things, you might try using one of our standard makefiles.Download the code example and makefile here:Edit the file to change programmer type, by commenting out line 6 and uncommenting line 7.Then, at the command line, compile with “make all” and then upload the program with “make install”. The full avrdude command that it calls should be as follows:avrdude -p m164p -c usbtiny -P usb -v -e -B 4 -U lfuse:w:0xC2:m -U hfuse:w:0xD9:m -U efuse:w:0xFD:m -U flash:w:octolively.hex
One of the things to note there is that you do (I think) have to explicitly tell it to look on the USB port, with that “-P usb” above. :)January 31, 2014 at 10:05 pm #21670grajohntParticipantThanks for the sanity check – good to know that I was at least on the right track :)
The results are more or less the same:Programmer Type : USBtinyDescription : USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/avrdude: programmer operation not supportedavrdude: Setting SCK period to 4 usecavrdude: initialization failed, rc=-1Double check connections and try again, or use -F to overridethis check.avrdude done. Thank you.make: *** [install] Error 1I will scrutinize the USBTinyISP! Thanks for the help!January 31, 2014 at 10:28 pm #21671grajohntParticipantOK – Mystery solved!
I had not installed the R4/R7 jumpers on the USBTinyISP that are necessary for boards with loaded pins to be programmed. Put this in the ‘knowing just enough to be dangerous’ files.Now it works fine – thanks for the help!February 2, 2014 at 4:02 pm #21672Windell OskayKeymasterFantastic– glad to hear it!
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.