SOLVED USBtinyISP green light turns of when target connected

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

Moderators: adafruit_support_bill, adafruit

SOLVED USBtinyISP green light turns of when target connected

Postby alexshel44 » Sun Apr 01, 2012 10:38 pm

1. I'm building the project from a kit.
2. I'm running Ubuntu 11.10 on a Toshiba Satellite C650D laptop
3. I'm using avrdude for programming and attempting to program an atmega 16
4. This is the first time i've tried to talk to the chip
5. I will post pictures in the next couple days if required

I just finished building the USBtinyISP kit, and when i connect the programmer to the computer without a target connected
the greenlight turns on and avrdude detects the programmer with the following message:

Code: Select all
awsheldo@awsheldo-Satellite-C650D:~$ avrdude -c usbtiny -p m16

avrdude: error: usbtiny_transmit: error sending control message: Operation not permitted
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: error: usbtiny_transmit: error sending control message: Operation not permitted

avrdude done.  Thank you.


which makes sense since nothing is connected but,

Once, I plug the target into the programmer using the 6 pin header the greenlight turns off and when trying to talk to the chip
avrdude shows the following error message:

Code: Select all
awsheldo@awsheldo-Satellite-C650D:~$ avrdude -c usbtiny -p m16
avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)

avrdude done.  Thank you.


If anyone could help try and help debug this problem that would be great.
Thanks in advance for any help

Alex
Last edited by alexshel44 on Mon Apr 02, 2012 9:59 pm, edited 1 time in total.
alexshel44
 
Posts: 3
Joined: Sun Apr 01, 2012 10:29 pm

Re: USBtinyISP green light turns of when target connected

Postby DX160 » Mon Apr 02, 2012 12:23 pm

The Green LED is USB power, if that goes out when you connect to your target device something isn't right.
Is the 6pin right on the USBtiny side?
Got the right alignment on the device side?
There's an arrow on those 6pin connector bodies indicating pin 1.
Unfortunately, pin#1 is not Ground, it's MISO.
Pin#2 is +5 (+V) and pin#6 is Ground.
Check, Double Check, and then Check again.
DX160
 
Posts: 3
Joined: Fri Mar 30, 2012 10:36 pm

Re: USBtinyISP green light turns of when target connected

Postby alexshel44 » Mon Apr 02, 2012 6:24 pm

Thanks a lot for the reply

I rechecked the attiny on the programmer is getting power but, only 4.3V.
I also remade my target board currently, the minamalist target board from evil mad scientist

http://www.evilmadscientist.com/article.php/avrtargetboards

The greenlight now remains on if the target is connected.

But, i get the following message

Code: Select all
awsheldo@awsheldo-Satellite-C650D:~$ avrdude -c usbtiny -p m16


avrdude: error: usbtiny_transmit: error sending control message: Operation not permitted
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude: error: usbtiny_transmit: error sending control message: Operation not permitted

avrdude done.  Thank you.


both the vcc pin and the reset pins on the target chip are getting ~4V could this be causing
the chip to brown out or reset, if so what could be a possible cause for that low of a voltage

Thanks,

Alex
alexshel44
 
Posts: 3
Joined: Sun Apr 01, 2012 10:29 pm


Re: USBtinyISP green light turns of when target connected

Postby alexshel44 » Mon Apr 02, 2012 9:59 pm

Thank you

The problem is solved and the programmer is officially working

Thanks

Alex
alexshel44
 
Posts: 3
Joined: Sun Apr 01, 2012 10:29 pm


Return to USBtinyISP

Who is online

Users browsing this forum: Exabot [Bot] and 1 guest

Stuff to buy from the Adafruit store and links to product documentation!


New Products [105]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
Android[6]
 
BeagleBone[24]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]