0

SOLUTION: Macs with USB 3 and USBtinyISP
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: SOLUTION: Macs with USB 3 and USBtinyISP

by markmoran on Wed Dec 05, 2012 3:10 pm

Thanks for the notes about your setup. I wasn't familiar with JTAGICE, but for $99 it looks like a great programmer and debugger. I assume the only advantage of the Dragon over JTAGICE is the high voltage option for disabling reset fuse? I'm guessing I can use it with avrdude under Mac, and then if I want to get the debugging capability I can run AtmelStudio under Fusion (which I have but was hoping to avoid starting up Windows XP). This is all just hobby stuff for me, so I'll also look at the Arduino option too. I had read a tutorial about using an Arduino as a programmer (and even a high voltage fuse resetter), but I thought the ArduinoISP sketch was geared only toward loading Arduino sketches onto ATtinys. (That is, I want to program ATtinys without the overhead of the Arduino timers and other libraries.)

Thanks again and please let me know if anyone figures out why USB3 or newer machines don't play as nicely with the USBtinyISP. I'd be happy to assemble a new programmer if there is a revised chip or firmware that solves this. And I'm also adding a JTAGICE to my Christmas list. :)

markmoran
 
Posts: 24
Joined: Fri Mar 02, 2012 6:47 am

Re: SOLUTION: Macs with USB 3 and USBtinyISP

by drumminhands on Sat Nov 08, 2014 10:22 pm

FYI, I just had the same problem on an older Mac Book Pro (Late 2011, running Yosemite) that has two USB ports uploading to a Pro Trinket. Received this message:

Code: Select all | TOGGLE FULL SIZE
avrdude: error: usbtiny_send: usb_control_msg(DeviceRequestTO): pipe is stalled (expected 128, got -104)


Used multiple USB cables, no fix. Used a 6 port USB hub in-between the same cable and the Mac, works just fine.

drumminhands
 
Posts: 33
Joined: Tue Jul 23, 2013 10:02 am

Re: SOLUTION: Macs with USB 3 and USBtinyISP

by ggleason on Fri Aug 28, 2015 7:51 am

Could be different issues for different cases, but mostly this seems to be an issue of some cables not being good enough for some USB chips. I had this problem and didn't have any better cables around. The solution was to use a hub between, but even the first hub I tried did not work. It was the newer hub that didn't work, so that also supports the new chipsets need better cables theory.

ggleason
 
Posts: 1
Joined: Thu Aug 27, 2015 9:59 pm

Re: SOLUTION: Macs with USB 3 and USBtinyISP

by enhering on Fri Jan 27, 2017 11:03 am

Hi. I have a USBtinyISP, an Atmel ICE and a mid 2010 MacBookPro (MBP from now on).

I use the USBtinyISP to program my own ATmega328 boards, described here:
https://hackaday.io/project/11724-yauvc ... controller

I power up those boards from a switching power supply, regulated at 3.3V. The USBtiny jumper is removed to do so.

I find issues with the MBP every time I connect the boards to the USBtiny when it is connected to the MBP. Same issues happen if the board is connected to the USBtiny and I connect the USBtiny to the MBP USB. In both cases the USBtiny is not recognized by the MBP. To fix them I have to disconnect everything and reconnect, keeping only the power supply ground connected to the bundle.

I'm going to say this again: Only power supply ground *must* be connected to the board->USBtiny when these are connected to the MBP. Than the red led from USBtiny turns on and USBtiny is recognized. That is an issue.

It is obviously a ground problem. My MBP uses a 2 pin adapter to connect to the wall. I ordered a 3 pin adapter that grounds the MBP, and while it does not arrive, I managed to ground the Apple power adapter myself. But the problem persists.

I have a second monitor connected to the MBP and sometimes, when I plug in the USBtiny the second monitor looses the image and gets blank. Nothing else happens. No smoke, no burning.

Now comes the news. Yesterday the USBtiny stopped working. All I get is an initialization failure, cannot read device signature (0,0,0) from avrdude. I switched to the Atmel ICE and could program the boards.

I tried many solutions, rechecked the flat cable connections end got no results. I even remelted all the USBtiny solders without success.

I read somewhere that 99% of the time the problems with USBtiny are wiring ones. I believe, by changing the programmer, that I do not have wiring problems. That is why I'd like to ask you what happens on 1% of the time? Should I substitute one of the ICs?

IMG_2744.JPG
IMG_2744.JPG (115.8 KiB) Viewed 375 times


IMG_2745.JPG
IMG_2745.JPG (127.03 KiB) Viewed 375 times


IMG_2747.JPG
IMG_2747.JPG (156.29 KiB) Viewed 375 times

enhering
 
Posts: 13
Joined: Tue Jun 05, 2012 5:03 pm

Re: SOLUTION: Macs with USB 3 and USBtinyISP

by adafruit_support_rick on Sat Jan 28, 2017 4:50 am

USB 3 has caused some problems. Please try connecting through a USB2.0 hub.

adafruit_support_rick
 
Posts: 33782
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: SOLUTION: Macs with USB 3 and USBtinyISP

by enhering on Sat Jan 28, 2017 2:36 pm

My MacBook USB is 2.0. I also have tried through a 2.0 HUB. Same problem.

If I send the device to you, can you identify the problem?

I'm planning on buying another one too.

enhering
 
Posts: 13
Joined: Tue Jun 05, 2012 5:03 pm

Re: SOLUTION: Macs with USB 3 and USBtinyISP

by adafruit_support_rick on Tue Jan 31, 2017 10:43 am

If the target is not connected, do you still have problems with the computer not recognizing the USBtiny?

What about the monitor? Do you still have monitor problems when the target is not connected to the USBtiny?

I will say that some of your joints like like they could use more solder. The solder should flow completely over the pad.

adafruit_support_rick
 
Posts: 33782
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: SOLUTION: Macs with USB 3 and USBtinyISP

by enhering on Tue Jan 31, 2017 11:07 am

adafruit_support_rick wrote:If the target is not connected, do you still have problems with the computer not recognizing the USBtiny?


The USBtiny is recognized. It is not detecting the AVR anymore. As if the AVR was not powered up. But the ATMEL ICE programmer can program the same IC in the same conditions.

adafruit_support_rick wrote:What about the monitor? Do you still have monitor problems when the target is not connected to the USBtiny?


The MBP external monitor goes black sometimes when external ground (from power supply) is connected to AVR ground. AVR is powered externally, as I'm using 3.3V.

adafruit_support_rick wrote:I will say that some of your joints like like they could use more solder. The solder should flow completely over the pad.


I have reflowed all the USBtiny solder pads and still get the same result. I have also tested the 6 wire flat cable. I just can't find what is the problem. Sorry for bothering. I'll consider this programmer dead and buy another.

enhering
 
Posts: 13
Joined: Tue Jun 05, 2012 5:03 pm

Re: SOLUTION: Macs with USB 3 and USBtinyISP

by adafruit_support_rick on Tue Jan 31, 2017 11:24 am

keep me posted.

adafruit_support_rick
 
Posts: 33782
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: SOLUTION: Macs with USB 3 and USBtinyISP

by enhering on Tue Jan 31, 2017 12:01 pm

I can send it to you, if you believe it may be useful.

enhering
 
Posts: 13
Joined: Tue Jun 05, 2012 5:03 pm

Re: SOLUTION: Macs with USB 3 and USBtinyISP

by adafruit_support_rick on Tue Jan 31, 2017 2:04 pm

We don't need it back. Thanks anyway.

adafruit_support_rick
 
Posts: 33782
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Please be positive and constructive with your questions and comments.