Hi All,
I have been trying to compile the sprinter firmware for my monotronics board, following the instructions as outlined in
[
www.reprap.org]
ie.
Fresh download/install of arduino-0023 and sanguino-0023r4
Edited arduino-0023/hardware/arduino/cores/arduino/wiring.h and comment out the macro round(x) on line 79
Edited arduino-0023/hardware/sanguino/boards.txt and change atmega644.upload.speed=57600 to atmega644.upload.speed=38400
In Sprinter/Configuration.h, set board to monotronics by changing line 20 to #define MOTHERBOARD 22
In Sprinter/Makefile, made the following changes
INSTALL_DIR = ../../arduino-0023/
#MCU = atmega2560
MCU = atmega644p
At command line typed 'make' to start building....
Got the following errors...
heater.cpp:345:1: error: pasting "DIO" and "-" does not give a valid preprocessing token
heater.cpp:345:1: error: invalid suffix "_WPORT" on integer constant
heater.cpp:345:1: error: pasting "DIO" and "-" does not give a valid preprocessing token
heater.cpp:345:1: error: invalid suffix "_PIN" on integer constant
heater.cpp:345:1: error: pasting "DIO" and "-" does not give a valid preprocessing token
heater.cpp:345:1: error: invalid suffix "_WPORT" on integer constant
heater.cpp:345:1: error: pasting "DIO" and "-" does not give a valid preprocessing token
heater.cpp:345:1: error: invalid suffix "_PIN" on integer constant
heater.cpp: In function ‘void PID_autotune(int)’:
heater.cpp:345:1: error: ‘DIO’ was not declared in this scope
heater.cpp:345:1: error: ‘DIO’ was not declared in this scope
Anyone seen anything similar? It looks like some preprocessor/macro has gone pear-shaped...?