Uploading Code to Trinket

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ethanmok
 
Posts: 9
Joined: Fri Jul 15, 2016 12:58 am

Uploading Code to Trinket

Post by ethanmok »

Hi,

So I'm trying to upload code to my Trinket, but my computer won't recognize that the Trinket is plugged in. I have the latest IDE, I'm on Mac (so no drivers), I've installed the Trinket board, and I'm using a USB 2.0 hub.

Help please.

User avatar
adafruit_support_bill
 
Posts: 88086
Joined: Sat Feb 07, 2009 10:11 am

Re: Uploading Code to Trinket

Post by adafruit_support_bill »

Are you using the USB interface or the FTDI interface? Try pressing the reset button on the Trinket.

User avatar
ethanmok
 
Posts: 9
Joined: Fri Jul 15, 2016 12:58 am

Re: Uploading Code to Trinket

Post by ethanmok »

I'm using the USB interface, and it just says

avrdude: usbdev_open(): did not find any USB device "usb"

User avatar
ethanmok
 
Posts: 9
Joined: Fri Jul 15, 2016 12:58 am

Re: Uploading Code to Trinket

Post by ethanmok »

Ok so after some time I think the IDE recognizes the microcontroller, but now after I push the button on the Trinket and upload the basic Blink example code, it says

avrdude: Expected signature for ATtiny85 is 1E 93 0B
Double check chip, or use -F to override this check.
Wrong microcontroller found.

What on earth does that mean and how do I fix it?

User avatar
adafruit_support_bill
 
Posts: 88086
Joined: Sat Feb 07, 2009 10:11 am

Re: Uploading Code to Trinket

Post by adafruit_support_bill »

The device is only available while the bootloader is running. If you press the reset button just before the upload starts, it should start running the bootloader. You can tell it is in the bootloader when the red led is pulsing.

User avatar
ethanmok
 
Posts: 9
Joined: Fri Jul 15, 2016 12:58 am

Re: Uploading Code to Trinket

Post by ethanmok »

Yes I know that - I push the button and the red LED is pulsing and I get the error message I mentioned before.

User avatar
adafruit_support_bill
 
Posts: 88086
Joined: Sat Feb 07, 2009 10:11 am

Re: Uploading Code to Trinket

Post by adafruit_support_bill »

Good. That means that the bootloader is running. Try a different USB cable or USB port. USB 2.0 ports generally work better than USB 3.0 ports.

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

Return to “Microcontrollers”