Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order
    1. Home
    2. Albert
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 9
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by Albert

    • RE: Cant build RepRapFirmware

      That works! Thank you so much for help!

      I re-download all the projects from github to make sure that everthing is fresh.

      Even though there was an error says that a .o file can not be found in the directory, it turns out that is because I did not match the configuration of CoreNG and RepRapFirmware ( I choose the SAM4E8E for CoreNG but Duet2_RTOS for ReprapFirmware). After I change the configuration of CoreNG to SAM4E8E_RTOS, everything is ok now.

      Hope that might help someone else.

      posted in Firmware installation
      Albert
      Albert
    • RE: Cant build RepRapFirmware

      @dc42

      Now I just change the configuration of ReprapFirmware to Duet2_RTOS without changing any file, and there is a error:

      ../src/GCodes/GCodes3.cpp:64:30: error: cannot bind non-const lvalue reference of type 'int32_t& {aka long int&}' to an rvalue of type 'int32_t {aka long int}'

      Is it caused by lack of the necessary files?

      posted in Firmware installation
      Albert
      Albert
    • RE: Cant build RepRapFirmware

      @dc42

      Actually, I am planning to build the duet2, but didn't notice that I have not changed the configuration.

      As you mentioned before, I need to either extract an older set of compatible files of the CoreNG project, or change the files in RepRapFirmware to be compatible with the interface changes in CoreNG. Wonder what are those file that you mentioned.

      posted in Firmware installation
      Albert
      Albert
    • RE: Cant build RepRapFirmware

      @dc42 thanks for help,

      I change the include path "${workspace_loc:/RRFLibraries/src}", and it works!

      But after that I get many errors says that some function is not declared in this scope, following is one of the error messages:

      C:\Eclipse\Firmware\RepRapFirmware\src/Platform.h: In member function 'void Platform::SetAcceleration(size_t, float)':
      C:\Eclipse\Firmware\RepRapFirmware\src/Platform.h:973:2: error: 'accelerations' was not declared in this scope

      And the picture is the list of those errors.

      0_1543402163876_Screen_20181128184819.png

      do I miss any required library or any project that I need to add to my workspace.

      posted in Firmware installation
      Albert
      Albert
    • Cant build RepRapFirmware

      Hello,

      Currently I have successfully build any other projects mentioned in the buildinstruction. But, when I try to build the RepRapFirmware, there is a error says:

      Invoking: Cross G++ Compiler
      arm-none-eabi-g++ -D__SAM3X8E__ -DDUET_06_085 -D_XOPEN_SOURCE -I"C:\Eclipse\Firmware\CoreNG\cores\arduino" -I"C:\Eclipse\Firmware\CoreNG\libraries\Flash" -I"C:\Eclipse\Firmware\CoreNG\libraries\SharedSpi" -I"C:\Eclipse\Firmware\CoreNG\libraries\Storage" -I"C:\Eclipse\Firmware\CoreNG\libraries\Wire" -I"C:\Eclipse\Firmware\CoreNG\asf" -I"C:\Eclipse\Firmware\CoreNG\asf\common\utils" -I"C:\Eclipse\Firmware\CoreNG\asf\common\services\clock" -I"C:\Eclipse\Firmware\CoreNG\asf\sam\drivers" -I"C:\Eclipse\Firmware\CoreNG\asf\sam\services\flash_efc" -I"C:\Eclipse\Firmware\CoreNG\asf\sam\utils" -I"C:\Eclipse\Firmware\CoreNG\asf\sam\utils\cmsis\sam3x\include" -I"C:\Eclipse\Firmware\CoreNG\asf\sam\utils\header_files" -I"C:\Eclipse\Firmware\CoreNG\asf\sam\utils\preprocessor" -I"C:\Eclipse\Firmware\CoreNG\asf\thirdparty\CMSIS\Include" -I"C:\Eclipse\Firmware\CoreNG\variants\duet" -I"C:\Eclipse\Firmware\RepRapFirmware\src" -I"C:\Eclipse\Firmware\RepRapFirmware\src\Duet" -I"C:\Eclipse\Firmware\RepRapFirmware\src\Duet\Lwip" -I"C:\Eclipse\Firmware\RepRapFirmware\src\Duet\EMAC" -I"C:\Eclipse\Firmware\RRFLibraries\src\General" -O2 -Wall -c -std=gnu++17 -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections -fno-threadsafe-statics -fno-rtti -fno-exceptions -nostdlib -Wdouble-promotion -fsingle-precision-constant "-Wa,-ahl=CoreXZKinematics.s" -MMD -MP -MF"src/Movement/Kinematics/CoreXZKinematics.d" -MT"src/Movement/Kinematics/CoreXZKinematics.o" -o "src/Movement/Kinematics/CoreXZKinematics.o" "../src/Movement/Kinematics/CoreXZKinematics.cpp"
      In file included from ../src/ObjectModel/ObjectModel.h:11:0,
      from ../src/ObjectModel/ObjectModel.cpp:8:
      C:\Eclipse\Firmware\RepRapFirmware\src/RepRapFirmware.h:38:10: fatal error: General/SafeStrtod.h: No such file or directory
      #include "General/SafeStrtod.h"
      ^~~~~~~~~~~~~~~~~~~~~~
      compilation terminated.
      src/ObjectModel/subdir.mk:18: recipe for target 'src/ObjectModel/ObjectModel.o' failed
      make: *** [src/ObjectModel/ObjectModel.o] Error 1
      make: *** Waiting for unfinished jobs....

      I can find this file in the RRFLibraries project, and try to add the library path to the Cross G++ compiler of the RepRapFirmware project. But it does not work.

      Really appreciate any help.

      posted in Firmware installation
      Albert
      Albert
    • RE: Cant build DuetWifiServer:"heap.o: No such file or directory"

      I just solved that error by downloading a v0.4.12 esptool.

      posted in Firmware installation
      Albert
      Albert
    • RE: Cant build DuetWifiServer:"heap.o: No such file or directory"

      That worked! Thank you so much for help!

      But there is a new error:

      make --no-print-directory post-build
      Generating binary
      "D:\esp8266-Arduino-master\esp8266com\esp8266\tools\windows\esptool.exe" -eo "D:\Arduino-master\bootloaders\eboot\bootloaders\eboot\eboot.elf" -bo "C:\Eclipse\Firmware\DuetWiFiSocketServer\Release/DuetWiFiServer.bin" -bm dio -bf 40 -bz 4M -bs .text -bp 4096 -ec -eo "C:\Eclipse\Firmware\DuetWiFiSocketServer\Release/DuetWiFiSocketServer.elf" -bs .irom0.text -bs .text -bs .data -bs .rodata -bc -ec
      error: can't open ELF file D:\Arduino-master\bootloaders\eboot\bootloaders\eboot\eboot.elf
      d:/gnu arm eclipse/build tools/2.6-201507152002/bin/sh: D:\esp8266-Arduino-master\esp8266com\esp8266\tools\windows\esptool.exe: No error
      makefile:58: recipe for target 'post-build' failed
      make[1]: [post-build] Error 2 (ignored)

      I can not find the eboot.elf file in any projects downloaded from your repositories. So I downloaded an project containing the elf file from the github, which is https://github.com/esp8266/Arduino/tree/master/bootloaders/eboot, and edit the path towards it. But this does not work at all.

      posted in Firmware installation
      Albert
      Albert
    • RE: Cant build DuetWifiServer:"heap.o: No such file or directory"

      Hello dc42,

      Thanks for help, and can you give some hint about how to change the path, because I am new to the eclipse.

      Thanks

      posted in Firmware installation
      Albert
      Albert
    • Cant build DuetWifiServer:"heap.o: No such file or directory"

      Hello,

      I was trying to bulid the DuetWifiSocketServer project. I have read the buildinstruction and a topic about buliding DuetWifiServer, which is https://forum.duet3d.com/topic/4984/cant-build-duetwifiserver.

      I followed the steps in that topic and now I can bulid the LwipESP8266 and the CoreESP8266 without any error. However, for the DuetWiFiSocketServer, eclipse sent this error:

      Building target: DuetWiFiSocketServer.elf
      Invoking: Cross G++ Linker
      xtensa-lx106-elf-g++ -nostdlib -L"C:\Eclipse\Firmware\CoreESP8266\Release\cores\esp8266" -L"C:\Eclipse\Firmware/LwipESP8266/Release" -L"C:\Eclipse\Firmware/CoreESP8266/sdk/lib" -L"C:\Eclipse\Firmware/DuetWiFiSocketServer/src/ld" -TDuetWiFiSocketServer.ld -Wl,--no-check-sections -u call_user_start -u _printf_float -u _scanf_float -Wl,-static -Wl,--gc-sections -Wl,-wrap,system_restart_local -Wl,-wrap,spi_flash_read -Wl,-Map,DuetWiFiSocketServer.map -o "DuetWiFiSocketServer.elf" -Wl,--start-group C:\Eclipse\Firmware/CoreESP8266/Release/cores/esp8266/heap.o ./src/Connection.o ./src/HSPI.o ./src/Listener.o ./src/Misc.o ./src/SocketServer.o -lCoreESP8266 -lhal -lphy -lpp -lnet80211 -lLwipESP8266 -lwpa -lcrypto -lmain -lwps -laxtls -lespnow -lsmartconfig -lairkiss -lwpa2 -lstdc++ -lm -lc -lgcc -Wl,--end-group
      xtensa-lx106-elf-g++: error: C:EclipseFirmware/CoreESP8266/Release/cores/esp8266/heap.o: No such file or directory
      makefile:45: recipe for target 'DuetWiFiSocketServer.elf' failed
      make: *** [DuetWiFiSocketServer.elf] Error1

      But I can find that file in the directory, I am really confuse why it can not find that file.

      Really appreciate any help to solve that problem.

      Following is the branch of my projects:

      • CoreESP8266-master
      • LwipESP8266-dev
      • DuetWiFiSocketServer-dev
      posted in Firmware installation
      Albert
      Albert