Welcome! Log In Create A New Profile

Advanced

Problem compiling Sprinter firmware for monotronics

Posted by delory 
Problem compiling Sprinter firmware for monotronics
April 09, 2013 07:20AM
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...?
Re: Problem compiling Sprinter firmware for monotronics
April 10, 2013 10:59AM
Quote

MCU = atmega644p

Does this Monotronics have in fact such an ATmega644P? In this case, Arduino IDE doesn't work out of the box. You need one of the Gen7 Arduino IDE Support packages. See the (currently slow) wiki for which package version fits which Arduino version and of course download links.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Problem compiling Sprinter firmware for monotronics
April 10, 2013 06:23PM
Hi Traumflug,

Yes - the monotronics board has an ATmega644PA on board.

Where can I find the wiki you mention (listing package versions vs Arduino version)?
Sorry, only registered users may post in this forum.

Click here to login