firmware update via arduino MegaISP

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
jaysenodell
 
Posts: 2
Joined: Mon Nov 25, 2013 3:01 pm

firmware update via arduino MegaISP

Post by jaysenodell »

ADAFruit folks,

I'm in a spot here were I need to update the firmware (Mac Yosemite with Linux Dev platform via virtualbox). I've used the arduino megaISP code to burn non-boot loader code 328p (before I got the USBTinyISP). I find myself hesitant to just "wire it up" with the USBtimyISP uC.

Any cautions/suggestions on using the arduino megaISP code to re-flash the USBtinyISP uC?

Thanks.

jaysenodell
 
Posts: 2
Joined: Mon Nov 25, 2013 3:01 pm

Re: firmware update via arduino MegaISP

Post by jaysenodell »

For those with the virtualbox USB problem on the USBtinyISP v2, here's how I fixed it.

Premise: need to reflash the firmware with usbtiny v1.05+. on site HW limited to Arduino Uno, bread board, jumper wires (seriously, that's all I had available).

follow directions to load ArduinoISP via normal processes.
pull 2313 out of usbtinyisp and put in BB.
connect Arduino10:Tiny1, A11:T17, A12:T18, A13:T19.
Connect T20 vcc, T10 gnd.
You need the oscillator from the USBtinyISP. Connect T4 to Socket4, T5:S5.
You need to connect S10:gnd and S20:vcc

When you run avrdude use the following (correct location for relative path and devices)

Code: Select all

jaysen@avr-dev:~/usbtiny-1.7/usbtinyisp$ avrdude -cavrisp -pt2313 -P /dev/ttyACM0 -b19200 -U flash:w:main.hex
Put USBtinyISP back together. DO NOT PLUG IN YET.

After that, create a rule in virtualbox VM USB section. USBtinyISP will show up as 107.

Now plug in USBtinyISP. You should see the following output from lsusb

Code: Select all

jaysen@avr-dev:~/usbtiny-1.7/usbtinyisp$ lsusb 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 002 Device 005: ID 1781:0c9f Multiple Vendors USBtiny

Locked
Please be positive and constructive with your questions and comments.

Return to “USBtinyISP”