0

HELP Stormflower Gun: Arduino not uploading to Trinket 5V
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

HELP Stormflower Gun: Arduino not uploading to Trinket 5V

by Spitzfadenc on Sun Jun 18, 2017 9:05 pm

I am currently working on the exact https://learn.adafruit.com/stormflower- ... e/overview Lie Ren Stormflower gun. I bought all the materials and copied the tutorial to a T ( choosing to go with the all in one installation after the normal ones seemed to come with more problems.) I did it on multiple computers, tried a second trinket chip, and bought another usb cable just in case the one I had couldn't send data and still, I get the error message "Arduino: 1.8.3 (Windows 10), Board: "Pro Trinket 5V/16MHz (USB)"

Archiving built core (caching) in: C:\Users\Crysta\AppData\Local\Temp\arduino_cache_843394\core\core_adafruit_avr_protrinket5_0c812875ac70eb4a9b385d8fb077f54c.a
Sketch uses 928 bytes (3%) of program storage space. Maximum is 28672 bytes.
Global variables use 9 bytes of dynamic memory.

An error occurred while uploading the sketch

I don't know what to do at this point to make it work and I have a deadline of one more week to figure it out.
Please help!

Thank you!

Spitzfadenc
 
Posts: 1
Joined: Sun Jun 18, 2017 8:59 pm

Re: HELP Stormflower Gun: Arduino not uploading to Trinket 

by franklin97355 on Sun Jun 18, 2017 11:45 pm

Your board is set to Pro Trinket which is not the same chip as the Trinket. Set the correct board and try again.

franklin97355
 
Posts: 17058
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: HELP Stormflower Gun: Arduino not uploading to Trinket 

by IceDragonIDGN on Mon Jul 17, 2017 11:27 pm

First thing I'm really new to a lot of this so I may have a newbie issue, but I've read the directions and spent a full day Googling. This is far more work than I'm being paid for so I'm in the hole on this project already.

Same problem same board, and it is a pro. 16mzh 5V Pro version.
Using IDE version 1.8.3
Like the other guy I have a deadline and don't have time for a technical puzzle. Any real help would be greatly appreciated.

The error is as follows:
Arduino: 1.8.3 (Windows 10), Board: "Pro Trinket 5V/16MHz (USB)"

In file included from C:\Users\User\Desktop\PortalGun-master\portalGun\portalGun.ino:31:0:

C:\Users\User\Documents\Arduino\libraries\encoder-master/ClickEncoder.h:77:36: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]

const bool getDoubleClickEnabled()

^

C:\Users\User\Documents\Arduino\libraries\encoder-master/ClickEncoder.h:92:37: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]

const bool getAccelerationEnabled()

^

C:\Users\User\Desktop\PortalGun-master\portalGun\portalGun.ino: In function 'void loop()':

C:\Users\User\Desktop\PortalGun-master\portalGun\portalGun.ino:117:10: warning: enumeration value 'Closed' not handled in switch [-Wswitch]

switch (b) {

^

C:\Users\User\Desktop\PortalGun-master\portalGun\portalGun.ino:117:10: warning: enumeration value 'Pressed' not handled in switch [-Wswitch]

C:\Users\User\Desktop\PortalGun-master\portalGun\portalGun.ino:117:10: warning: enumeration value 'Released' not handled in switch [-Wswitch]

Sketch uses 6782 bytes (23%) of program storage space. Maximum is 28672 bytes.
Global variables use 240 bytes of dynamic memory.
An error occurred while uploading the sketch

IceDragonIDGN
 
Posts: 2
Joined: Mon Jul 17, 2017 11:04 pm

Re: HELP Stormflower Gun: Arduino not uploading to Trinket 

by franklin97355 on Mon Jul 17, 2017 11:54 pm

Make sure you have the verbose options set in the preferences and post the results. Please use code tags when posting code or logs to the forums. It preserves formatting and makes it easier for everyone to read the code. Click the </> button above the reply box and past your code between the tags created.

franklin97355
 
Posts: 17058
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: HELP Stormflower Gun: Arduino not uploading to Trinket 

by IceDragonIDGN on Tue Jul 18, 2017 1:16 am

Problem solved! Thanks for the advice on the board. The issue ended up being the "programmer" that was set under "Tools" in the IDE. It should have been set to "usbtiny". It's little things like that not being documented clearly in the how to guides that drive me crazy with this stuff.

IceDragonIDGN
 
Posts: 2
Joined: Mon Jul 17, 2017 11:04 pm

Re: HELP Stormflower Gun: Arduino not uploading to Trinket 

by kodachi148 on Mon Nov 27, 2017 4:21 am

Hi, I've been working on the Trinket Pro 5V (USB). Just like the aforementioned people, I followed the guides but I'm still being struck with an error code. The previous ones (USBTiny related and such) are fixed because I read the people above but now I just have this vomit of error code:

Code: Select all | TOGGLE FULL SIZE
Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Board: "Pro Trinket 5V/16MHz (USB)"

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\Kodachi148\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\Kodachi148\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\Kodachi148\Documents\Arduino\libraries -fqbn=adafruit:avr:protrinket5 -ide-version=10805 -build-path C:\Users\KODACH~1\AppData\Local\Temp\arduino_build_328233 -warnings=none -build-cache C:\Users\KODACH~1\AppData\Local\Temp\arduino_cache_570721 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr -verbose C:\Users\Kodachi148\Documents\Arduino\Final_Feeder\Final_Feeder.ino
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\arduino-builder -compile -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\Kodachi148\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\Kodachi148\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\Kodachi148\Documents\Arduino\libraries -fqbn=adafruit:avr:protrinket5 -ide-version=10805 -build-path C:\Users\KODACH~1\AppData\Local\Temp\arduino_build_328233 -warnings=none -build-cache C:\Users\KODACH~1\AppData\Local\Temp\arduino_cache_570721 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr -verbose C:\Users\Kodachi148\Documents\Arduino\Final_Feeder\Final_Feeder.ino
Using board 'protrinket5' from platform in folder: C:\Users\Kodachi148\Documents\ArduinoData\packages\adafruit\hardware\avr\1.4.9
Using core 'arduino' from platform in folder: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr
Detecting libraries used...
"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PROTRINKET5 -DARDUINO_ARCH_AVR   "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\eightanaloginputs" "C:\Users\KODACH~1\AppData\Local\Temp\arduino_build_328233\sketch\Final_Feeder.ino.cpp" -o "nul"
"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PROTRINKET5 -DARDUINO_ARCH_AVR   "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Kodachi148\Documents\ArduinoData\packages\adafruit\hardware\avr\1.4.9\libraries\Wire" "C:\Users\KODACH~1\AppData\Local\Temp\arduino_build_328233\sketch\Final_Feeder.ino.cpp" -o "nul"
"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PROTRINKET5 -DARDUINO_ARCH_AVR   "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Kodachi148\Documents\ArduinoData\packages\adafruit\hardware\avr\1.4.9\libraries\Wire" "-IC:\Users\Kodachi148\Documents\Arduino\libraries\RTClib-master" "C:\Users\KODACH~1\AppData\Local\Temp\arduino_build_328233\sketch\Final_Feeder.ino.cpp" -o "nul"
"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PROTRINKET5 -DARDUINO_ARCH_AVR   "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Kodachi148\Documents\ArduinoData\packages\adafruit\hardware\avr\1.4.9\libraries\Wire" "-IC:\Users\Kodachi148\Documents\Arduino\libraries\RTClib-master" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries\Stepper\src" "C:\Users\KODACH~1\AppData\Local\Temp\arduino_build_328233\sketch\Final_Feeder.ino.cpp" -o "nul"
"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PROTRINKET5 -DARDUINO_ARCH_AVR   "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Kodachi148\Documents\ArduinoData\packages\adafruit\hardware\avr\1.4.9\libraries\Wire" "-IC:\Users\Kodachi148\Documents\Arduino\libraries\RTClib-master" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries\Stepper\src" "-IC:\Users\Kodachi148\Documents\Arduino\libraries\Low-Power-master" "C:\Users\KODACH~1\AppData\Local\Temp\arduino_build_328233\sketch\Final_Feeder.ino.cpp" -o "nul"
Using cached library dependencies for file: C:\Users\Kodachi148\Documents\ArduinoData\packages\adafruit\hardware\avr\1.4.9\libraries\Wire\TinyWireM.cpp
Using cached library dependencies for file: C:\Users\Kodachi148\Documents\ArduinoData\packages\adafruit\hardware\avr\1.4.9\libraries\Wire\USI_TWI_Master.cpp
Using cached library dependencies for file: C:\Users\Kodachi148\Documents\ArduinoData\packages\adafruit\hardware\avr\1.4.9\libraries\Wire\Wire.cpp
Using cached library dependencies for file: C:\Users\Kodachi148\Documents\ArduinoData\packages\adafruit\hardware\avr\1.4.9\libraries\Wire\utility\twi.c
Using cached library dependencies for file: C:\Users\Kodachi148\Documents\Arduino\libraries\RTClib-master\RTClib.cpp
Using cached library dependencies for file: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries\Stepper\src\Stepper.cpp
Using cached library dependencies for file: C:\Users\Kodachi148\Documents\Arduino\libraries\Low-Power-master\LowPower.cpp
Generating function prototypes...
"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PROTRINKET5 -DARDUINO_ARCH_AVR   "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Kodachi148\Documents\ArduinoData\packages\adafruit\hardware\avr\1.4.9\libraries\Wire" "-IC:\Users\Kodachi148\Documents\Arduino\libraries\RTClib-master" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries\Stepper\src" "-IC:\Users\Kodachi148\Documents\Arduino\libraries\Low-Power-master" "C:\Users\KODACH~1\AppData\Local\Temp\arduino_build_328233\sketch\Final_Feeder.ino.cpp" -o "C:\Users\KODACH~1\AppData\Local\Temp\arduino_build_328233\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\KODACH~1\AppData\Local\Temp\arduino_build_328233\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PROTRINKET5 -DARDUINO_ARCH_AVR   "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Kodachi148\Documents\ArduinoData\packages\adafruit\hardware\avr\1.4.9\libraries\Wire" "-IC:\Users\Kodachi148\Documents\Arduino\libraries\RTClib-master" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries\Stepper\src" "-IC:\Users\Kodachi148\Documents\Arduino\libraries\Low-Power-master" "C:\Users\KODACH~1\AppData\Local\Temp\arduino_build_328233\sketch\Final_Feeder.ino.cpp" -o "C:\Users\KODACH~1\AppData\Local\Temp\arduino_build_328233\sketch\Final_Feeder.ino.cpp.o"
avr-g++: error: CreateProcess: No such file or directory

Multiple libraries were found for "Wire.h"
 Used: C:\Users\Kodachi148\Documents\ArduinoData\packages\adafruit\hardware\avr\1.4.9\libraries\Wire
 Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\Wire
Using library Wire at version 1.0 in folder: C:\Users\Kodachi148\Documents\ArduinoData\packages\adafruit\hardware\avr\1.4.9\libraries\Wire
Using library RTClib-master at version 1.2.0 in folder: C:\Users\Kodachi148\Documents\Arduino\libraries\RTClib-master
Using library Stepper at version 1.1.3 in folder: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries\Stepper
Using library Low-Power-master at version 1.6 in folder: C:\Users\Kodachi148\Documents\Arduino\libraries\Low-Power-master
exit status 1
Error compiling for board Pro Trinket 5V/16MHz (USB).


It appears that it thinks that I'm using various libraries for Wire.h, there is an avr-g++: error - No such file or directory somehow. I am really baffled at this point. The code works just fine on the Uno but is having problems uploading to the Trinket, despite the fact that I have done the best I could to code for the Trinket on the Uno to make for easy transfer.

kodachi148
 
Posts: 1
Joined: Mon Nov 27, 2017 3:57 am

Please be positive and constructive with your questions and comments.