0

Trinket pro 5v upload problems
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Trinket pro 5v upload problems

by jackieh111 on Mon Jun 12, 2017 4:58 pm

Hi
I'm working on the BIke POV. I've uploaded and ran the strand test fine but when I try to upload bikewheel.ino I get the text below - basically broken pipe mismatch error. I do get a broken pipe eroor when I load the strand test occasionally but if I retry I usually get a clean upload. I never get a clean upload with bikewheel. I'm using a mac with a USB2 hub connected, I've tried with zero success other micro usbs and tried an older mac that is USB2 only. Any other ideas?

Thanks!

Arduino: 1.8.1 (Mac OS X), Board: "Pro Trinket 5V/16MHz (USB)"

Sketch uses 26772 bytes (93%) of program storage space. Maximum is 28672 bytes.
Global variables use 102 bytes of dynamic memory.
/Users/jacqh/Dev_apps/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Users/jacqh/Dev_apps/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -cusbtiny -Uflash:w:/var/folders/yx/sl6g43zx15j69nlqclz2blhw0000gn/T/arduino_build_588940/myBikewheel.ino.hex:i

avrdude: Version 6.3, compiled on Dec 16 2016 at 13:32:25
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "/Users/jacqh/Dev_apps/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/Users/jacqh/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port : usb
Using Programmer : usbtiny
avrdude: usbdev_open(): Found USBtinyISP, bus:device: 029:008
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: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: Using SCK period of 10 usec
avrdude: reading input file "/var/folders/yx/sl6g43zx15j69nlqclz2blhw0000gn/T/arduino_build_588940/myBikewheel.ino.hex"
avrdude: writing flash (26772 bytes):

Writing | #
avrdude: error: usbtiny_send: Broken pipe (expected 128, got -32)
avrdude: 4 retries during SPI command
################################################# | 100% 21.36s

avrdude: 26772 bytes of flash written
avrdude: verifying flash memory against /var/folders/yx/sl6g43zx15j69nlqclz2blhw0000gn/T/arduino_build_588940/myBikewheel.ino.hex:
avrdude: load data flash data from input file /var/folders/yx/sl6g43zx15j69nlqclz2blhw0000gn/T/arduino_build_588940/myBikewheel.ino.hex:
avrdude: input file /var/folders/yx/sl6g43zx15j69nlqclz2blhw0000gn/T/arduino_build_588940/myBikewheel.ino.hex contains 26772 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 1.78s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0084
0xc1 != 0xff
avrdude: verification error; content mismatch

avrdude done. Thank you.

the selected serial port
does not exist or your board is not connected

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

jackieh111
 
Posts: 11
Joined: Mon Jan 30, 2017 1:07 pm

Re: Trinket pro 5v upload problems

by jackieh111 on Mon Jun 12, 2017 10:35 pm

I've tried this on a windows 10 machine, again using usb 2 hub and got thsi result:

Arduino: 1.8.3 (Windows 10), Board: "Pro Trinket 5V/16MHz (USB)"

Sketch uses 26776 bytes (93%) of program storage space. Maximum is 28672 bytes.
Global variables use 102 bytes of dynamic memory.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cusbtiny -Uflash:w:C:\Users\RESCO_~1\AppData\Local\Temp\arduino_build_589622/bikewheel.ino.hex:i

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

Using Port : usb
Using Programmer : usbtiny
avrdude: usbdev_open(): Found USBtinyISP, bus:device: bus-0:\\.\libusb0-0001--0x1781-0x0c9f
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: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: Using SCK period of 10 usec
avrdude: reading input file "C:\Users\RESCO_~1\AppData\Local\Temp\arduino_build_589622/bikewheel.ino.hex"
avrdude: writing flash (26776 bytes):

Writing |
avrdude: error: usbtiny_send: (expected 128, got -5)
################################################## | 100% 19.92s

avrdude: 26776 bytes of flash written
avrdude: verifying flash memory against C:\Users\RESCO_~1\AppData\Local\Temp\arduino_build_589622/bikewheel.ino.hex:
avrdude: load data flash data from input file C:\Users\RESCO_~1\AppData\Local\Temp\arduino_build_589622/bikewheel.ino.hex:
avrdude: input file C:\Users\RESCO_~1\AppData\Local\Temp\arduino_build_589622/bikewheel.ino.hex contains 26776 bytes
avrdude: reading on-chip flash data:

Reading | #############################################the selected serial port ##### does not exist or your board is not connected
##### | 100% 1.26s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x00e4
0x3b != 0xff
avrdude: verification error; content mismatch

avrdude done. Thank you.

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

jackieh111
 
Posts: 11
Joined: Mon Jan 30, 2017 1:07 pm

Re: Trinket pro 5v upload problems

by jackieh111 on Tue Jun 13, 2017 11:09 am

so I tested loading Bikewheel on two other 5v Trinket Pro - and it worked with no issues on one even using the USB3 hub on my mac without a hub. So it seems that two of my trinkets out of three have issues. Can I return them to get new ones?

jackieh111
 
Posts: 11
Joined: Mon Jan 30, 2017 1:07 pm

Please be positive and constructive with your questions and comments.