Welcome! Log In Create A New Profile

Advanced

Compiling Repetier on BBB

Posted by daftscience 
Compiling Repetier on BBB
August 29, 2013 09:07AM
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.
Re: Compiling Repetier on BBB
October 05, 2013 03:20PM
I edited pins.h to turn off SDSUPPORT in my Repetier Firmware. In my case I'm using an Azteeg X3 so motherboard 34 which has that on by default. I'll just not use it for now. It may be a problem with the gcc that comes with the Ubuntu package, but I don't have a card to test it with for now anyway so I'm not pursuing it any further.

My Pins.h line #419
#define SDSUPPORT false //turning this off due to an error it causes in compiling see: [code.google.com]
Sorry, only registered users may post in this forum.

Click here to login