Serious problems with FW compiling by Arduino IDE
Hello forum,
i need some help please.
Yesterday want to configure new FW with configuration tool on Repetier site, than download it and open with arduino IDE.
Can't send it to the mega because got a lot of errors during compiling, try older versions of IDE and same problem.
Than i try a old downloaded and configured FW from 2016 and try compiling it with old IDE and got same problems.
2 years ago was no problem during compiling and than upload to mega.
Here the error list:
Arduino: 1.8.5 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
sketch\Eeprom.cpp: In static member function 'static void EEPROM::restoreEEPROMSettingsFromConfiguration()':
Eeprom.cpp:105: error: expected primary-expression before ';' token
heatedBedController.pidPGain = HEATED_BED_PID_PGAIN_OR_DEAD_TIME;
^
Eeprom.cpp:106: error: expected primary-expression before ';' token
heatedBedController.pidIGain = HEATED_BED_PID_IGAIN;
^
Eeprom.cpp:131: error: expected primary-expression before ';' token
e->stepsPerMM = EXT0_STEPS_PER_MM;
^
Eeprom.cpp:139: error: expected primary-expression before ';' token
e->tempControl.pidPGain = EXT0_PID_PGAIN_OR_DEAD_TIME;
^
Eeprom.cpp:140: error: expected primary-expression before ';' token
e->tempControl.pidIGain = EXT0_PID_I;
^
Eeprom.cpp:141: error: expected primary-expression before ';' token
e->tempControl.pidDGain = EXT0_PID_D;
^
sketch\Eeprom.cpp: In static member function 'static void EEPROM::initalizeUncached()':
Eeprom.cpp:467: error: expected primary-expression before ')' token
HAL::eprSetFloat(EPR_Z_PROBE_HEIGHT, Z_PROBE_HEIGHT);
^
sketch\Eeprom.cpp: In static member function 'static void EEPROM::readDataFromEEPROM(bool)':
Eeprom.cpp:663: error: expected primary-expression before ')' token
HAL::eprSetFloat(EPR_Z_PROBE_HEIGHT, Z_PROBE_HEIGHT);
^
exit status 1
expected primary-expression before ';' token
sketch\Eeprom.cpp: In static member function 'static void EEPROM::restoreEEPROMSettingsFromConfiguration()':
Eeprom.cpp:105: error: expected primary-expression before ';' token
heatedBedController.pidPGain = HEATED_BED_PID_PGAIN_OR_DEAD_TIME;
^
Eeprom.cpp:106: error: expected primary-expression before ';' token
heatedBedController.pidIGain = HEATED_BED_PID_IGAIN;
^
Eeprom.cpp:131: error: expected primary-expression before ';' token
e->stepsPerMM = EXT0_STEPS_PER_MM;
^
Eeprom.cpp:139: error: expected primary-expression before ';' token
e->tempControl.pidPGain = EXT0_PID_PGAIN_OR_DEAD_TIME;
^
Eeprom.cpp:140: error: expected primary-expression before ';' token
e->tempControl.pidIGain = EXT0_PID_I;
^
Eeprom.cpp:141: error: expected primary-expression before ';' token
e->tempControl.pidDGain = EXT0_PID_D;
^
sketch\Eeprom.cpp: In static member function 'static void EEPROM::initalizeUncached()':
Eeprom.cpp:467: error: expected primary-expression before ')' token
HAL::eprSetFloat(EPR_Z_PROBE_HEIGHT, Z_PROBE_HEIGHT);
^
sketch\Eeprom.cpp: In static member function 'static void EEPROM::readDataFromEEPROM(bool)':
Eeprom.cpp:663: error: expected primary-expression before ')' token
HAL::eprSetFloat(EPR_Z_PROBE_HEIGHT, Z_PROBE_HEIGHT);
^
exit status 1
expected primary-expression before ';' token
Please help
Regards
Hermann
Comments
heatedBedController.pidPGain = HEATED_BED_PID_PGAIN_OR_DEAD_TIME;
HEATED_BED_PID_PGAIN_OR_DEAD_TIME is a macro defined in configuration.h. If it is not in the config file compiler gets there nothing making sense causing the error. So my guess is that your configuration.h doe snot define these values. Maybe because it is an older config which does not define them, also at least EXT0_PID_I is very old.
Also current releases require a newer arduino ide, but I see you have 1.8.5 which is new enough for the current releases. But I think they have problems with very old firmwares as arduino has changed a bit the handling of the files.