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

    Problem compiling RRF 3.1.1

    Scheduled Pinned Locked Moved
    Firmware developers
    4
    9
    442
    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.
    • IvanDomotekundefined
      IvanDomotek
      last edited by

      Hello,
      I am trying to build from scratch in my computer the RepRapFirmware 3.0 for a Duet 3 Mainboard 6HC following the "Instructions for building dc42 fork of RepRapFirmware" from the dev branch, I am using the branches of RRF 3.X with the last update on 8 of january 2020.

      I have followed the guide step by step but I am having problems when compiling it. I build them in this order: CoreNG->FreeRTOS->RRFLibraries->CANlib->RepRapFirmware.
      Every project except RepRapFirmware are building successfully.

      These are some of the errors I encounter when building RRF v3-dev :

      1.JPG

      2.JPG

      3.JPG
      Which are the correct branches I should use to build the RRF Release 3.1.1 ?

      I have compiled previous versions of RRF 3 using the "v3.01-dev" branch of RRF, but this does not work with the branches specified on the 8 th of january 2020.

      Any help is apreciated.

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

        You appear to have selected the RADDS configuration, which is no longer supported. You need to select the Duet3_v06 configuration.

        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
        • IvanDomotekundefined
          IvanDomotek
          last edited by

          Thanks for answering,

          You were right, I did chose wrongly the build configuration of RRF. Once I changed that, there were some other errors when compiling related with these files :

          -CANlib/src→ On the updated commit there is a file named “Duet3Common.h” and the RRF v3-dev is looking for “Duet3Limits.h”.

          -CoreNG/libraries → On the updated commit there were only 2 forlders (Flash,Wire) so the RRF v3-dev could not find “sd_mmc.h” file.

          -RRFLibraries/src/General/NumericConverter → There is a function NumericConverter::Accumulate that does not work with the function in RRF v3-dev.

          It would be nice if you could update the RRF v3-dev branch taking into account recent changes to the other projects (CANlib, CoreNG, RRFLibraries) so it works with the latest versions.

          At the end I managed to compile it. For anyone that wants to compile RRF 3.1.1 these are the branches of the projects that I have used for the Duet3 MB6HC following the BuildInstructions file with the last modification on 08-01-2020.
          The dates in brackets are the commit dates of each project that I had to use for a succesfull compilation.

          • CANlib:master (09-06-2020)
          • CoreNG:dev (14-06-2020)
          • DuetWifiSocketServer:master (20-02-2020)
          • FreeRTOS:master (31-05-2020)
          • RepRapFirmware:v3-dev (07-07-2020)
          • RRFLibraries:dev (01-05-2020)
          1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators
            last edited by dc42

            All the projects that RRF3.1.0 and RRF3.1.1 depend on have 3.1.0 tags on the correct commits to use.

            The current development branch is v3.02-dev.

            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
            • IvanDomotekundefined
              IvanDomotek
              last edited by

              Hello again,
              So you are saying every commit of the projects i should use to compile RRF3.1.1 has a "3.1.0" tag like this one ??

              RRF tag 3.1.0.JPG

              If that is what you mean, I am not able to find a "3.1.0" or "3.1.1" tag on the commits of for example "CoreNG: dev " or "CANlib: master"

              If that is not correct, what do you mean with the tags ?? Can you specify which commits should be used to compile RRF 3.1.1

              1 Reply Last reply Reply Quote 0
              • A Former User?
                A Former User
                last edited by A Former User

                https://github.com/Duet3D/RRFLibraries/tree/3.1.0
                https://github.com/Duet3D/FreeRTOS/tree/3.1.0
                https://github.com/Duet3D/CANlib/tree/3.1.0
                https://github.com/Duet3D/CoreNG/tree/3.1.0

                edit: if you have tab completion in your shell you can also just view the tags and braches available by pressing tab after typing git checkout. should see 3.1.0 on the relevant branches and proceed to check out that on in each repo.

                bearer@build:~/eclipse/firmware/CoreNG$ git checkout
                1.18.1                origin/dev            v1.19
                3.1.0                 origin/HEAD           v2.05.2
                dev                   origin/master         v2-chrishamm
                FETCH_HEAD            origin/v2.05.2        v2-dev
                HEAD                  origin/v2-chrishamm   v3-dev
                master                origin/v2-dev
                ORIG_HEAD             origin/v3-dev
                bearer@build:~/eclipse/firmware/CoreNG$ git checkout 3.1.0
                Note: checking out '3.1.0'.
                
                You are in 'detached HEAD' state. You can look around, make experimental
                changes and commit them, and you can discard any commits you make in this
                state without impacting any branches by performing another checkout.
                
                If you want to create a new branch to retain commits you create, you may
                do so (now or later) by using -b with the checkout command again. Example:
                
                  git checkout -b <new-branch-name>
                
                HEAD is now at c0ad4e5 Moved SPI SPI definitions out of this project
                bearer@build:~/eclipse/firmware/CoreNG$
                
                

                edit2: to elaborate on the point made below:
                cad8295c-0948-4adf-adf3-d3818373d46c-image.png

                botundefined 1 Reply Last reply Reply Quote 1
                • botundefined
                  bot @A Former User
                  last edited by bot

                  Beat me to it! You gotta choose the tag like you choose the branch. (On GitHub, that is.)

                  *not actually a robot

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

                    You can also see what tags are available on the Tags page for the project, e.g. https://github.com/Duet3D/CoreNG/tags.

                    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
                    • IvanDomotekundefined
                      IvanDomotek
                      last edited by

                      Oh, I did not know about that Tags page, I will check it .
                      Thanks a lot!

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