Trinket - Can't download. Mac OSX 10.9.2

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Trinket - Can't download. Mac OSX 10.9.2

Post by adafruit_support_mike »

My mac runs 10.9.2 and I routinely program Trinkets from it.

In the Arduino IDE's preferences, click the option for "verbose output" from avrdude. Let's make sure it's using the config file you edited.

User avatar
michael_lloyd
 
Posts: 27
Joined: Tue Dec 31, 2013 10:03 am

Re: Trinket - Can't download. Mac OSX 10.9.2

Post by michael_lloyd »

Code: Select all

/Applications/Adafruit Arduino 1.0.5.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude -C/Applications/Adafruit Arduino 1.0.5.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -v -v -v -v -pattiny85 -cusbtiny -Uflash:w:/var/folders/tw/9plnkg1163sgb9xzbtypqsrw0000gn/T/build7113444700062656203.tmp/Trinket_SpaceInvader.cpp.hex:i 

avrdude: Version 5.11, compiled on Sep  2 2011 at 18:52:52
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/Applications/Adafruit Arduino 1.0.5.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/mikell/.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: 003:002-1781-0c9f-ff-00
         AVR Part                      : ATtiny85
         Chip Erase delay              : 400000 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : possible i/o
         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    12     4    0 no        512    4      0  4000  4500 0xff 0xff
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash         65     6    32    0 yes      8192   64    128 30000 30000 0xff 0xff
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration    0     0     0    0 no          2    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
CMD: [ac 53 00 00] [00 00 53 00]
avrdude: AVR device initialized and ready to accept instructions

Reading | CMD: [30 00 00 00] [00 00 00 1e]
CMD: [30 00 01 00] [00 00 00 93]
################CMD: [30 00 02 00] [00 00 00 0b]
################################## | 100% 0.01s

avrdude: Device signature = 0x1e930b
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
CMD: [a0 01 fc 00] [00 00 01 00]
CMD: [a0 01 fd 00] [00 00 01 00]
CMD: [a0 01 fe 00] [00 00 01 00]
CMD: [a0 01 ff 00] [00 00 01 00]
avrdude: erasing chip

avrdude: error: usbtiny_receive: usb_control_msg(DeviceRequestTO): unknown error (expected 4, got -1)
avrdude: Using SCK period of 10 usec
avrdude: 10 retries during SPI command
CMD: [ac 53 00 00] [00 00 53 00]
avrdude: reading input file "/var/folders/tw/9plnkg1163sgb9xzbtypqsrw0000gn/T/build7113444700062656203.tmp/Trinket_SpaceInvader.cpp.hex"
avrdude: writing flash (1866 bytes):

Writing | CMD: [4c 00 00 00] [00 00 00 00]
#avrdude: 1 retries during SPI command
CMD: [4c 00 20 00] [00 00 00 00]
##avrdude: 1 retries during SPI command
CMD: [4c 00 40 00] [00 00 00 00]
##avrdude: 1 retries during SPI command
CMD: [4c 00 60 00] [00 00 00 00]
#avrdude: 1 retries during SPI command
CMD: [4c 00 80 00] [00 00 00 00]
##avrdude: 1 retries during SPI command
CMD: [4c 00 a0 00] [00 00 00 00]
##avrdude: 1 retries during SPI command
CMD: [4c 00 c0 00] [00 00 00 00]
##avrdude: 1 retries during SPI command
CMD: [4c 00 e0 00] [00 00 00 00]
#avrdude: 1 retries during SPI command
CMD: [4c 01 00 00] [00 00 01 00]
##avrdude: 1 retries during SPI command
CMD: [4c 01 20 00] [00 00 01 00]
##avrdude: 1 retries during SPI command
CMD: [4c 01 40 00] [00 00 01 00]
#avrdude: 1 retries during SPI command
CMD: [4c 01 60 00] [00 00 01 00]
##avrdude: 1 retries during SPI command
CMD: [4c 01 80 00] [00 00 01 00]
##avrdude: 1 retries during SPI command
CMD: [4c 01 a0 00] [00 00 01 00]
##avrdude: 1 retries during SPI command
CMD: [4c 01 c0 00] [00 00 01 00]
#avrdude: 1 retries during SPI command
CMD: [4c 01 e0 00] [00 00 01 00]
##avrdude: 1 retries during SPI command
CMD: [4c 02 00 00] [00 00 02 00]
##avrdude: 1 retries during SPI command
CMD: [4c 02 20 00] [00 00 02 00]
#avrdude: 1 retries during SPI command
CMD: [4c 02 40 00] [00 00 02 00]
##avrdude: 1 retries during SPI command
CMD: [4c 02 60 00] [00 00 02 00]
##avrdude: 1 retries during SPI command
CMD: [4c 02 80 00] [00 00 02 00]
##avrdude: 1 retries during SPI command
CMD: [4c 02 a0 00] [00 00 02 00]
#avrdude: 1 retries during SPI command
CMD: [4c 02 c0 00] [00 00 02 00]
##avrdude: 1 retries during SPI command
CMD: [4c 02 e0 00] [00 00 02 00]
##avrdude: 1 retries during SPI command
CMD: [4c 03 00 00] [00 00 03 00]
#avrdude: 1 retries during SPI command
CMD: [4c 03 20 00] [00 00 03 00]
##avrdude: 1 retries during SPI command
CMD: [4c 03 40 00] [00 00 03 00]
##avrdude: 1 retries during SPI command
CMD: [4c 03 60 00] [00 00 03 00]
##avrdude: 1 retries during SPI command
CMD: [4c 03 80 00] [00 00 03 00]
#avrdude: 1 retries during SPI command
CMD: [4c 03 a0 00] [00 00 03 00]
# | 100% 1.53s

avrdude: 1866 bytes of flash written
avrdude: verifying flash memory against /var/folders/tw/9plnkg1163sgb9xzbtypqsrw0000gn/T/build7113444700062656203.tmp/Trinket_SpaceInvader.cpp.hex:
avrdude: load data flash data from input file /var/folders/tw/9plnkg1163sgb9xzbtypqsrw0000gn/T/build7113444700062656203.tmp/Trinket_SpaceInvader.cpp.hex:
avrdude: input file /var/folders/tw/9plnkg1163sgb9xzbtypqsrw0000gn/T/build7113444700062656203.tmp/Trinket_SpaceInvader.cpp.hex contains 1866 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.28s

avrdude: verifying ...
avrdude: 1866 bytes of flash verified

avrdude done.  Thank you.
?? Looks like it wrote it to me. But there were 10 retries. All I did was enable verbose output. Same cable. Same Trinket.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Trinket - Can't download. Mac OSX 10.9.2

Post by adafruit_support_mike »

That sounds like a timing issue. Having to produce more output slowed avrdude down enough to keep the Trinket's ATtiny85 happy.

If you're willing to live with that as a working solution, running verbose shouldn't cause any new problems.

User avatar
michael_lloyd
 
Posts: 27
Joined: Tue Dec 31, 2013 10:03 am

Re: Trinket - Can't download. Mac OSX 10.9.2

Post by michael_lloyd »

It works so I think I can live with it :o)

Thanks for hanging in there.

User avatar
CamWow
 
Posts: 1
Joined: Sat Sep 06, 2014 9:23 am

Re: Trinket - Can't download. Mac OSX 10.9.2

Post by CamWow »

I found this post after doing some research when my Trinket started acting up. I had installed the trinket in one of my projects and wanted to reprogram it. I'm on a Mac as well and was getting some of the same error messages when uploading to the Trinket. After trying a few things I noticed something that was mentioned in the Introducing Trinket tutorial in reference to GPIO pins #3 and #4.

"We didn't want to keep these pins off the board but we strongly recommend not using them unless you're sure you need them since you might have to disconnect any connections to reprogram the Trinket!"

I had these pins connected and as a result could not upload to the Trinket. Disconnecting these pins solved my problem. It was a mistake on my part forgetting that connecting these pins may cause problems when uploading.

User avatar
jagalbraith
 
Posts: 1
Joined: Wed Jul 29, 2015 6:58 pm

Re: Trinket - Can't download. Mac OSX 10.9.2

Post by jagalbraith »

To simpify this thread here are instructions. I tested this on OS X 10.10.4.

Trinket programming on the Mac:

It will NOT show up in your network connections as a USB device like other Arduino. Trinkets have a built in programmer. Follow these steps to upload your sketch:

1. Write your sketch.
2. Pick your Trinket model in the board list.
3. Set programmer to USBtinyISP
4. Press the reset button on the Trinket.
5. Press the upload button on your Arduino IDE window.

Done and done.

User avatar
keshishiana
 
Posts: 18
Joined: Mon Nov 02, 2015 11:01 am

Re: Trinket - Can't download. Mac OSX 10.9.2

Post by keshishiana »

Hello Please point out what am I doing wrong!
El Capitan 10.11.2
Arduino 1.6.7
Trinket 3v.

I can not load the program because it does not see the serial port- when I switch my board to an UNO, then I see the port and able to load.
This is the error massage I get"

Arduino: 1.6.7 (Mac OS X), Board: "Arduino/Genuino Uno"

Sketch uses 1,112 bytes (3%) of program storage space. Maximum is 32,256 bytes.
Global variables use 13 bytes (0%) of dynamic memory, leaving 2,035 bytes for local variables. Maximum is 2,048 bytes.
avrdude: ser_open(): can't open device "/dev/cu.usbmodemFA131": No such file or directory
ioctl("TIOCMGET"): Inappropriate ioctl for device
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.



I have uninstalled and reinstalled Ardunio,
Followed the instructions below:
http://arduino.stackexchange.com/questi ... for-uno-r3

Thank you
Attachments
Screen Shot 2016-01-07 at 9.27.40 PM.png
Screen Shot 2016-01-07 at 9.27.40 PM.png (56.71 KiB) Viewed 1766 times
Screen Shot 2016-01-07 at 9.27.13 PM.png
Screen Shot 2016-01-07 at 9.27.13 PM.png (57.71 KiB) Viewed 1766 times

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Trinket - Can't download. Mac OSX 10.9.2

Post by adafruit_support_mike »

Drop back to version 1.6.5 of the Arduino IDE. Versions 1.6.6 and 1.6.7 contain changes that have caused all sorts of trouble.

User avatar
keshishiana
 
Posts: 18
Joined: Mon Nov 02, 2015 11:01 am

Re: Trinket - Can't download. Mac OSX 10.9.2

Post by keshishiana »

Still the same problem- not showing or giving the option for a serial port.
Attachments
Screen Shot 2016-01-08 at 11.55.15 PM.png
Screen Shot 2016-01-08 at 11.55.15 PM.png (63.37 KiB) Viewed 1749 times
Screen Shot 2016-01-08 at 11.55.08 PM.png
Screen Shot 2016-01-08 at 11.55.08 PM.png (59.16 KiB) Viewed 1749 times
Screen Shot 2016-01-08 at 11.54.54 PM.png
Screen Shot 2016-01-08 at 11.54.54 PM.png (50.43 KiB) Viewed 1749 times

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Trinket - Can't download. Mac OSX 10.9.2

Post by adafruit_support_mike »

The Trinket doesn't register a serial port.

Take a look at the tutorial for information on programming the Trinket from the Arduino IDE: https://learn.adafruit.com/introducing- ... troduction

User avatar
keshishiana
 
Posts: 18
Joined: Mon Nov 02, 2015 11:01 am

Re: Trinket - Can't download. Mac OSX 10.9.2

Post by keshishiana »

Thank you for your help- I am clearly missing something- I have looked over that page numerous times.
This is the error that I get.

Sketch uses 1,112 bytes (3%) of program storage space. Maximum is 32,256 bytes.
Global variables use 13 bytes (0%) of dynamic memory, leaving 2,035 bytes for local variables. Maximum is 2,048 bytes.
avrdude: ser_open(): can't open device "/dev/cu.usbmodemFD121": No such file or directory
ioctl("TIOCMGET"): Inappropriate ioctl for device

thank you

User avatar
michael_lloyd
 
Posts: 27
Joined: Tue Dec 31, 2013 10:03 am

Re: Trinket - Can't download. Mac OSX 10.9.2

Post by michael_lloyd »

USB bootloader with a nice LED indicator looks just like a USBtinyISP so you can program it with AVRdude (with a simple config modification) and/or the Arduino IDE (with a few simple config modifications)

Reset button for entering the bootloader or restarting the program. No need to unplug/replug the board every time you want to reset or update!

User avatar
keshishiana
 
Posts: 18
Joined: Mon Nov 02, 2015 11:01 am

Re: Trinket - Can't download. Mac OSX 10.9.2

Post by keshishiana »

Hello,
Thank you for the help- and now this error-


Arduino: 1.6.7 (Mac OS X), Board: "Arduino/Genuino Uno"

avrdude: Expected signature for ATmega328P is 1E 95 0F
Double check chip, or use -F to override this check.
Wrong microcontroller found. Did you select the right board from the Tools > Board menu?

Attachments
Screen Shot 2016-01-09 at 4.54.12 PM.png
Screen Shot 2016-01-09 at 4.54.12 PM.png (49.49 KiB) Viewed 1668 times

User avatar
michael_lloyd
 
Posts: 27
Joined: Tue Dec 31, 2013 10:03 am

Re: Trinket - Can't download. Mac OSX 10.9.2

Post by michael_lloyd »

You have selected the wrong board.

Board: "Arduino/Genuino Uno"

It's a Trinket not an Uno

User avatar
keshishiana
 
Posts: 18
Joined: Mon Nov 02, 2015 11:01 am

Re: Trinket - Can't download. Mac OSX 10.9.2

Post by keshishiana »

There is no option for trinket -
Attachments
Screen Shot 2016-01-09 at 5.22.34 PM.png
Screen Shot 2016-01-09 at 5.22.34 PM.png (102.61 KiB) Viewed 986 times

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

Return to “Arduino”