Error while compile RADDS



  • 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


  • administrators

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



  • 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


  • administrators

    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.


  • administrators

    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.



  • 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.



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



  • 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?


  • administrators

    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.



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


  • administrators

    @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.



  • Huh. Im idiot. Im forgot about it. Thnx


Log in to reply