#1 2016-04-07 14:31:31

Scriptwerx
Member
Registered: 2016-04-07
Posts: 4

Firmware won't verify in Arduino IDE - Error compiling.

Just got the PLEN2 DIY Kit.

Trying to update the firmware (latest pulled from, the Git repo) - using Arduino IDE 1.7.9 on OS X El Capitan 10.11.5.

Error compiling.

In file included from ExternalEEPROM.cpp:13:0:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/Wire.h: In static member function 'static char PLEN2::ExternalEEPROM::readSlot(unsigned int, char*, unsigned char)':
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/Wire.h:59:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)
     uint8_t requestFrom(int, int);
             ^
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/Wire.h:57:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)
     uint8_t requestFrom(uint8_t, uint8_t);
             ^
JointController.cpp: In member function 'void PLEN2::JointController::loadSettings()':
JointController.cpp:110:12: error: no match for 'operator[]' (operand types are 'EEPROMClass' and 'int')
  if (EEPROM[INIT_FLAG_ADDRESS()] != INIT_FLAG_VALUE())
            ^
JointController.cpp:112:9: error: no match for 'operator[]' (operand types are 'EEPROMClass' and 'int')
   EEPROM[INIT_FLAG_ADDRESS()] = INIT_FLAG_VALUE();
         ^
JointController.cpp:117:10: error: no match for 'operator[]' (operand types are 'EEPROMClass' and 'int')
    EEPROM[SETTINGS_HEAD_ADDRESS() + index] = filler[index];
          ^
JointController.cpp:125:26: error: no match for 'operator[]' (operand types are 'EEPROMClass' and 'int')
    filler[index] = EEPROM[SETTINGS_HEAD_ADDRESS() + index];
                          ^
JointController.cpp: In member function 'void PLEN2::JointController::resetSettings()':
JointController.cpp:168:8: error: no match for 'operator[]' (operand types are 'EEPROMClass' and 'int')
  EEPROM[INIT_FLAG_ADDRESS()] = INIT_FLAG_VALUE();
        ^
JointController.cpp:173:9: error: no match for 'operator[]' (operand types are 'EEPROMClass' and 'int')
   EEPROM[SETTINGS_HEAD_ADDRESS() + index] = pgm_read_byte(
         ^
JointController.cpp: In member function 'bool PLEN2::JointController::setMinAngle(unsigned char, int)':
JointController.cpp:290:9: error: no match for 'operator[]' (operand types are 'EEPROMClass' and 'int')
   EEPROM[SETTINGS_HEAD_ADDRESS() + address_offset + index] = filler[index];
         ^
JointController.cpp: In member function 'bool PLEN2::JointController::setMaxAngle(unsigned char, int)':
JointController.cpp:338:9: error: no match for 'operator[]' (operand types are 'EEPROMClass' and 'int')
   EEPROM[SETTINGS_HEAD_ADDRESS() + address_offset + index] = filler[index];
         ^
JointController.cpp: In member function 'bool PLEN2::JointController::setHomeAngle(unsigned char, int)':
JointController.cpp:386:9: error: no match for 'operator[]' (operand types are 'EEPROMClass' and 'int')
   EEPROM[SETTINGS_HEAD_ADDRESS() + address_offset + index] = filler[index];
         ^
Error compiling.

Offline

#2 2016-04-09 07:54:09

Guvalif
Moderator
From: Osaka / Japan
Registered: 2015-08-31
Posts: 133
Website

Re: Firmware won't verify in Arduino IDE - Error compiling.

Hi, Scriptwerx

I got the same error on Arduino IDE ver.1.7.9 created by arduino.org.

You could get Arduino IDE ver.1.6.8 created by arduino.cc from following link.
-> https://www.arduino.cc/en/Main/Software

Please ask us again when you have got an error using the IDE.

Offline

#3 2016-04-09 08:46:36

Scriptwerx
Member
Registered: 2016-04-07
Posts: 4

Re: Firmware won't verify in Arduino IDE - Error compiling.

I can't get any software from arduino.cc to work with my current version of OS X El Capitan unfortunately.

The recent Arduino company split (.org and .cc) causes strange issues like this and it's quite annoying.

I'll switch to another machine with an older OS X and see how it goes with the arduino.cc software.

Offline

Board footer

Powered by FluxBB