Error Help for Noobie

Hey! Its been a bit since I’ve messed around with my Arduboy. I dusted it off and wanted to swap the game on it and I keep getting this error message (Im using a Mac and I know next to nothing about how this stuff works. Id be happy to just reset it or erase and start over). Any help is appreciated.


Arduino: 1.8.17 Hourly Build 2021/09/06 02:34 (Mac OS X), Board: "Arduino Uno"

/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp: In static member function 'static void Arduboy2Core::bootPins()':
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:137:3: error: 'PORTE' was not declared in this scope
   PORTE |= _BV(A_BUTTON_BIT);
   ^~~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:137:3: note: suggested alternative: 'PORT0'
   PORTE |= _BV(A_BUTTON_BIT);
   ^~~~~
   PORT0
In file included from /private/var/folders/w3/50kln0n51nb04my9fkfypjsxhcm2_f/T/AppTranslocation/F8B09895-235A-4538-B5DB-5DA5825D95A4/d/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,
                 from /private/var/folders/w3/50kln0n51nb04my9fkfypjsxhcm2_f/T/AppTranslocation/F8B09895-235A-4538-B5DB-5DA5825D95A4/d/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
                 from /private/var/folders/w3/50kln0n51nb04my9fkfypjsxhcm2_f/T/AppTranslocation/F8B09895-235A-4538-B5DB-5DA5825D95A4/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
                 from /Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.h:10,
                 from /Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:7:
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.h:99:22: error: 'PORTE6' was not declared in this scope
 #define A_BUTTON_BIT PORTE6
                      ^
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:137:16: note: in expansion of macro 'A_BUTTON_BIT'
   PORTE |= _BV(A_BUTTON_BIT);
                ^~~~~~~~~~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.h:99:22: note: suggested alternative: 'PORTB6'
 #define A_BUTTON_BIT PORTE6
                      ^
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:137:16: note: in expansion of macro 'A_BUTTON_BIT'
   PORTE |= _BV(A_BUTTON_BIT);
                ^~~~~~~~~~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:140:3: error: 'DDRE' was not declared in this scope
   DDRE &= ~(_BV(A_BUTTON_BIT));
   ^~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:140:3: note: suggested alternative: 'DDRB'
   DDRE &= ~(_BV(A_BUTTON_BIT));
   ^~~~
   DDRB
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:144:3: error: 'PORTF' was not declared in this scope
   PORTF |= _BV(LEFT_BUTTON_BIT) | _BV(RIGHT_BUTTON_BIT) |
   ^~~~~
In file included from /Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2.h:10:0,
                 from /Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Audio.cpp:7:
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Audio.cpp: In static member function 'static void Arduboy2Audio::on()':
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.h:114:23: error: 'PORTC7' was not declared in this scope
 #define SPEAKER_2_BIT PORTC7
                       ^
/private/var/folders/w3/50kln0n51nb04my9fkfypjsxhcm2_f/T/AppTranslocation/F8B09895-235A-4538-B5DB-5DA5825D95A4/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                                                 ^~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Audio.cpp:17:25: note: in expansion of macro 'SPEAKER_2_BIT'
   bitSet(SPEAKER_2_DDR, SPEAKER_2_BIT);
                         ^~~~~~~~~~~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:144:3: note: suggested alternative: 'PORT0'
   PORTF |= _BV(LEFT_BUTTON_BIT) | _BV(RIGHT_BUTTON_BIT) |
   ^~~~~
   PORT0
In file included from /private/var/folders/w3/50kln0n51nb04my9fkfypjsxhcm2_f/T/AppTranslocation/F8B09895-235A-4538-B5DB-5DA5825D95A4/d/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,
                 from /private/var/folders/w3/50kln0n51nb04my9fkfypjsxhcm2_f/T/AppTranslocation/F8B09895-235A-4538-B5DB-5DA5825D95A4/d/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
                 from /private/var/folders/w3/50kln0n51nb04my9fkfypjsxhcm2_f/T/AppTranslocation/F8B09895-235A-4538-B5DB-5DA5825D95A4/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
                 from /Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.h:10,
                 from /Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:7:
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.h:83:25: error: 'PORTF5' was not declared in this scope
 #define LEFT_BUTTON_BIT PORTF5
                         ^
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:144:16: note: in expansion of macro 'LEFT_BUTTON_BIT'
   PORTF |= _BV(LEFT_BUTTON_BIT) | _BV(RIGHT_BUTTON_BIT) |
                ^~~~~~~~~~~~~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.h:83:25: note: suggested alternative: 'PORTB5'
 #define LEFT_BUTTON_BIT PORTF5
                         ^
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:144:16: note: in expansion of macro 'LEFT_BUTTON_BIT'
   PORTF |= _BV(LEFT_BUTTON_BIT) | _BV(RIGHT_BUTTON_BIT) |
                ^~~~~~~~~~~~~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.h:87:26: error: 'PORTF6' was not declared in this scope
 #define RIGHT_BUTTON_BIT PORTF6
                          ^
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:144:39: note: in expansion of macro 'RIGHT_BUTTON_BIT'
   PORTF |= _BV(LEFT_BUTTON_BIT) | _BV(RIGHT_BUTTON_BIT) |
                                       ^~~~~~~~~~~~~~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.h:114:23: note: suggested alternative: 'PORTB7'
 #define SPEAKER_2_BIT PORTC7
                       ^
/private/var/folders/w3/50kln0n51nb04my9fkfypjsxhcm2_f/T/AppTranslocation/F8B09895-235A-4538-B5DB-5DA5825D95A4/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                                                 ^~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Audio.cpp:17:25: note: in expansion of macro 'SPEAKER_2_BIT'
   bitSet(SPEAKER_2_DDR, SPEAKER_2_BIT);
                         ^~~~~~~~~~~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Audio.cpp: In static member function 'static void Arduboy2Audio::off()':
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.h:114:23: error: 'PORTC7' was not declared in this scope
 #define SPEAKER_2_BIT PORTC7
                       ^
/private/var/folders/w3/50kln0n51nb04my9fkfypjsxhcm2_f/T/AppTranslocation/F8B09895-235A-4538-B5DB-5DA5825D95A4/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'
 #define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
                                                    ^~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Audio.cpp:30:27: note: in expansion of macro 'SPEAKER_2_BIT'
   bitClear(SPEAKER_2_DDR, SPEAKER_2_BIT);
                           ^~~~~~~~~~~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.h:87:26: note: suggested alternative: 'PORTB6'
 #define RIGHT_BUTTON_BIT PORTF6
                          ^
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:144:39: note: in expansion of macro 'RIGHT_BUTTON_BIT'
   PORTF |= _BV(LEFT_BUTTON_BIT) | _BV(RIGHT_BUTTON_BIT) |
                                       ^~~~~~~~~~~~~~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.h:91:23: error: 'PORTF7' was not declared in this scope
 #define UP_BUTTON_BIT PORTF7
                       ^
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:145:16: note: in expansion of macro 'UP_BUTTON_BIT'
            _BV(UP_BUTTON_BIT) | _BV(DOWN_BUTTON_BIT);
                ^~~~~~~~~~~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.h:114:23: note: suggested alternative: 'PORTB7'
 #define SPEAKER_2_BIT PORTC7
                       ^
/private/var/folders/w3/50kln0n51nb04my9fkfypjsxhcm2_f/T/AppTranslocation/F8B09895-235A-4538-B5DB-5DA5825D95A4/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'
 #define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
                                                    ^~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Audio.cpp:30:27: note: in expansion of macro 'SPEAKER_2_BIT'
   bitClear(SPEAKER_2_DDR, SPEAKER_2_BIT);
                           ^~~~~~~~~~~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.h:91:23: note: suggested alternative: 'PORTB7'
 #define UP_BUTTON_BIT PORTF7
                       ^
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:145:16: note: in expansion of macro 'UP_BUTTON_BIT'
            _BV(UP_BUTTON_BIT) | _BV(DOWN_BUTTON_BIT);
                ^~~~~~~~~~~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.h:95:25: error: 'PORTF4' was not declared in this scope
 #define DOWN_BUTTON_BIT PORTF4
                         ^
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:145:37: note: in expansion of macro 'DOWN_BUTTON_BIT'
            _BV(UP_BUTTON_BIT) | _BV(DOWN_BUTTON_BIT);
                                     ^~~~~~~~~~~~~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.h:95:25: note: suggested alternative: 'PORTB4'
 #define DOWN_BUTTON_BIT PORTF4
                         ^
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:145:37: note: in expansion of macro 'DOWN_BUTTON_BIT'
            _BV(UP_BUTTON_BIT) | _BV(DOWN_BUTTON_BIT);
                                     ^~~~~~~~~~~~~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.h:118:26: error: 'PORTF1' was not declared in this scope
 #define RAND_SEED_IN_BIT PORTF1
                          ^
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:147:18: note: in expansion of macro 'RAND_SEED_IN_BIT'
   PORTF &= ~(_BV(RAND_SEED_IN_BIT));
                  ^~~~~~~~~~~~~~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.h:118:26: note: suggested alternative: 'PORTB1'
 #define RAND_SEED_IN_BIT PORTF1
                          ^
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:147:18: note: in expansion of macro 'RAND_SEED_IN_BIT'
   PORTF &= ~(_BV(RAND_SEED_IN_BIT));
                  ^~~~~~~~~~~~~~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:149:3: error: 'DDRF' was not declared in this scope
   DDRF &= ~(_BV(LEFT_BUTTON_BIT) | _BV(RIGHT_BUTTON_BIT) |
   ^~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:149:3: note: suggested alternative: 'WDRF'
   DDRF &= ~(_BV(LEFT_BUTTON_BIT) | _BV(RIGHT_BUTTON_BIT) |
   ^~~~
   WDRF
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp: In static member function 'static void Arduboy2Core::bootPowerSaving()':
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:271:3: error: 'PRR0' was not declared in this scope
   PRR0 = _BV(PRTWI) | _BV(PRADC);
   ^~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:271:3: note: suggested alternative: 'PRR'
   PRR0 = _BV(PRTWI) | _BV(PRADC);
   ^~~~
   PRR
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:273:3: error: 'PRR1' was not declared in this scope
   PRR1 = _BV(PRUSART1);
   ^~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:273:3: note: suggested alternative: 'PRR'
   PRR1 = _BV(PRUSART1);
   ^~~~
   PRR
In file included from /private/var/folders/w3/50kln0n51nb04my9fkfypjsxhcm2_f/T/AppTranslocation/F8B09895-235A-4538-B5DB-5DA5825D95A4/d/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,
                 from /private/var/folders/w3/50kln0n51nb04my9fkfypjsxhcm2_f/T/AppTranslocation/F8B09895-235A-4538-B5DB-5DA5825D95A4/d/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
                 from /private/var/folders/w3/50kln0n51nb04my9fkfypjsxhcm2_f/T/AppTranslocation/F8B09895-235A-4538-B5DB-5DA5825D95A4/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
                 from /Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.h:10,
                 from /Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:7:
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:273:14: error: 'PRUSART1' was not declared in this scope
   PRR1 = _BV(PRUSART1);
              ^
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2.cpp: In member function 'bool Arduboy2Base::nextFrameDEV()':
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2.cpp:243:7: error: 'TXLED1' was not declared in this scope
       TXLED1;
       ^~~~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:273:14: note: suggested alternative: 'PRUSART0'
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2.cpp:243:7: note: suggested alternative: 'TWD1'
       TXLED1;
       ^~~~~~
       TWD1
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2.cpp:245:7: error: 'TXLED0' was not declared in this scope
       TXLED0;
       ^~~~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp: In static member function 'static uint8_t Arduboy2Core::buttonsState()':
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:463:16: error: 'PINF' was not declared in this scope
   buttons = ((~PINF) & B11110000);
                ^~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2.cpp:245:7: note: suggested alternative: 'TXEN0'
       TXLED0;
       ^~~~~~
       TXEN0
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:463:16: note: suggested alternative: 'PIN0'
   buttons = ((~PINF) & B11110000);
                ^~~~
                PIN0
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:465:27: error: 'PINE' was not declared in this scope
   buttons = buttons | (((~PINE) & B01000000) >> 3);
                           ^~~~
/Users/meachga/Documents/Arduino/libraries/Arduboy2/src/Arduboy2Core.cpp:465:27: note: suggested alternative: 'PIN0'
   buttons = buttons | (((~PINE) & B01000000) >> 3);
                           ^~~~
                           PIN0
exit status 1
Error compiling for board Arduino Uno.


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

You’re trying to compile for Arduino Uno.
You need to be compiling for Arduino Leonardo.

Select Arduino Leonardo from Tools > Board

Thank you. That seems to be progressing something. Now Im getting

avrdude: butterfly_recv(): programmer is not responding

and a warning about storage space. Am I supposed to erase it before hitting upload on a new game?

Make sure your Arduboy is plugged in and turned on, then look at Tools > Port.
There should hopefully only be one option, and that is the option you need to select before uploading.

The compiler always reports the memory and progmem usage when compiling.
Unless the memory usage exceeds the maximum or is dangerously close to the maximum, there’s no problem.

No. Uploading automatically overwrites whatever is already on the Arduboy.

1 Like

Sadly the issue is persisting. When I hit upload the arduboy clearly resets and does something. But the error still happens and the same game loads up.

Thanks for continuing to try and help me.

  • Are you using an ‘official’ Arduboy or a homemade one?
  • If you have an official Arduboy, is it an Arduboy FX?
  • Have you tried using a different USB cable?
  • Is that the only port in the port list or are there others?

Yes, official Arduboy. Not FX.
I’ve tried all the ports on my Macbook Pro. The only thing consistently being used is a USB adaptor because my Macbook Pro only has USB-C ports. I’ve tried the included cable that came with the Arduboy and a different USB cable I have.
There are a few ports listed, but one of them says, Arduino Leonardo

Sounds like the last game you’ve uploaded causes a Magic boot key issue that justs restarts your Arduboy instead of entering bootloader mode.

Checkout:

Searching for Magic boot key or bricked Arduboy may also be helpful.

2 Likes

THAT WORKED!!! Thank you @Mr.Blinky for the latest tip. Thank you @Pharap for sticking with me and trying to help.

2 Likes