0

Problems using
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Problems using

by mathyou1000 on Tue Sep 14, 2021 12:03 pm

Hi, I am working on the Zelda sword project with my son. We are trying to compile the code in Ardunio. I am running windows 10 and it is seeing the trinket connected

We are getting the following error:

Multiple libraries were found for "Adafruit_NeoPixel.h"
Used: C:\Program Files (x86)\Arduino\libraries\Adafruit_NeoPixel
Not used: C:\Program Files (x86)\Arduino\libraries\Adafruit_NeoPixel

Sketch uses 11,092 bytes (4%) of program storage space. Maximum is 262,144 bytes.
java.io.IOException: Cannot run program "{runtime.tools.bossac-1.7.0-arduino3.path}/bossac.exe": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:26)
at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:115)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:160)
at processing.app.debug.Compiler.upload(Compiler.java:163)
at processing.app.Sketch.upload(Sketch.java:1220)
at processing.app.Sketch.exportApplet(Sketch.java:1194)
at processing.app.Sketch.exportApplet(Sketch.java:1166)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2487)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 9 more

mathyou1000
 
Posts: 2
Joined: Tue Sep 14, 2021 11:49 am

Re: Problems using

by adafruit_support_carter on Tue Sep 14, 2021 1:55 pm

Just to be sure, this is the project guide you are following?
https://learn.adafruit.com/breath-of-th ... d/overview

As a basic check of your Arduino setup, try running this blink example:
https://learn.adafruit.com/breath-of-th ... d/overview
and see if you can get that to upload and run successfully on the Trinket.

adafruit_support_carter
 
Posts: 21067
Joined: Tue Nov 29, 2016 2:45 pm

Re: Problems using

by mathyou1000 on Tue Sep 14, 2021 9:59 pm

Hi Thank you, The real issue is getting Arduino working with the board on my PC. I can make Mu work with the trinket but I can not upload with Arduino. I have enclosed the full error code below (at the bottom of the post) for your review. Is it possible for me to get the code for the trinket for the Zelda guardian sword as below?:
******************************************CODE**********************************************************
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif

// Which pin on the Arduino is connected to the NeoPixels?
// On a Trinket or Gemma we suggest changing this to 1
#define PIN 4

// Color Segments
#define APIXELS 14 // number of first orange pixels
#define BPIXELS 84 // number of blue pixels
#define CPIXELS 93 // second orange pixels

// When we setup the NeoPixel library, we tell it how many pixels, and which pin to use to send signals.
// Note that for older NeoPixel strips you might need to change the third parameter--see the strandtest
// example for more information on possible values.
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(93, PIN, NEO_GRB + NEO_KHZ800);

int delayval = 10; // delay for half a second

void setup() {
// This is for Trinket 5V 16MHz, you can remove these three lines if you are not using a Trinket
#if defined (__AVR_ATtiny85__)
if (F_CPU == 16000000) clock_prescale_set(clock_div_1);
#endif
// End of trinket special code

pixels.begin(); // This initializes the NeoPixel library.
}

void loop() {

// For the first 14 pixels, make them orange, starting from pixel number 0.
for(int i=0;i<APIXELS;i++){
pixels.setPixelColor(i, pixels.Color(255,50,0)); // Set Pixels to Orange Color
pixels.show(); // This sends the updated pixel color to the hardware.
delay(delayval); // Delay for a period of time (in milliseconds).
}

// Fill up 84 pixels with blue, starting with pixel number 14.
for(int i=14;i<BPIXELS;i++){
pixels.setPixelColor(i, pixels.Color(0,250,200)); // Set Pixels to Blue Color
pixels.show(); // This sends the updated pixel color to the hardware.
delay(delayval); // Delay for a period of time (in milliseconds).

}

// Fill up 9 pixels with orange, starting from pixel number 84.
for(int i=84;i<CPIXELS;i++){
pixels.setPixelColor(i, pixels.Color(250,50,0)); //Set Pixels to Orange Color
pixels.show(); // This sends the updated pixel color to the hardware.
delay(delayval); // Delay for a period of time (in milliseconds).
}
}
********************END of CODE**************************************

********************ERROR MESSAGE*********************************
C:\Users\cycle\AppData\Roaming\Arduino15\packages\adafruit\tools\arm-none-eabi-gcc\9-2019q4/bin/arm-none-eabi-objcopy -O ihex -R .eeprom C:\Users\cycle\AppData\Local\Temp\build5177472080559358608.tmp/Blink.cpp.elf C:\Users\cycle\AppData\Local\Temp\build5177472080559358608.tmp/Blink.cpp.hex

Sketch uses 4,812 bytes (1%) of program storage space. Maximum is 262,144 bytes.
Forcing reset using 1200bps open/close on port COM3
PORTS {COM3, } / {} => {}
PORTS {} / {COM4, } => {COM4, }
Found upload port: COM4
{runtime.tools.bossac-1.7.0-arduino3.path}/bossac.exe -i -d --port=COM4 -U true -i -e -w -v C:\Users\cycle\AppData\Local\Temp\build5177472080559358608.tmp/Blink.cpp.bin -R
java.io.IOException: Cannot run program "{runtime.tools.bossac-1.7.0-arduino3.path}/bossac.exe": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:26)
at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:115)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:160)
at processing.app.debug.Compiler.upload(Compiler.java:163)
at processing.app.Sketch.upload(Sketch.java:1220)
at processing.app.Sketch.exportApplet(Sketch.java:1194)
at processing.app.Sketch.exportApplet(Sketch.java:1166)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2487)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 9 more

mathyou1000
 
Posts: 2
Joined: Tue Sep 14, 2021 11:49 am

Re: Problems using

by adafruit_support_carter on Wed Sep 15, 2021 1:01 pm

Are you running Mu and Arduino at the same time? It may be that there's a conflict between programs accessing the serial port.

adafruit_support_carter
 
Posts: 21067
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.