Due to high demand, expect some shipping delays at this time - orders may not ship for up to 2-3 business days.
0

Trinket Pro 5V programming problems
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Trinket Pro 5V programming problems

by CodyThatWilson on Mon Jan 24, 2022 1:45 pm

Hi all,

I am working through https://learn.adafruit.com/guardian-rob ... w/software and I'm using the pro 5V controller.

I can't seem to get it to program, no matter what I do. I have a newer laptop, and it would not connect - so I moved to two other computers with the same issue. I noticed that there is a warning about USB2.0, so I then used an older computer that is a friends. However, I'm getting this issue now that I can't find a solution for:

Code: Select all | TOGGLE FULL SIZE
Sketch uses 924 bytes (3%) of program storage space. Maximum is 28672 bytes.
Global variables use 9 bytes of dynamic memory.
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?


I have it set to
Code: Select all | TOGGLE FULL SIZE
Pro Trinket 5V/16MHz USB
USBtinyISP
port dev/ttyS4 (happened automatically?, doesn't do anything if I change it to S0 or move the USB input)


The trinket is flashing red, and I can press the trinket button (to get to bootloader) and immediatly press the upload on the arduino blink code and the red light will stop blinking when it spits out the error message. Here's what happens when it's not in bootloader mode (so I know it can at least see something):

Code: Select all | TOGGLE FULL SIZE
avrdude: error: usbtiny_transmit: Input/output error
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude: error: usbtiny_transmit: Input/output error
avrdude: error: usbtiny_transmit: Input/output error


Thoughts? I've been working on this project for days now, and I'm pretty stumped.

CodyThatWilson
 
Posts: 7
Joined: Fri Dec 24, 2021 8:59 pm

Re: Trinket Pro 5V programming problems

by CodyThatWilson on Mon Jan 24, 2022 1:46 pm

Here is the blink code, it verifys just fine (it's the example)

Code: Select all | TOGGLE FULL SIZE
/*
  Blink

  Turns an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
  it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
  the correct LED pin independent of which board is used.
  If you want to know what pin the on-board LED is connected to on your Arduino
  model, check the Technical Specs of your board at:
  https://www.arduino.cc/en/Main/Products

  modified 8 May 2014
  by Scott Fitzgerald
  modified 2 Sep 2016
  by Arturo Guadalupi
  modified 8 Sep 2016
  by Colby Newman

  This example code is in the public domain.

  https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink
*/

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

CodyThatWilson
 
Posts: 7
Joined: Fri Dec 24, 2021 8:59 pm

Re: Trinket Pro 5V programming problems

by CodyThatWilson on Mon Jan 24, 2022 2:27 pm

I enabled more output if this helps -


Code: Select all | TOGGLE FULL SIZE
avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/cwilson/Downloads/arduino-1.8.19/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/root/.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: 001:075
         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, https://learn.adafruit.com/usbtinyisp
avrdude: programmer operation not supported

avrdude: Using SCK period of 10 usec
avrdude: AVR device initialized and ready to accept instructions

An error occurred while uploading the sketch
Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e930b (probably t85)
avrdude: Expected signature for ATmega328P is 1E 95 0F
         Double check chip, or use -F to override this check.

avrdude done.  Thank you.

CodyThatWilson
 
Posts: 7
Joined: Fri Dec 24, 2021 8:59 pm

Please be positive and constructive with your questions and comments.