Duet Firmware in Eclipse February 25, 2015 01:05PM |
Registered: 9 years ago Posts: 12 |
Re: Duet Firmware in Eclipse February 25, 2015 02:52PM |
Registered: 10 years ago Posts: 14,672 |
Re: Duet Firmware in Eclipse February 26, 2015 02:58AM |
Registered: 9 years ago Posts: 12 |
Re: Duet Firmware in Eclipse February 26, 2015 07:26AM |
Registered: 10 years ago Posts: 14,672 |
Re: Duet Firmware in Eclipse March 01, 2015 03:42AM |
Registered: 9 years ago Posts: 12 |
Re: Duet Firmware in Eclipse August 09, 2015 01:32AM |
Registered: 9 years ago Posts: 12 |
Re: Duet Firmware in Eclipse August 09, 2015 03:50AM |
Registered: 10 years ago Posts: 14,672 |
'Building file: C:/Arduino-1.5.8/hardware/arduino/sam/libraries/Wire/Wire.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 -save-temps -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_ -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-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" -IC:/arduino-1.5.8/hardware/arduino/sam/system/libsam/include -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\EMAC" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\Lwip" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\MCP4461" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\SamNonDuePin" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\SD_HSMCI" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\SD_HSMCI\utility" -I"C:\Arduino-1.5.8\hardware\arduino\sam\libraries\Wire" -I"C:\Arduino-1.5.8\hardware\arduino\sam\variants\arduino_due_x" -I"C:\Arduino-1.5.8\hardware\tools\gcc-arm-none-eabi-4.8.3-2014q1\lib\gcc\arm-none-eabi\4.8.3\include" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\Flash" -MMD -MP -MF"Libraries/Wire/Wire.cpp.d" -MT"Libraries/Wire/Wire.cpp.d" -x c++ "C:/Arduino-1.5.8/hardware/arduino/sam/libraries/Wire/Wire.cpp" -o "Libraries/Wire/Wire.cpp.o" -Wall -O2 -std=gnu++11 'Finished building: C:/Arduino-1.5.8/hardware/arduino/sam/libraries/Wire/Wire.cpp'
Re: Duet Firmware in Eclipse August 09, 2015 06:16PM |
Registered: 9 years ago Posts: 12 |
Re: Duet Firmware in Eclipse August 10, 2015 05:33PM |
Registered: 9 years ago Posts: 12 |
Re: Duet Firmware in Eclipse August 10, 2015 05:41PM |
Registered: 10 years ago Posts: 14,672 |
Re: Duet Firmware in Eclipse August 10, 2015 05:47PM |
Registered: 9 years ago Posts: 12 |
'Building file: ../Libraries/Wire/Wire.cpp' 'Invoking: Cross G++ Compiler' g++ -I"C:\Arduino\hardware\arduino\sam\system\libsam" -I"C:\Arduino\hardware\arduino\sam\system\libsam\include" -I"C:\Arduino\hardware\arduino\sam\system\CMSIS\CMSIS\Include" -I"C:\Arduino\hardware\arduino\sam\system\CMSIS\Device\ATMEL" -I"C:\Arduino\hardware\arduino\sam\cores\arduino" -I"C:\Users\Mark\Desktop\eclipseArduino\workspace\MARepRapFirmware\Libraries\EMAC" -I"C:\Users\Mark\Desktop\eclipseArduino\workspace\MARepRapFirmware\Libraries\Lwip" -I"C:\Users\Mark\Desktop\eclipseArduino\workspace\MARepRapFirmware\Libraries\MCP4461" -I"C:\Users\Mark\Desktop\eclipseArduino\workspace\MARepRapFirmware\Libraries\SamNonDuePin" -I"C:\Users\Mark\Desktop\eclipseArduino\workspace\MARepRapFirmware\Libraries\SD_HSMCI" -I"C:\Users\Mark\Desktop\eclipseArduino\workspace\MARepRapFirmware\Libraries\SD_HSMCI\utility" -I"C:\Users\Mark\Desktop\eclipseArduino\workspace\MARepRapFirmware\Libraries\Wire" -I"C:\Arduino\hardware\arduino\sam\variants\arduino_due_x" -I"C:\Arduino\hardware\tools\g++_arm_none_eabi\lib\gcc\arm-none-eabi\4.4.1\include" -I"C:\Users\Mark\Desktop\eclipseArduino\workspace\MARepRapFirmware\Libraries\Flash" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"Libraries/Wire/Wire.d" -MT"Libraries/Wire/Wire.d" -o "Libraries/Wire/Wire.o" "../Libraries/Wire/Wire.cpp"
Re: Duet Firmware in Eclipse August 10, 2015 06:13PM |
Registered: 10 years ago Posts: 14,672 |
Re: Duet Firmware in Eclipse August 10, 2015 08:49PM |
Registered: 9 years ago Posts: 12 |
arm-none-eabi-gcc: error: /C:/Program Files (x86)/Arduino/hardware/arduino/sam/variants/arduino_due_x/libsam_sam3x8e_gcc_rel.a: Invalid argument make: *** [RepRapFirmware.elf] Error 1
Re: Duet Firmware in Eclipse August 11, 2015 02:17AM |
Registered: 10 years ago Posts: 14,672 |
Re: Duet Firmware in Eclipse August 11, 2015 02:08PM |
Registered: 9 years ago Posts: 12 |
Re: Duet Firmware in Eclipse August 11, 2015 02:49PM |
Registered: 10 years ago Posts: 14,672 |
Re: Duet Firmware in Eclipse August 12, 2015 12:33AM |
Registered: 11 years ago Posts: 69 |
Re: Duet Firmware in Eclipse August 12, 2015 03:42AM |
Registered: 10 years ago Posts: 14,672 |
-c -g -std=gnu99 -O2 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf
-c -g -std=gnu++11 -O2 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf
Re: Duet Firmware in Eclipse August 14, 2015 01:45AM |
Registered: 9 years ago Posts: 12 |
'Finished building target: RepRapFirmware'
Re: Duet Firmware in Eclipse August 14, 2015 04:24AM |
Registered: 10 years ago Posts: 14,672 |
Quote
Superman6424
Alrighty! The /C:/ error was just a typo fix, but it still left me with the GCodes.cpp.o error 1 message.
A few more days of frustration have passed. I caved, and eventually: reinstalled the eclipse/arduino IDE, arduino 1.4.8, and copied DC42's build command as close as possible.
I've finally gotten this lovely message:
'Finished building target: RepRapFirmware'
Unfortunately, there are still errors and warnings (even though it built).
It looks like the "include cstddef, cfloat, cstdarg" in RepRapFirmware.g was not seeing the respective .f files, so I directly included this path to the project:
C:\arduino-1.5.8\hardware\tools\gcc-arm-none-eabi-4.8.3-2014q1\arm-none-eabi\include\c++\4.8.3
I'm still getting errors like size_t could not be resolved, but I'll see if I can't find out why it isn't recognizing the standard stddef.h definition.
Of more concern, I've tried writing the (broken? but built) firmware onto the Duet, straight from the DC42 dev branch. Once I run the bossac.exe command, the board becomes inoperable. My computer no longer recognises it (neither as a Due or Bossa port). Have you seen this issue before? Is it related to the errors I'm seeing, or is it a whole separate issue?
Thanks!!
Re: Duet Firmware in Eclipse August 14, 2015 12:36PM |
Registered: 9 years ago Posts: 12 |
Re: Duet Firmware in Eclipse August 14, 2015 03:51PM |
Registered: 10 years ago Posts: 14,672 |
Quote
Superman6424
The size_t error was with every C++ file. I've been adding paths to both C and C++.
I followed the rabbit hole a bit deeper with including some of these file until I got errors like
Function '__DMB' could not be resolved in Move.cpp and symbol 'WDT_MR_WDRSTEN' could not be resolved in RepRapFirmware.cpp.
I thought "__function"s were internal to the compiler? How is this not being picked up?
I'm also surprised I'm getting the program to build with 50+ errors that seem awfully critical to the functionality.
Re: Duet Firmware in Eclipse August 14, 2015 04:45PM |
Registered: 9 years ago Posts: 12 |
cannot convert 'const uint8_t* {aka const unsigned char*}' to 'const unsigned char**' for argument '1' to 'void start_ethernet(const unsigned char**, const unsigned char**, const unsigned char**)'in Network.cpp. Seems strange, I don't see why it would be expecting a **.
inline uint64_t isquare64(int32_t arg) { return (uint64_t)((int64_t)arg * arg); } inline uint64_t isquare64(uint32_t arg) { return (uint64_t)arg * arg; }
Re: Duet Firmware in Eclipse August 14, 2015 07:26PM |
Registered: 10 years ago Posts: 14,672 |
Quote
Superman6424
Ah, likely a linker error then. In my poking around, I noticed the Libraries folder of the RepRapFirmware project wasn't letting me open it to see the files included within, but was instead trying to look for EMAC, Lwip, etc in the arduino/libraries. Copying over the libraries from my project into the arduino/libraries allowed me to progress.
I'm seeing a couple errors:
cannot convert 'const uint8_t* {aka const unsigned char*}' to 'const unsigned char**' for argument '1' to 'void start_ethernet(const unsigned char**, const unsigned char**, const unsigned char**)'in Network.cpp. Seems strange, I don't see why it would be expecting a **.
and an "invalid redefinition" of this function in RepRapFirmware.h:
inline uint64_t isquare64(int32_t arg) { return (uint64_t)((int64_t)arg * arg); } inline uint64_t isquare64(uint32_t arg) { return (uint64_t)arg * arg; }
Re: Duet Firmware in Eclipse August 15, 2015 04:27PM |
Registered: 11 years ago Posts: 69 |
Re: Duet Firmware in Eclipse September 25, 2015 02:06PM |
Registered: 10 years ago Posts: 7 |
Re: Duet Firmware in Eclipse September 25, 2015 03:59PM |
Registered: 10 years ago Posts: 14,672 |
Re: Duet Firmware in Eclipse October 06, 2015 09:18PM |
Registered: 10 years ago Posts: 7 |
Re: Duet Firmware in Eclipse October 07, 2015 04:35AM |
Registered: 10 years ago Posts: 14,672 |
Quote
percar
I have found a pin map for Arduino due (https://www.arduino.cc/en/Hacking/PinMappingSAM3X however as you know there are a number of pins that were not defined by Arduino
Is there a pin map the defines the additional pins. 93-126 (X1 and up)