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

    Sammy-C21 increasing analog Input available

    Scheduled Pinned Locked Moved
    Other control boards
    2
    2
    269
    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.
    • Flipasaurusundefined
      Flipasaurus
      last edited by

      Hello,

      I have been working on a project where I need to add more analog inputs than what are available for the standard Sammy-C21 firmware build. I see that the Sammy-C21 module supports up to 12 ADC inputs, and the standard firmware supports 5 of them. I downloaded the Duet 3 EXP project to build my own firmware, however I am having trouble getting it to compile. I have not made any changes to the default Sammy-C21 configuration.

      I have followed the instructions on this page (https://github.com/Duet3D/Duet3Expansion/tree/master), I renamed all the files, and I set all the build configurations to match. However I still have these errors:

      Description Resource Path Location Type
      'cpu_irq_restore' was not declared in this scope Isqrt.cpp /RRFLibraries/src/Math line 21 C/C++ Problem
      'cpu_irq_restore' was not declared in this scope Isqrt.cpp /RRFLibraries/src/Math line 38 C/C++ Problem
      'cpu_irq_save' was not declared in this scope Isqrt.cpp /RRFLibraries/src/Math line 17 C/C++ Problem
      'cpu_irq_save' was not declared in this scope Isqrt.cpp /RRFLibraries/src/Math line 33 C/C++ Problem
      'fastSqrtf' was not declared in this scope LinearDeltaKinematics.cpp /Duet3Expansion/src/Movement/Kinematics line 73 C/C++ Problem
      'fastSqrtf' was not declared in this scope LinearDeltaKinematics.cpp /Duet3Expansion/src/Movement/Kinematics line 85 C/C++ Problem
      'fastSqrtf' was not declared in this scope LinearDeltaKinematics.cpp /Duet3Expansion/src/Movement/Kinematics line 115 C/C++ Problem
      make: *** [all] Error 2 Duet3Expansion C/C++ Problem
      make: *** [src/Math/Isqrt.o] Error 1 RRFLibraries C/C++ Problem
      make: *** Waiting for unfinished jobs.... RRFLibraries C/C++ Problem
      make[1]: *** [src/Movement/Kinematics/LinearDeltaKinematics.o] Error 1 Duet3Expansion C/C++ Problem
      make[1]: *** Waiting for unfinished jobs.... Duet3Expansion C/C++ Problem
      recipe for target 'all' failed makefile /Duet3Expansion/SAMMYC21-Debug line 68 C/C++ Problem
      recipe for target 'src/Math/Isqrt.o' failed subdir.mk /RRFLibraries/SAMC21_RTOS_Debug/src/Math line 24 C/C++ Problem
      recipe for target 'src/Movement/Kinematics/LinearDeltaKinematics.o' failed subdir.mk /Duet3Expansion/SAMMYC21-Debug/src/Movement/Kinematics line 27 C/C++ Problem

      I am not certain what to try next, any advice?

      Thank you!

      dc42undefined 1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @Flipasaurus
        last edited by dc42

        @flipasaurus please use the 3.4-dev branches of all projects (Duet3Expansion, CANlib, FreeRTOS, CoreN2G and RRFLibraries. The branches listed in the readme file are out of date.

        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
        • First post
          Last post
        Unless otherwise noted, all forum content is licensed under CC-BY-SA