Can't Upload Jack to my Arduboy

I have the same issue with every game i tried downloading. I am trying to follow the guide to uploading a game but it’s driving me insane trying to figure out every little thing.

Here is the error message I keep getting. The main part I keep seeing that is actually in the code is ‘power_usart1_disable’ was not declared in this scope

Arduino: 1.6.9 (Windows 10), Board: "Arduino/Genuino Uno"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\Slave II\Documents\Arduino\libraries" -fqbn=arduino:avr:uno -ide-version=10609 -build-path "C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp" -warnings=default -prefs=build.warn_data_percentage=75 -verbose "C:\Users\Slave II\Documents\Arduino\BLBA_AB_15\BLBA_AB_15.ino"
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\Slave II\Documents\Arduino\libraries" -fqbn=arduino:avr:uno -ide-version=10609 -build-path "C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp" -warnings=default -prefs=build.warn_data_percentage=75 -verbose "C:\Users\Slave II\Documents\Arduino\BLBA_AB_15\BLBA_AB_15.ino"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\BLBA_AB_15.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\BLBA_AB_15.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\BLBA_AB_15.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src\SPI.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\BLBA_AB_15.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\BLBA_AB_15.ino.cpp" -o "C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os  -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp" -o "C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp.o"
C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp: In member function 'void Arduboy::saveMuchPower()':

Arglib.cpp:181: error: 'power_usart1_disable' was not declared in this scope

   power_usart1_disable();

                        ^

In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,

                 from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src/SPI.h:17,

                 from C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.h:4,

                 from C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp:1:

C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp: In member function 'void Arduboy::initRandomSeed()':

Arglib.h:39: error: 'MUX4' was not declared in this scope

 #define ADC_VOLTAGE _BV(REFS0) | _BV(MUX4) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1)

                                      ^

C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp:251:42: note: in expansion of macro 'ADC_VOLTAGE'

   randomSeed(~rawADC(ADC_TEMP) * ~rawADC(ADC_VOLTAGE) * ~micros() + micros());

                                          ^

C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp: In member function 'uint16_t Arduboy::rawADC(byte)':

Arglib.cpp:260: error: 'MUX5' was not declared in this scope

     ADCSRB = _BV(MUX5);

                  ^

C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp: In member function 'uint8_t Arduboy::getInput()':

Arglib.cpp:1141: error: 'PINF' was not declared in this scope

   buttons = ((~PINF) & B11110000);

                ^

Arglib.cpp:1143: error: 'PINE' was not declared in this scope

   buttons = buttons | (((~PINE) & B01000000) >> 3);

                           ^

C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp: In member function 'void ArduboyAudio::on()':

Arglib.cpp:1185: error: 'power_timer3_enable' was not declared in this scope

   power_timer3_enable();

                       ^

C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp: In member function 'void ArduboyAudio::off()':

Arglib.cpp:1196: error: 'power_timer3_disable' was not declared in this scope

   power_timer3_disable();

                        ^

C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp: In member function 'void ArduboyTunes::initChannel(byte)':

Arglib.cpp:1239: error: 'TCCR3A' was not declared in this scope

       TCCR3A = 0;

       ^

Arglib.cpp:1240: error: 'TCCR3B' was not declared in this scope

       TCCR3B = 0;

       ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src/SPI.h:17:0,

                 from C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.h:4,

                 from C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp:1:

Arglib.cpp:1241: error: 'WGM32' was not declared in this scope

       bitWrite(TCCR3B, WGM32, 1);

                        ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:104:49: note: in definition of macro 'bitSet'

 #define bitSet(value, bit) ((value) |= (1UL << (bit)))

                                                 ^

C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp:1241:7: note: in expansion of macro 'bitWrite'

       bitWrite(TCCR3B, WGM32, 1);

       ^

Arglib.cpp:1242: error: 'CS30' was not declared in this scope

       bitWrite(TCCR3B, CS30, 1);

                        ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:104:49: note: in definition of macro 'bitSet'

 #define bitSet(value, bit) ((value) |= (1UL << (bit)))

                                                 ^

C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp:1242:7: note: in expansion of macro 'bitWrite'

       bitWrite(TCCR3B, CS30, 1);

       ^

C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp: In static member function 'static void ArduboyTunes::playNote(byte, byte)':

Arglib.cpp:1285: error: 'TCCR3B' was not declared in this scope

       TCCR3B = (TCCR3B & 0b11111000) | prescalar_bits;

       ^

Arglib.cpp:1286: error: 'OCR3A' was not declared in this scope

       OCR3A = ocr;

       ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src/SPI.h:17:0,

                 from C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.h:4,

                 from C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp:1:

Arglib.cpp:1289: error: 'TIMSK3' was not declared in this scope

       bitWrite(TIMSK3, OCIE3A, 1);

                ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:104:30: note: in definition of macro 'bitSet'

 #define bitSet(value, bit) ((value) |= (1UL << (bit)))

                              ^

C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp:1289:7: note: in expansion of macro 'bitWrite'

       bitWrite(TIMSK3, OCIE3A, 1);

       ^

Arglib.cpp:1289: error: 'OCIE3A' was not declared in this scope

       bitWrite(TIMSK3, OCIE3A, 1);

                        ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:104:49: note: in definition of macro 'bitSet'

 #define bitSet(value, bit) ((value) |= (1UL << (bit)))

                                                 ^

C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp:1289:7: note: in expansion of macro 'bitWrite'

       bitWrite(TIMSK3, OCIE3A, 1);

       ^

C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp: In member function 'void ArduboyTunes::closeChannels()':

Arglib.cpp:1383: error: 'TIMSK3' was not declared in this scope

         TIMSK3 &= ~(1 << OCIE3A);

         ^

Arglib.cpp:1383: error: 'OCIE3A' was not declared in this scope

         TIMSK3 &= ~(1 << OCIE3A);

                          ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:30:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src/SPI.h:17,

                 from C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.h:4,

                 from C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp:1:

C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp: In function 'void TIMER3_COMPA_vect()':

C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp:1462:5: warning: 'TIMER3_COMPA_vect' appears to be a misspelled signal handler [enabled by default]

 ISR(TIMER3_COMPA_vect) {  // TIMER 3

     ^

C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp: At global scope:

C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp:142:6: warning: always_inline function might not be inlinable [-Wattributes]

 void Arduboy::safeMode()

      ^

C:\Users\SLAVEI~1\AppData\Local\Temp\buildb4a7674d5c126a4482ef30201f08a5fd.tmp\sketch\Arglib.cpp:92:6: warning: always_inline function might not be inlinable [-Wattributes]

 void Arduboy::bootLCD()

      ^

Using library SPI at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI 
Using library EEPROM at version 2.0 in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM 
exit status 1
'power_usart1_disable' was not declared in this scope

Looks like the errors I had when I added arduboy.h to team arg games, are they team arg games and does it say “include arduboy.h” at the top? If so, delete that line

You should select Arduboy (if you installed Arduboy board support by following the second part of Step 2 in the Quick Start Guide) or Arduino Leonardo as the board type using
Tools > Board:

This is described in Step 3 of the Quick Start Guide under the heading
Connect your Arduboy and Set the Board Type and Port

2 Likes

It does. I deleted it as instructed but now I get a different error.

exit status 1
’byte’ does not name a type

Looks like changing it to Arduino Leonardo worked. Thank you.

3 Likes