Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can't upload sketches to Trinket16MHz with IDE V1.8.2 (Read 3983 times)
FrankP
Full Member
***
Offline


Posts: 240
Joined: Oct 19th, 2011
Can't upload sketches to Trinket16MHz with IDE V1.8.2
May 10th, 2017 at 1:11am
Print Post  
Hi,

I have just updated my Arduino IDE to V1.8.2, and have verified that I can successfully upload a sketch to my Adafruit Trinket 5V 16MHz board.  However, when I try the same trick from VS2017 and the latest VM version (1.1702.15), It fails with the following errors:

-----------------

Compiling 'FeedMe3' for 'Adafruit Trinket 16MHz'
Program size: 3,350 bytes (used 63% of a 5,310 byte maximum) (1.14 secs)
 
Uploading 'FeedMe3' to 'Adafruit Trinket 16MHz' using 'COM18'
Uploader started for board Adafruit Trinket 16MHz
Upload method will be: bootloader
Uploading via Bootloader 
c:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude -V "-Cc:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf" -v -pattiny85 -c{upload.protocol} -PCOM18 -b{upload.speed} -D eedMe3.ino.hex:i"
The uploader returned an error
avrdude: invalid baud rate specified '{upload.speed}'
Toolchain reload complete

-----------------

Any idea what I'm doing wrong here?  I have 'Adafruit Trinket 16MHz' selected for the board, and 'USBTinyISP' selected for the uploader.

TIA,

Frank
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload sketches to Trinket16MHz with IDE V1.8.2
Reply #1 - May 10th, 2017 at 11:45am
Print Post  
Assuming you have also updated visual micro ....

The upload speed is missing for some reason. I will have to look into it.

You can add a board.txt to the current project

upload.speed=what ever the speed should be

You can see the speed if you switch on file>preferences>verbose in the arduino ide

  
Back to top
WWW  
IP Logged
 
FrankP
Full Member
***
Offline


Posts: 240
Joined: Oct 19th, 2011
Re: Can't upload sketches to Trinket16MHz with IDE V1.8.2
Reply #2 - May 10th, 2017 at 11:11pm
Print Post  
Tim@Visual Micro wrote on May 10th, 2017 at 11:45am:
Assuming you have also updated visual micro ....

The upload speed is missing for some reason. I will have to look into it.

You can add a board.txt to the current project

upload.speed=what ever the speed should be

You can see the speed if you switch on file>preferences>verbose in the arduino ide



Thanks for the prompt response.  Yes, as noted in my original post, I updated Visual Micro as well as the Arduino IDE

Using the IDE with verbose logging set, I uploaded a sketch to my Trinket, and recorded the log output, as shown below. However, I was unable to find anything that looked like an upload port speed.If you can find one, please let me know Wink.

Frank



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                      : 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
           flash         65     6    32    0 yes      8192   64    128 30000 30000 0xff 0xff
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    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 = 0x1e930b (probably t85)
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\Frank\AppData\Local\Temp\arduino_build_684512/SqWaveGen.ino.hex"
avrdude: writing flash (564 bytes):

Writing | #####avrdude: 3 retries during SPI command
######avrdude: 3 retries during SPI command
#####avrdude: 2 retries during SPI command
######avrdude: 3 retries during SPI command
#####avrdude: 3 retries during SPI command
######avrdude: 3 retries during SPI command
#####avrdude: 3 retries during SPI command
######avrdude: 3 retries during SPI command
###### | 100% 0.35s

avrdude: 564 bytes of flash written
avrdude: verifying flash memory against C:\Users\Frank\AppData\Local\Temp\arduino_build_684512/SqWaveGen.ino.hex:
avrdude: load data flash data from input file C:\Users\Frank\AppData\Local\Temp\arduino_build_684512/SqWaveGen.ino.hex:
avrdude: input file C:\Users\Frank\AppData\Local\Temp\arduino_build_684512/SqWaveGen.ino.hex contains 564 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.06s

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

avrdude done.  Thank you.


  
Back to top
 
IP Logged
 
FrankP
Full Member
***
Offline


Posts: 240
Joined: Oct 19th, 2011
Re: Can't upload sketches to Trinket16MHz with IDE V1.8.2
Reply #3 - May 10th, 2017 at 11:23pm
Print Post  
Also, I tried adding the line

trinket5.upload.speed=19200

to the boards.txt file in C:\Users\Frank\Documents\Arduino\hardware\Trinket\avr folder, but it didn't change anything.  In fact, I also tried '115200' and '0', also without effect


  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload sketches to Trinket16MHz with IDE V1.8.2
Reply #4 - May 10th, 2017 at 11:26pm
Print Post  
What are you clicking to upload in the arduino ide?

It looks like you have the USBtinyISP programmer selected.

So in visual micro you can select that on the "vmicro>upload menu" and also switch on the "always use for upload" option on the same menu. then all the upload commands will se the programmer.

Does this help?
  
Back to top
WWW  
IP Logged
 
FrankP
Full Member
***
Offline


Posts: 240
Joined: Oct 19th, 2011
Re: Can't upload sketches to Trinket16MHz with IDE V1.8.2
Reply #5 - May 10th, 2017 at 11:56pm
Print Post  
Tim,

Yep - worked like a charm!  I was a bit surprised, as I swear I had tried that option (checking the 'Always use this...' box) before, with no luck.

Ah, well, not going to argue with success!!

Frank
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint