Welcome! Log In Create A New Profile

Advanced

Problem compiling v1.09 in EclipseArduinoIDE

Posted by derek5a 
Re: Problem compiling v1.09 in EclipseArduinoIDE
February 29, 2016 11:13AM
Backslash saga solved..... Now it seems that the make file is being found... However there seems to be a problem with two parameters.

arm-none-eabi-g++: error: '-DUSB_MANUFACTURER=Unknown': No such file or directory
arm-none-eabi-g++: error: '-DUSB_PRODUCT=Duet': No such file or directory.

and then this.

make: *** [DDA.cpp.o] Error 1


15:52:55 **** Incremental Build of configuration Release for project RepRapFirmware ****
make all
'Building file: ../DDA.cpp'
'Starting C++ compile'
"C:\Arduino-1.5.8\hardware\tools\gcc-arm-none-eabi-4.8.3-2014q1\bin\arm-none-eabi-g++" -c -g -O2 -w -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -std=gnu++11 -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=158 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Duet"' "-IC:/eclipse/workspace/RepRapFirmware/Hardware/duet/sam/system/libsam" "-IC:/eclipse/workspace/RepRapFirmware/Hardware/duet/sam/system/libsam/include" "-IC:/eclipse/workspace/RepRapFirmware/Hardware/duet/sam/system/CMSIS/CMSIS/Include/" "-IC:/eclipse/workspace/RepRapFirmware/Hardware/duet/sam/system/CMSIS/Device/ATMEL/" -I"C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino" -I"C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\EMAC" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\Flash" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\Lwip" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\MAX31855" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\MCP4461" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\SD_HSMCI" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\SD_HSMCI\utility" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\SPI" -MMD -MP -MF"DDA.cpp.d" -MT"DDA.cpp.d" -D__IN_ECLIPSE__=1 -x c++ "../DDA.cpp" -o "DDA.cpp.o"
arm-none-eabi-g++: error: '-DUSB_MANUFACTURER=Unknown': No such file or directory
arm-none-eabi-g++: error: '-DUSB_PRODUCT=Duet': No such file or directory
make: *** [DDA.cpp.o] Error 1

15:52:55 Build Finished (took 636ms)

Any ideas what the problems may be?
Re: Problem compiling v1.09 in EclipseArduinoIDE
February 29, 2016 12:59PM
Quote
derek5a
It doesn't seem to have the backslash between bin and arm-none-eabi-g++? Could it be something to do with that?

Yes, I think that's exactly it. Try using forward slashes instead of back slashes - both normally work under Windows, but backslash is an escape character in some contexts.

Edited 1 time(s). Last edit at 02/29/2016 01:00PM by dc42.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Problem compiling v1.09 in EclipseArduinoIDE
February 29, 2016 01:38PM
Tried changing it to forward slashes had to add a forward slash to the beginning of the A.COMPILER,CPP.CMD.

However forward or backslashes the last error above is what is displayed?

arm-none-eabi-g++: error: '-DUSB_MANUFACTURER=Unknown': No such file or directory
arm-none-eabi-g++: error: '-DUSB_PRODUCT=Duet': No such file or directory.
make: *** [DDA.cpp.o] Error 1

Something to do with the USB? As a guess? Don't understand why this would be happening as the code is unchanged from that received.
Re: Problem compiling v1.09 in EclipseArduinoIDE
February 29, 2016 04:53PM
You've solved the problem you had before. I had a similar problem to the one you have now. I believe it's caused by a bug in the Arduino addon. You need to edit the build environment variables, deleting those USB_MANUFACTURER and USB_PRODUCT variables.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 01, 2016 04:55AM
The environment variable:

A.BUILD.USB_FLAGS

holds:

-DUSB_VID=${A.BUILD.VID} -DUSB_PID=${A.BUILD.PID} -DUSBCON '-DUSB_MANUFACTURER=${A.BUILD.USB_MANUFACTURER}' '-DUSB_PRODUCT=${A.BUILD.USB_PRODUCT}'

Is any of this information required? Or can I have this variable completely blank?
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 01, 2016 04:57AM
New Console Error...?

09:56:49 **** Incremental Build of configuration Release for project RepRapFirmware ****
make all
'Building file: ../DDA.cpp'
'Starting C++ compile'
"C:/Arduino-1.5.8/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -O2 -w -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -std=gnu++11 -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=158 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb "-IC:/eclipse/workspace/RepRapFirmware/Hardware/duet/sam/system/libsam" "-IC:/eclipse/workspace/RepRapFirmware/Hardware/duet/sam/system/libsam/include" "-IC:/eclipse/workspace/RepRapFirmware/Hardware/duet/sam/system/CMSIS/CMSIS/Include/" "-IC:/eclipse/workspace/RepRapFirmware/Hardware/duet/sam/system/CMSIS/Device/ATMEL/" -I"C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino" -I"C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\EMAC" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\Flash" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\Lwip" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\MAX31855" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\MCP4461" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\SD_HSMCI" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\SD_HSMCI\utility" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\SPI" -MMD -MP -MF"DDA.cpp.d" -MT"DDA.cpp.d" -D__IN_ECLIPSE__=1 -x c++ "../DDA.cpp" -o "DDA.cpp.o"
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:38:22: error: redefinition of 'const uint8_t X0'
static const uint8_t X0 = 93;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:238:22: error: 'const uint8_t X0' previously defined here
static const uint8_t X0 = 92;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:39:22: error: redefinition of 'const uint8_t X1'
static const uint8_t X1 = 94;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:239:22: error: 'const uint8_t X1' previously defined here
static const uint8_t X1 = 93;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:40:22: error: redefinition of 'const uint8_t X2'
static const uint8_t X2 = 95;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:240:22: error: 'const uint8_t X2' previously defined here
static const uint8_t X2 = 94;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:41:22: error: redefinition of 'const uint8_t X3'
static const uint8_t X3 = 96;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:241:22: error: 'const uint8_t X3' previously defined here
static const uint8_t X3 = 95;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:42:22: error: redefinition of 'const uint8_t X4'
static const uint8_t X4 = 97;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:242:22: error: 'const uint8_t X4' previously defined here
static const uint8_t X4 = 96;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:43:22: error: redefinition of 'const uint8_t X5'
static const uint8_t X5 = 98;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:243:22: error: 'const uint8_t X5' previously defined here
static const uint8_t X5 = 97;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:44:22: error: redefinition of 'const uint8_t X6'
static const uint8_t X6 = 99;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:244:22: error: 'const uint8_t X6' previously defined here
static const uint8_t X6 = 98;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:45:22: error: redefinition of 'const uint8_t X7'
static const uint8_t X7 = 100;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:245:22: error: 'const uint8_t X7' previously defined here
static const uint8_t X7 = 99;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:46:22: error: redefinition of 'const uint8_t X8'
static const uint8_t X8 = 101;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:246:22: error: 'const uint8_t X8' previously defined here
static const uint8_t X8 = 100;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:57:22: error: redefinition of 'const uint8_t PIN_HSMCI_MCCDA_GPIO'
static const uint8_t PIN_HSMCI_MCCDA_GPIO = 111;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:249:22: error: 'const uint8_t PIN_HSMCI_MCCDA_GPIO' previously defined here
static const uint8_t PIN_HSMCI_MCCDA_GPIO = 101;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:58:22: error: redefinition of 'const uint8_t PIN_HSMCI_MCCK_GPIO'
static const uint8_t PIN_HSMCI_MCCK_GPIO = 112;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:250:22: error: 'const uint8_t PIN_HSMCI_MCCK_GPIO' previously defined here
static const uint8_t PIN_HSMCI_MCCK_GPIO = 102;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:59:22: error: redefinition of 'const uint8_t PIN_HSMCI_MCDA0_GPIO'
static const uint8_t PIN_HSMCI_MCDA0_GPIO = 113;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:251:22: error: 'const uint8_t PIN_HSMCI_MCDA0_GPIO' previously defined here
static const uint8_t PIN_HSMCI_MCDA0_GPIO = 103;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:60:22: error: redefinition of 'const uint8_t PIN_HSMCI_MCDA1_GPIO'
static const uint8_t PIN_HSMCI_MCDA1_GPIO = 114;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:252:22: error: 'const uint8_t PIN_HSMCI_MCDA1_GPIO' previously defined here
static const uint8_t PIN_HSMCI_MCDA1_GPIO = 104;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:61:22: error: redefinition of 'const uint8_t PIN_HSMCI_MCDA2_GPIO'
static const uint8_t PIN_HSMCI_MCDA2_GPIO = 115;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:253:22: error: 'const uint8_t PIN_HSMCI_MCDA2_GPIO' previously defined here
static const uint8_t PIN_HSMCI_MCDA2_GPIO = 105;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:62:22: error: redefinition of 'const uint8_t PIN_HSMCI_MCDA3_GPIO'
static const uint8_t PIN_HSMCI_MCDA3_GPIO = 116;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:254:22: error: 'const uint8_t PIN_HSMCI_MCDA3_GPIO' previously defined here
static const uint8_t PIN_HSMCI_MCDA3_GPIO = 106;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:64:22: error: redefinition of 'const uint8_t PIN_EMAC_EREFCK'
static const uint8_t PIN_EMAC_EREFCK = 117;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:257:22: error: 'const uint8_t PIN_EMAC_EREFCK' previously defined here
static const uint8_t PIN_EMAC_EREFCK = 107;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:65:22: error: redefinition of 'const uint8_t PIN_EMAC_ETXEN'
static const uint8_t PIN_EMAC_ETXEN = 118;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:258:22: error: 'const uint8_t PIN_EMAC_ETXEN' previously defined here
static const uint8_t PIN_EMAC_ETXEN = 108;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:66:22: error: redefinition of 'const uint8_t PIN_EMAC_ETX0'
static const uint8_t PIN_EMAC_ETX0 = 119;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:259:22: error: 'const uint8_t PIN_EMAC_ETX0' previously defined here
static const uint8_t PIN_EMAC_ETX0 = 109;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:67:22: error: redefinition of 'const uint8_t PIN_EMAC_ETX1'
static const uint8_t PIN_EMAC_ETX1 = 120;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:260:22: error: 'const uint8_t PIN_EMAC_ETX1' previously defined here
static const uint8_t PIN_EMAC_ETX1 = 110;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:68:22: error: redefinition of 'const uint8_t PIN_EMAC_ECRSDV'
static const uint8_t PIN_EMAC_ECRSDV = 121;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:261:22: error: 'const uint8_t PIN_EMAC_ECRSDV' previously defined here
static const uint8_t PIN_EMAC_ECRSDV = 111;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:69:22: error: redefinition of 'const uint8_t PIN_EMAC_ERX0'
static const uint8_t PIN_EMAC_ERX0 = 122;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:262:22: error: 'const uint8_t PIN_EMAC_ERX0' previously defined here
static const uint8_t PIN_EMAC_ERX0 = 112;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:70:22: error: redefinition of 'const uint8_t PIN_EMAC_ERX1'
static const uint8_t PIN_EMAC_ERX1 = 123;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:263:22: error: 'const uint8_t PIN_EMAC_ERX1' previously defined here
static const uint8_t PIN_EMAC_ERX1 = 113;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:71:22: error: redefinition of 'const uint8_t PIN_EMAC_ERXER'
static const uint8_t PIN_EMAC_ERXER = 124;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:264:22: error: 'const uint8_t PIN_EMAC_ERXER' previously defined here
static const uint8_t PIN_EMAC_ERXER = 114;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:72:22: error: redefinition of 'const uint8_t PIN_EMAC_EMDC'
static const uint8_t PIN_EMAC_EMDC = 125;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:265:22: error: 'const uint8_t PIN_EMAC_EMDC' previously defined here
static const uint8_t PIN_EMAC_EMDC = 115;
^
In file included from ../Platform.h:48:0,
from ../RepRapFirmware.h:89,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin/SamNonDuePin.h:73:22: error: redefinition of 'const uint8_t PIN_EMAC_EMDIO'
static const uint8_t PIN_EMAC_EMDIO = 126;
^
In file included from C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\cores\arduino/Arduino.h:182:0,
from ../RepRapFirmware.h:29,
from ../DDA.cpp:8:
C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\variants\duet/variant.h:266:22: error: 'const uint8_t PIN_EMAC_EMDIO' previously defined here
static const uint8_t PIN_EMAC_EMDIO = 116;
^
make: *** [DDA.cpp.o] Error 1

09:56:50 Build Finished (took 1s.700ms)
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 01, 2016 07:54AM
It looks like you are trying to build the official RRP RepRapFirmware, but building it using Eclipse and Arduino 1.5.8 is not supported. Use the "Make.ps1" script for this purpose instead (see my first reply) and install the required Arduino board files first (requires Arduino 1.6.5 or later, see the README in the Hardware directory).

If you want to keep Arduino 1.5.8 to buld the firmware, I strongly advise you to use dc42's firmware at [github.com] instead - just make sure you apply his Arduino core patches before you start. The latest Arduino Eclipse Plugin still cannot deal properly with third-party boards, so I really wouldn't spend much more time in configuring it.
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 01, 2016 08:39AM
Thanks for the reply Chrishamm,

(Having tried other methods first I did attempt to run the firmware using your instructions but again ran into numerous problems getting it to compile. I now at least have the IDE compiling correctly so I think I'd rather persevere with this setup before trying from the beginning... Or throwing my laptop or myself OUT OF THE WINDOW!... Whichever comes first!)

The link you posted to dc42's latest firmware is what I am already using. AFAIK I have added the core patches associated before trying to compile.

And i'm still using the V2.2 version of the plugin.

Any other ideas or methods to get around this?
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 01, 2016 09:32AM
Are you sure? dc42's firmware doesn't have the Hardware directory - if you are already trying to compile it, either delete the Hardware directory or exclude it from building.
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 01, 2016 01:12PM
Hmmmm...

This is because I had no path for the Arduino "Private Hardware Path" in Window=> Preferences..

I moved over the Hardware folder from the base 1.09 firmware as it was present in there. I did it just to try something then because it was so long in getting the compiler to work forgot to put it all back.

I've deleted the Hardware folder from the workspace/RepRapFirmware folder. But now there is no private hardware path in the workspace? Where do i direct the private hardware path to?
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 01, 2016 03:26PM
In my build, I can't see any private hardware path in the Arduino plugin configuration. There is a private libary path, which on my system is set to C:\Users\David\Eclipse\RepRapFirmware\Libraries.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 01, 2016 03:32PM
AFAIR you don't need to specify a private hardware path, just make sure the Arduino IDE and the library paths are valid (should be C:\Arduino-1.5.8 and C:\eclipse\workspace\RepRapFirmware\Libraries).
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 02, 2016 03:47AM
Thanks guys...

The above notes have been done. Hardware folder deleted and hardware path is now blank... The next error is a strange one.

08:43:17 **** Incremental Build of configuration Release for project RepRapFirmware ****
make all
Cannot run program "make": Launching failed

Error: Program "make" not found in PATH
PATH=[C:/Arduino-1.5.8/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin;C:/Arduino-1.5.8/hardware/tools/g++_arm_none_eabi/arm-none-eabi/bin;C:/Arduino-1.5.8/hardware/tools/avr/utils/bin;C:/Program Files (x86)/Java/jre1.8.0_66/bin/client;C:/Program Files (x86)/Java/jre1.8.0_66/bin;C:/Program Files (x86)/Java/jre1.8.0_66/lib/i386;C:\ProgramData\Oracle\Java\javapath;C:\Program Files;C:\Winnt;C:\Winnt\System32;c:\mingw\binTLAB\R2015b\bin;C:\MinGW\bin;javaw.exe;C:\cpp-eclipse\reprapfirmware_workspace\RepRapFirmware\Hardware\duet\sam\system\CMSIS\Examples\cmsis_example\gcc_arm;C:\cpp-eclipse\reprapfirmware_workspace\RepRapFirmware\Hardware\duet\sam\system\CMSIS\Examples\cmsis_example\gcc_atmel;C:\altera\13.0sp1\quartus\bin;C:\Program Files (x86)\Skype\Phone\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\system\CMSIS\Examples\cmsis_example\gcc;C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\system\CMSIS\Examples\cmsis_example\gcc_arm;C:\eclipse\workspace\RepRapFirmware\Hardware\duet\sam\system\CMSIS\Examples\cmsis_example\gcc_atmel;C:\altera\13.0sp1\modelsim_ase\win32aloem;C:/Arduino-1.5.8/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/arm-none-eabi-g++;C:\eclipse\workspace\RepRapFirmware\Release\makefile;C:\eclipse]

08:43:17 Build Finished (took 80ms)

It says that make is not found in the path... But I have definately added (what I presume is the correct makefile (in bold)) into the windows environment variables?.. This can be seen in the PATH values printed in the error message.
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 02, 2016 05:06AM
I believe Make should be part of the Eclipse plugin, but no idea why this error shows up on your setup.

You might be able to fix it by selecting a different Arduino board first (then click Apply) and switch back to Arduino Due (click Apply again). AFAIR this will reset the Arduino project variables and maybe fix your problem.
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 02, 2016 06:48AM
Quote
chrishamm
I believe Make should be part of the Eclipse plugin, but no idea why this error shows up on your setup.

You might be able to fix it by selecting a different Arduino board first (then click Apply) and switch back to Arduino Due (click Apply again). AFAIR this will reset the Arduino project variables and maybe fix your problem.

Tried this and it made no odds... Also the Duet platforms did not appear in the board selection as the hardware path does not hold a duet hardware folder. I have copied the contents of the hardware folder from 1.09 into the hardware folder of Arduino-1.5.8. Now the correct board platform does appear in the Board option of Arduino Properties. I can now select "RepRap Duet Platform".

However the board setting now being correct have not corrected the error?
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 02, 2016 07:17AM
I believe the correct platform to select is "Arduino Due" and not "RepRap Duet Platform".

Dave
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 02, 2016 07:27AM
Yes, that's correct for dc42's firmware - it should be "Arduino Due". If you're using my firmware fork however, it should be set to "RepRap Duet Platform". Note that you have to use the official Arduino SAM board files (with dc42's patches) for dc42's fork to get it to compile.

I have just released a new firmware version which adds support for M143, so if you want to try it out, have a look at [forums.reprap.org]
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 02, 2016 12:56PM
Tried all options regarding the board setting... The error message remains unchanged.

That sounds great chris! I am however also using thermocouples and so far only dc42's 1.09r fork seems to allow these to work? Unless you also have them incorporated?

Thanks
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 02, 2016 01:08PM
In case you didn't see the message in the other thread, I put a build of my fork with M143 support at [dl.dropboxusercontent.com] yesterday.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 02, 2016 01:10PM
Quote
dc42
In case you didn't see the message in the other thread, I put a build of my fork with M143 support at [dl.dropboxusercontent.com] yesterday.

I did dc42 thanks... You had said it wasn't extruding?

I plan on running that version tomorrow and i'll let you know how it goes!..

I still need to get a compilation complete however sad smiley
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 02, 2016 01:14PM
Quote
derek5a
Quote
dc42
In case you didn't see the message in the other thread, I put a build of my fork with M143 support at [dl.dropboxusercontent.com] yesterday.

I did dc42 thanks... You had said it wasn't extruding?

I plan on running that version tomorrow and i'll let you know how it goes!..

I still need to get a compilation complete however sad smiley

It extruded OK for me today. I did some investigation and I found some bugs (present in all forks I think) in the extrusion prevention code. What I think happened is that after testing M143 by setting a low limit, the resulting temperature fault condition in the tool class never got cleared. I'll do some more investigation, but in the mean time you should be OK as long as you never get a heater or temperature fault.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 02, 2016 01:17PM
That sounds great... I'll give it a try tomorrow and see how it goes! Sounds promising tho!...

Any ideas regarding the last error message? As explained above there was some misunderstanding of the Board setting... But having tried all variables the error remains?
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 02, 2016 05:39PM
You need to find a make.exe file on your computer. I think there is one in the Arduino 1.5.8 installation. Then put the folder containing it on your PATH.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 03, 2016 05:59AM
OK so a few things happening now... Quick rundown of what i've done...

Having realised that the make files I had added before to my windows PATH were originally in the Hardware folder I'd copied into the workspace (NOW DELETED). I've searched for the location of any in the Arduino-1.5.8 folder and found 4!

C:\Arduino-1.5.8\hardware\duet\sam\system\CMSIS\Examples\cmsis_example\gcc_atmel
C:\Arduino-1.5.8\hardware\duet\sam\system\CMSIS\Examples\cmsis_example\gcc_arm
C:\Arduino-1.5.8\hardware\arduino\sam\system\CMSIS\Examples\cmsis_example\gcc_atmel
C:\Arduino-1.5.8\hardware\arduino\sam\system\CMSIS\Examples\cmsis_example\gcc_arm

All of the above files are now now in my PATH on windows....

I have tried compiling now using two Board settings as it was unclear from above which should be used. Also the text file I had originally used to set up the installation (Found in dc42's 1.09 download) dictated to set to RepRap Duet Platform.

Having tried both RepRap Duet Platform and Arduino Due I got mixed results... NEITHER COMPILED... But Arduino Due served up 55 Errors and RepRap Duet Platform gave 14.

Annoyingly when changing between the two the A.BUILD.USB_FLAGS values replenish so I have to go back into that environment and delete them.


With the setting at RepRap Duet Platform the Console Message is:

10:49:41 **** Incremental Build of configuration Release for project RepRapFirmware ****
make all
'Building file: ../DDA.cpp'
'Starting C++ compile'
"C:\SPB_Data\AppData\Roaming\Arduino15\packages\tools\arm-none-eabi-gcc\4.8.3-2014q1\binarm-none-eabi-g++" -c -g -O2 -w -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -std=gnu++11 -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=158 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Duet"' "-IC:/Arduino-1.5.8/hardware/duet/sam/system/libsam" "-IC:/Arduino-1.5.8/hardware/duet/sam/system/libsam/include" "-IC:/Arduino-1.5.8/hardware/duet/sam/system/CMSIS/CMSIS/Include/" "-IC:/Arduino-1.5.8/hardware/duet/sam/system/CMSIS/Device/ATMEL/" -I"C:\Arduino-1.5.8\hardware\duet\sam\cores\arduino" -I"C:\Arduino-1.5.8\hardware\duet\sam\variants\duet" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\EMAC" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\Flash" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\Lwip" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\MAX31855" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\MCP4461" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\SamNonDuePin" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\SD_HSMCI" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\SD_HSMCI\utility" -I"C:\eclipse\workspace\RepRapFirmware\Libraries\SPI" -MMD -MP -MF"DDA.cpp.d" -MT"DDA.cpp.d" -D__IN_ECLIPSE__=1 -x c++ "../DDA.cpp" -o "DDA.cpp.o"
The system cannot find the path specified.
make: *** [DDA.cpp.o] Error 1

10:49:43 Build Finished (took 1s.421ms)
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 03, 2016 06:08AM
OMG... I've just noticed all the environment settings have reverted back to default!!!!!

moody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smileymoody smiley
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 03, 2016 06:17AM
Nope... Tried compilation then retried on different board setting while changing the environment setting every time.

dc42 can you confirm the board selected in "Properties=>Arduino=>Board:"?
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 03, 2016 06:31AM
Quote
derek5a
That sounds great chris! I am however also using thermocouples and so far only dc42's 1.09r fork seems to allow these to work? Unless you also have them incorporated?

My fork supports them as well (thanks to dnewman's/dc42's changes), but I use a slightly different pin mapping. If you want to try out my fork, I suggest you check if your thermocouples are connected to the right pins first. You can find an overview of my expansion header pin assignment here: [github.com]
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 03, 2016 07:53AM
Quote
chrishamm
Quote
derek5a
That sounds great chris! I am however also using thermocouples and so far only dc42's 1.09r fork seems to allow these to work? Unless you also have them incorporated?

My fork supports them as well (thanks to dnewman's/dc42's changes), but I use a slightly different pin mapping. If you want to try out my fork, I suggest you check if your thermocouples are connected to the right pins first. You can find an overview of my expansion header pin assignment here: [github.com]

Though still persevering with the current firmware chris can you possibly tell me if the thermocouple setup in software works in the same way? eg M305 P1 X100... (Connected to pin 27 on the Duet).
Just incase we decide to switch over...

Thanks
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 03, 2016 09:01AM
Yes, that's correct because we share the same implementation. Here some examples:

- M305 P0 X100 (Set first heater [bed] to use thermocouple with first CS pin [expansion pin 27])
- M305 P1 X101 (Set second heater [E0] to use thermocouple with second CS pin [expansion pin 26])
Re: Problem compiling v1.09 in EclipseArduinoIDE
March 03, 2016 09:30AM
Latest Console error using Arduino Due (ProgrammingPort) as board:

14:29:29 **** Incremental Build of configuration Release for project RepRapFirmware ****
make all
'Building file: ../DDA.cpp'
'Starting C++ compile'
"C:/Arduino-1.5.8/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=158 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb "-IC:/Arduino-1.5.8/hardware/arduino/sam/system/libsam" "-IC:/Arduino-1.5.8/hardware/arduino/sam/system/CMSIS/CMSIS/Include/" "-IC:/Arduino-1.5.8/hardware/arduino/sam/system/CMSIS/Device/ATMEL/" -I"C:\Arduino-1.5.8\hardware\arduino\sam\cores\arduino" -I"C:\Arduino-1.5.8\hardware\arduino\sam\variants\arduino_due_x" -MMD -MP -MF"DDA.cpp.d" -MT"DDA.cpp.d" -D__IN_ECLIPSE__=1 -x c++ "../DDA.cpp" -o "DDA.cpp.o"
In file included from ../RepRapFirmware.h:88:0,
from ../DDA.cpp:8:
../Network.h:17:22: fatal error: lwipopts.h: No such file or directory
#include "lwipopts.h"
^
compilation terminated.
make: *** [DDA.cpp.o] Error 1

14:29:32 Build Finished (took 2s.705ms)

Any ideas?
Sorry, only registered users may post in this forum.

Click here to login