Memorial day is 05/25/2015 – Orders will ship out on May 26th. There will not be any deliveries or shipping on Monday. Any order placed after 11am ET on Friday May 22nd will not start to ship out until Tuesday May 26th.

HELP! USBTiny, ArduinoBBB from ModernDevice, MacOS. [SOLVED!]
Moderators: adafruit_support_bill, adafruit

HELP! USBTiny, ArduinoBBB from ModernDevice, MacOS. [SOLVED!]

by enhering on Tue Jun 05, 2012 5:22 pm

Hi. I bought an USBTiny programmer from adafruit many months ago, assembled it and never turned it on, until now.

I'm running it on MacOS Lion. I have an BBB board, rev D, from ModernDevice. It works well with the Arduino IDE connected to my notebook via USB-BUB, also from ModernDevice.

When I try the programmer, as expected, green led only turns on after first run of avrdude. Red led blinks as programmer tries to program the 328P on ModernDevice board, but I get the following result.

All the solder points of the programmer were double checked.


ENHering:mcu enhering$ avrdude -c usbtiny -p atmega328p -v

avrdude: Version 5.11.1, compiled on Feb 16 2012 at 22:11:20
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "/usr/local/CrossPack-AVR-20120217/etc/avrdude.conf"
User configuration file is "/Users/enhering/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port : unknown
Using Programmer : usbtiny
avrdude: usbdev_open(): Found USBtinyISP, bus:device: 001:002-1781-0c9f-ff-00
AVR Part : ATMEGA328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :

Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00

Programmer Type : USBtiny
Description : USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/
avrdude: programmer operation not supported

avrdude: Using SCK period of 10 usec
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.


avrdude done. Thank you.

ENHering:mcu enhering$

This is the same result as if I had the programmer cable unplugged from the Arduino board.

If I fallback to Arduino IDE and ModernDevice BUB USB to serial connection, the board accepts programming.

A similar result is obtained if I try to upload 'using programmer' on the Arduino IDE.

Do you think you can help me?
Last edited by enhering on Wed Jun 06, 2012 3:40 pm, edited 2 times in total.
enhering
 
Posts: 5
Joined: Tue Jun 05, 2012 5:03 pm

Re: USBTiny, ArduinoBBB from ModernDevice, MacOS.

by enhering on Tue Jun 05, 2012 5:30 pm

One more fact:

If I upload a program using Arduino IDE, which flashes LEDs, I see them flashing.
If, after that, I try to use the programmer in the conditions stated in my last post, I see the Arduino board is reset by it.

Again: when I try the command on the above post, the arduino board is reset. After a few seconds it restarts flashing the LEDs, but avrdude complains as described above.
enhering
 
Posts: 5
Joined: Tue Jun 05, 2012 5:03 pm

SOLVED!

by enhering on Wed Jun 06, 2012 3:39 pm

Hi.

I finally solved this problem by shorting R4 and R7 resistors, as suggested by the USBtinyISP solder manual.

I hope this helps other people with similar problems.
enhering
 
Posts: 5
Joined: Tue Jun 05, 2012 5:03 pm