Problems with compiling with IDE 1.81

I've downloaded 92.9 firmware and tried to compile it under IDE 1.81, both locally and cloud versions and get a heap of errors. Previous older version of firmware compiled fine under IDE 1.58r2, and simple examples work OK on IDE 1.81.
I'm a bit out of my depth interpreting these errors; I'm hoping this is just one thing I've forgotten to do.....?
Thanks in advance. 
Errors are:

arduino-builder/arduino-builder -compile -core-api-version 10611 -build-path /tmp/124835571 -hardware arduino-builder/hardware -hardware arduino-builder/packages/cores -tools arduino-builder/tools -tools arduino-builder/packages/tools -built-in-libraries arduino-builder/latest -libraries /tmp/135549156/pinned -libraries /tmp/135549156/custom -fqbn arduino:avr:mega:cpu=atmega1280 -verbose=false /tmp/135549156/Repetier

In file included from /tmp/124835571/sketch/HAL.h:83:0,

from /tmp/124835571/sketch/Repetier.h:539,

from /tmp/124835571/sketch/Extruder.cpp:22:

/tmp/124835571/sketch/Extruder.cpp: In static member function 'static void Extruder::initExtruder()':

/tmp/124835571/sketch/fastio.h:36:31: error: 'DIOHEATER_3_PIN_DDR' was not declared in this scope

#define _SET_OUTPUT(IO) do {DIO ## IO ## _DDR |= MASK(DIO ## IO ## _PIN); } while (0)

^

/tmp/124835571/sketch/fastio.h:56:26: note: in expansion of macro '_SET_OUTPUT'

#define SET_OUTPUT(IO) _SET_OUTPUT(IO)

^

/tmp/124835571/sketch/Extruder.cpp:591:5: note: in expansion of macro 'SET_OUTPUT'

SET_OUTPUT(HEATED_BED_HEATER_PIN);

^

In file included from /tmp/124835571/sketch/HAL.h:83:0,

from /tmp/124835571/sketch/Repetier.h:539,

from /tmp/124835571/sketch/Extruder.cpp:22:

/tmp/124835571/sketch/fastio.h:36:59: error: 'DIOHEATER_3_PIN_PIN' was not declared in this scope

#define _SET_OUTPUT(IO) do {DIO ## IO ## _DDR |= MASK(DIO ## IO ## _PIN); } while (0)

^

/tmp/124835571/sketch/fastio.h:17:30: note: in definition of macro 'MASK'

#define MASK(PIN) (1 << PIN)

^

/tmp/124835571/sketch/fastio.h:56:26: note: in expansion of macro '_SET_OUTPUT'

#define SET_OUTPUT(IO) _SET_OUTPUT(IO)

^

/tmp/124835571/sketch/Extruder.cpp:591:5: note: in expansion of macro 'SET_OUTPUT'

SET_OUTPUT(HEATED_BED_HEATER_PIN);

^

/tmp/124835571/sketch/fastio.h:29:39: error: 'DIOHEATER_3_PIN_WPORT' was not declared in this scope

#define _WRITE(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

^

/tmp/124835571/sketch/fastio.h:48:25: note: in expansion of macro '_WRITE'

#define WRITE(IO, v) _WRITE(IO, v)

^

/tmp/124835571/sketch/Extruder.cpp:592:5: note: in expansion of macro 'WRITE'

WRITE(HEATED_BED_HEATER_PIN, HEATER_PINS_INVERTED);

^

/tmp/124835571/sketch/fastio.h:29:68: error: 'DIOHEATER_3_PIN_PIN' was not declared in this scope

#define _WRITE(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

^

/tmp/124835571/sketch/fastio.h:17:30: note: in definition of macro 'MASK'

#define MASK(PIN) (1 << PIN)

^

/tmp/124835571/sketch/fastio.h:48:25: note: in expansion of macro '_WRITE'

#define WRITE(IO, v) _WRITE(IO, v)

^

/tmp/124835571/sketch/Extruder.cpp:592:5: note: in expansion of macro 'WRITE'

WRITE(HEATED_BED_HEATER_PIN, HEATER_PINS_INVERTED);

^

/tmp/124835571/sketch/fastio.h:29:96: error: 'DIOHEATER_3_PIN_WPORT' was not declared in this scope

#define _WRITE(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

^

/tmp/124835571/sketch/fastio.h:48:25: note: in expansion of macro '_WRITE'

#define WRITE(IO, v) _WRITE(IO, v)

^

/tmp/124835571/sketch/Extruder.cpp:592:5: note: in expansion of macro 'WRITE'

WRITE(HEATED_BED_HEATER_PIN, HEATER_PINS_INVERTED);

^

/tmp/124835571/sketch/fastio.h:29:126: error: 'DIOHEATER_3_PIN_PIN' was not declared in this scope

#define _WRITE(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

^

/tmp/124835571/sketch/fastio.h:17:30: note: in definition of macro 'MASK'

#define MASK(PIN) (1 << PIN)

^

/tmp/124835571/sketch/fastio.h:48:25: note: in expansion of macro '_WRITE'

#define WRITE(IO, v) _WRITE(IO, v)

^

/tmp/124835571/sketch/Extruder.cpp:592:5: note: in expansion of macro 'WRITE'

WRITE(HEATED_BED_HEATER_PIN, HEATER_PINS_INVERTED);

^

exit status 1


Comments

  • You are using pin names that are not defined for your board like HEATER_3_PIN. Most boards do not have that much heaters. Heated bed normally is HEATER_1_PIN.
Sign In or Register to comment.