I've spent the last few days trying to figure this out and I can't seem to get over this one error.
I'm using arduino 1.0.4 with Aruino-mk. and the latest repetier from github.
Here is the output of make
SdFat.cpp:2694:26: error: variable ‘crctab’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
SdFat.cpp:2662:16: warning: ‘uint8_t CRC7(const uint8_t*, uint8_t)’ defined but not used [-Wunused-function]
SdFat.cpp:2728:17: warning: ‘uint16_t CRC_CCITT(const uint8_t*, uint16_t)’ defined but not used [-Wunused-function]
make: *** [build-mega2560/SdFat.o] Error 1
I'm not quite sure what the issue is. :/ If I change that line in SdFat.cpp to
static const ....
I still get progmem issues.
Here is some more info:
Makefile
BOARD_TAG = mega2560
MONITOR_PORT = /dev/ttyACM2
ARDUINO_LIBS = EEPROM Wire SPI
#include /usr/share/arduino/Arduino.mk
include /home/ubuntu/Arduino-Makefile/arduino-mk/Arduino.mk
This is in my .bashrc:
export ARDUINO_DIR=/home/ubuntu/arduino-1.0.4
export ARDMK_DIR=/home/ubuntu/arduino-1.0.4
export ARDMK_PATH=/home/ubuntu/adruino-1.0.4
export AVR_TOOLS_DIR=/usr
Example of some warnings i get a lot of.
...
uilang.h:366:0: warning: "UI_TEXT_SET_P2" redefined [enabled by default]
uilang.h:211:0: note: this is the location of the previous definition
uilang.h:367:0: warning: "UI_TEXT_SET_P3" redefined [enabled by default]
uilang.h:212:0: note: this is the location of the previous definition
uilang.h:368:0: warning: "UI_TEXT_CALCULATE_LEVELING" redefined [enabled by default]
uilang.h:213:0: note: this is the location of the previous definition
uilang.h:370:0: warning: "UI_TEXT_EXTR_WAIT_RETRACT_TEMP" redefined [enabled by default]
uilang.h:215:0: note: this is the location of the previous definition
uilang.h:371:0: warning: "UI_TEXT_EXTR_WAIT_RETRACT_UNITS" redefined [enabled by default]
uilang.h:216:0: note: this is the location of the previous definition
uilang.h:372:0: warning: "UI_TEXT_SD_REMOVED" redefined [enabled by default]
uilang.h:217:0: note: this is the location of the previous definition
uilang.h:373:0: warning: "UI_TEXT_SD_INSERTED" redefined [enabled by default]
uilang.h:218:0: note: this is the location of the previous definition
uilang.h:374:0: warning: "UI_TEXT_PRINTER_READY" redefined [enabled by default]
uilang.h:219:0: note: this is the location of the previous definition
Thanks in advance for your help.