• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

Error while compile RADDS

Scheduled Pinned Locked Moved
Firmware developers
2
12
1.1k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined
    ffnull
    last edited by 22 Dec 2018, 23:47

    Helo. Im try to build RADDS to make my own firmware with moded shield. Im use build instruction and some useful info on forum. But right now im stuck on this errors.

    Building target: RepRapFirmware-RADDS.elf
    Invoking: Cross G++ Linker
    arm-none-eabi-gcc -Os -Wl,--gc-sections -Wl,--fatal-warnings -mcpu=cortex-m3 -T"C:\Eclipse\Firmware\CoreNG\variants\RADDS\linker_scripts\gcc\flash.ld" -Wl,-Map,"C:\Eclipse\Firmware\RepRapFirmware\RADDS_RTOS/RepRapFirmware-RADDS.map" -o "RepRapFirmware-RADDS.elf" -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group "C:\Eclipse\Firmware\CoreNG\SAM3X8E\cores\arduino\syscalls.o" ./src/Tools/Filament.o ./src/Tools/Tool.o ./src/Storage/CRC32.o ./src/Storage/FileInfoParser.o ./src/Storage/FileStore.o ./src/Storage/MassStorage.o ./src/RADDS/Network.o ./src/ObjectModel/ObjectModel.o ./src/Movement/StepperDrivers/DriverMode.o ./src/Movement/StepperDrivers/TMC22xx.o ./src/Movement/StepperDrivers/TMC2660.o ./src/Movement/StepperDrivers/TMC51xx.o ./src/Movement/Kinematics/CartesianKinematics.o ./src/Movement/Kinematics/CoreBaseKinematics.o ./src/Movement/Kinematics/CoreXYKinematics.o ./src/Movement/Kinematics/CoreXYUKinematics.o ./src/Movement/Kinematics/CoreXYUVKinematics.o ./src/Movement/Kinematics/CoreXZKinematics.o ./src/Movement/Kinematics/HangprinterKinematics.o ./src/Movement/Kinematics/Kinematics.o ./src/Movement/Kinematics/LinearDeltaKinematics.o ./src/Movement/Kinematics/PolarKinematics.o ./src/Movement/Kinematics/RotaryDeltaKinematics.o ./src/Movement/Kinematics/ScaraKinematics.o ./src/Movement/Kinematics/ZLeadscrewKinematics.o ./src/Movement/BedProbing/Grid.o ./src/Movement/BedProbing/RandomProbePointSet.o ./src/Movement/DDA.o ./src/Movement/DriveMovement.o ./src/Movement/Move.o ./src/Movement/StepTimer.o ./src/Libraries/sha1/sha1.o ./src/Libraries/Fatfs/diskio.o ./src/Libraries/Fatfs/fattime_rtc.o ./src/Libraries/Fatfs/ff.o ./src/Libraries/Fatfs/ffunicode.o ./src/Heating/Sensors/CpuTemperatureSensor.o ./src/Heating/Sensors/CurrentLoopTemperatureSensor.o ./src/Heating/Sensors/DhtSensor.o ./src/Heating/Sensors/RtdSensor31865.o ./src/Heating/Sensors/SpiTemperatureSensor.o ./src/Heating/Sensors/TemperatureSensor.o ./src/Heating/Sensors/Thermistor.o ./src/Heating/Sensors/ThermocoupleSensor31855.o ./src/Heating/Sensors/ThermocoupleSensor31856.o ./src/Heating/Sensors/TmcDriverTemperatureSensor.o ./src/Heating/FOPDT.o ./src/Heating/Heat.o ./src/Heating/HeaterProtection.o ./src/Heating/Pid.o ./src/Heating/TemperatureError.o ./src/GCodes/GCodeBuffer.o ./src/GCodes/GCodeInput.o ./src/GCodes/GCodeMachineState.o ./src/GCodes/GCodeQueue.o ./src/GCodes/GCodes.o ./src/GCodes/GCodes2.o ./src/GCodes/GCodes3.o ./src/GCodes/RestorePoint.o ./src/FilamentMonitors/Duet3DFilamentMonitor.o ./src/FilamentMonitors/FilamentMonitor.o ./src/FilamentMonitors/LaserFilamentMonitor.o ./src/FilamentMonitors/PulsedFilamentMonitor.o ./src/FilamentMonitors/RotatingMagnetFilamentMonitor.o ./src/FilamentMonitors/SimpleFilamentMonitor.o ./src/Fans/DotStarLed.o ./src/Fans/Fan.o ./src/Fans/Tacho.o ./src/CAN/CanInterface.o ./src/CAN/CanMessageBuffer.o ./src/CAN/CanSender.o ./src/DmacManager.o ./src/IoPorts.o ./src/Logger.o ./src/OutputMemory.o ./src/Platform.o ./src/PortControl.o ./src/PrintMonitor.o ./src/RepRap.o ./src/RepRapFirmware.o ./src/Roland.o ./src/Scanner.o ./src/SoftTimer.o ./src/Spindle.o ./src/Tasks.o ./src/ZProbe.o ./src/ZProbeProgrammer.o -lCoreNG -lFreeRTOS -lRRFLibraries -Wl,--end-group -lm
    c:/program files (x86)/gnu tools arm embedded/8 2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -lCoreNG
    c:/program files (x86)/gnu tools arm embedded/8 2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -lFreeRTOS
    c:/program files (x86)/gnu tools arm embedded/8 2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -lRRFLibraries
    collect2.exe: error: ld returned 1 exit status
    makefile:61: recipe for target 'RepRapFirmware-RADDS.elf' failed
    make: *** [RepRapFirmware-RADDS.elf] Error 1

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 23 Dec 2018, 08:14

      Looks like you didn't build the libraries first, or you built the wrong configuration of the libraries. See the BuildInstructions.md file

      Duet WiFi hardware designer and firmware engineer
      Please do not ask me for Duet support via PM or email, use the forum
      http://www.escher3d.com, https://miscsolutions.wordpress.com

      1 Reply Last reply Reply Quote 0
      • undefined
        ffnull
        last edited by 23 Dec 2018, 11:23

        Im do by buildinstructions. Im use RepRapFirmware-2-dev FreeRTOS-master FreeRTOS-master RRFLibraries-master. Compile first Core FreeRtos RRF. Then clean RepRap. Select RADDS-FreeRTOS and got errors

        1 Reply Last reply Reply Quote 0
        • undefined
          dc42 administrators
          last edited by 23 Dec 2018, 11:29

          You probably didn't set the correct build configuration of the libraries. You need to build the RADDS_RTOS configuration of CoreNG, the SAM3X_RTOS configuration of RRFLibraries, and the SAM3X configuration of FreeRTOS.

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          1 Reply Last reply Reply Quote 0
          • undefined
            dc42 administrators
            last edited by dc42 23 Dec 2018, 11:38

            I just spotted an error in the linker command line that you posted, that meant you would also need to have build the RADDS (non-RTOS) configuration of CoreNG. I've just committed a fix to the .cproject file of the RepRapFirmware project.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            1 Reply Last reply Reply Quote 0
            • undefined
              ffnull
              last edited by 23 Dec 2018, 13:33

              Ok. Redownload brunch. Set correct build configurations on all libraris and recompile all. Builds without error. But at the end Eclipse show error on splash screen:

              Errors occurred during the build.
              Errors running builder 'CDT Builder' on project 'RepRapFirmware'.
              Resource '/RepRapFirmware/RADDS_RTOS/sources.mk' does not exist.
              Resource '/RepRapFirmware/RADDS_RTOS/sources.mk' does not exist.
              Resource '/RepRapFirmware/RADDS_RTOS/sources.mk' does not exist.
              Resource '/RepRapFirmware/RADDS_RTOS/sources.mk' does not exist.

              1 Reply Last reply Reply Quote 0
              • undefined
                ffnull
                last edited by 23 Dec 2018, 13:36

                FIXED! Cleanup all again. And compiles without issues. Thank You!

                1 Reply Last reply Reply Quote 0
                • undefined
                  ffnull
                  last edited by 23 Dec 2018, 13:57

                  Last question. Im do remap pinouts of RADDS. Im try to adopt another shield. On my board STEP pins is Analog Pins on DUE. Im try to write A11,A12... But its not correct. How to correct?

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    dc42 administrators
                    last edited by 23 Dec 2018, 20:17

                    If you change the step pins, you also need to change the 3 functions at the end of the Platform.h file. For best performance, assign all of the step pins to the same PIO port.

                    Duet WiFi hardware designer and firmware engineer
                    Please do not ask me for Duet support via PM or email, use the forum
                    http://www.escher3d.com, https://miscsolutions.wordpress.com

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      ffnull
                      last edited by 23 Dec 2018, 20:40

                      Thanks. But how to use analog pins? Im try A10, A11 ... but its not correct. How?

                      undefined 1 Reply Last reply 23 Dec 2018, 20:42 Reply Quote 0
                      • undefined
                        dc42 administrators @ffnull
                        last edited by 23 Dec 2018, 20:42

                        @ffnull said in Error while compile RADDS:

                        Thanks. But how to use analog pins? Im try A10, A11 ... but its not correct. How?

                        Those pins have equivalent digital pin numbers. Read the Arduino Due documentation to find what the mapping is.

                        Duet WiFi hardware designer and firmware engineer
                        Please do not ask me for Duet support via PM or email, use the forum
                        http://www.escher3d.com, https://miscsolutions.wordpress.com

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          ffnull
                          last edited by 23 Dec 2018, 20:43

                          Huh. Im idiot. Im forgot about it. Thnx

                          1 Reply Last reply Reply Quote 0
                          10 out of 12
                          • First post
                            10/12
                            Last post
                          Unless otherwise noted, all forum content is licensed under CC-BY-SA