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

    how to recompile the firmware.bin

    Scheduled Pinned Locked Moved
    General Discussion
    8
    30
    1.3k
    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.
    • tony73undefined
      tony73
      last edited by

      good evening I would like to make a modification all kinematic scara single arm, I found the lines of code in a forum post the problem is that you don't come to recompile the firmware, the second problem is that I'm using rrf 3 lpc 1768 on a skr v1. 3 can someone help me? thanks anyway!

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

        For support on compiling the LPC version, it helps to tag @gloomyandy.

        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
        • jay_s_ukundefined
          jay_s_uk
          last edited by

          I wrote this post a while ago about how to compile the firmware. https://www.jayuk.org/compiling-and-running-reprapfirmware-on-an-skr-1-4-and-other-lp17xx-boards/
          It's on my list to transfer to the wiki for the LPC version of RRF but haven't got to it yet.

          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

          1 Reply Last reply Reply Quote 0
          • gloomyandyundefined
            gloomyandy
            last edited by

            I think Jay's article is a great starting point, if you can handle git and vscode things are reasonably straightforward. One thing I'd add is that you are probably better off using the 3.1.1 tagged versions that are here:
            https://github.com/gloomyandy/RepRapFirmware/tree/LPC_RRFv3.1.1/src
            https://github.com/gloomyandy/CoreLPC4RRF/tree/LPC_RRFv3.1.1
            https://github.com/gloomyandy/RRFLibraries/tree/LPC_RRFv3.1.1

            Depending upon which version you intend to build you may also need the WiFi repo (you only actually need one file), which is here:
            https://github.com/gloomyandy/DuetWiFiSocketServer/tree/V1.23-01

            There are also various comments and tips on building and using the LPC version in this RepRap thread:
            https://reprap.org/forum/read.php?147,859857
            it is rather long and some of the earlier information is now out of date, but it is well worth reading to get a feel for what is possible.

            The Wiki that Jay has done a great job on providing is here:
            https://github.com/gloomyandy/RepRapFirmware/wiki

            There is also a discord server that I'm sure @jay_s_uk can provide details for, which may be a good place to get help if you run into issues.

            Have you actually used the rrf LPC port at all so far? If not and especially if you intend to hook up a WiFi or SBC connection to it you may want to try getting something working using one of the pre-built versions before diving into things with your own version.

            Think that is about it for now.

            1 Reply Last reply Reply Quote 0
            • jay_s_ukundefined
              jay_s_uk
              last edited by

              Here's the link to the discord channel.
              https://discord.gg/uS97Qs7

              Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

              tony73undefined 1 Reply Last reply Reply Quote 0
              • tony73undefined
                tony73 @jay_s_uk
                last edited by

                @jay_s_uk

                I apologize if I answer after many days from your help, thank you all for helping me with the reward of the firmware.bin for rrf lpc have managed to change the firmware.bin for my download by adding a 4 axis position taking the suggestion of @ dc42 from this post! 4axis.PNG this is a hidden axis and it is not possible to homing and have a precise and repeatable position very important thing! I am unable to create a code myself. if any of you are able to write the code to put in the scara kinematics, could you help and suggest me? thank you all

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

                  If the 4th motor has its own homing switch, then you should be able to home it in the normal way using a homeu.g file containing at least a G1 H1 Uxxx command.

                  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

                  tony73undefined 1 Reply Last reply Reply Quote 0
                  • tony73undefined
                    tony73 @dc42
                    last edited by

                    @dc42

                    good morning I already had a home A I was trying a 4 rotary axis I changed it to home U but with the line of code (motorpos [3] = irinf (-1 * (theta + psi) * stepspermm [3]) you suggested the homing u does not go. it could be something badly put by me or a bag in rrf lpc. what i am interested in is the function with the negation to be able to maintain a position of the 4 axis when proximal and distal move, have a homing u for the repeatable posignone and if there is a way to send commands (example G1 U30) to call the 4-axis head positionhome u.PNG casa u.PNG home all.PNG

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

                      You will need to temporarily make the U axis visible using M584 P4 before you can home it. After homing it you can hide the U axis using M584 P3.

                      When you have this working, you can do the hiding/unhiding in homeall.g instead.

                      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
                      • koaldesignsundefined
                        koaldesigns
                        last edited by

                        Did you manage to compile the firmware? I keep getting PATH errors in eclipse even though all of the right paths are inputted. As you know I'm building a machine very similar to yours, but I'm using a Duet WiFi instead of an SKR board.

                        JoergS5undefined tony73undefined 3 Replies Last reply Reply Quote 0
                        • JoergS5undefined
                          JoergS5 @koaldesigns
                          last edited by JoergS5

                          @koaldesigns did you install ARM toolchain and the make extension (make that can execute longer lines) and added them to Windows system path (if you use Windows....)?

                          If you run cmd and execute path, you should see something like
                          C:\Program Files\GNU ARM Eclipse\Build Tools\2.6-201507152002\bin;C:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q4-major\bin
                          in the path and if you use Windows 10 and execute "make -v" (without parantheses) in the cmd, it should say GNU Make 4.1 and if you execute "where make" (without parantheses), then it should something similar to C:\Program Files\GNU ARM Eclipse\Build Tools\2.6-201507152002\bin\make.exe

                          When you've managed to install it and add it to the path, then you have to restart Eclipse to be effective.

                          Your xtensa error message: in the DuetWiFiSocketServer root directory is a readme with some information about xtensa installing. xtensa is the brand of the ESP8266 chip. For RRF3 you don't need to compile the WifiServer project.

                          1 Reply Last reply Reply Quote 0
                          • oliofundefined
                            oliof
                            last edited by

                            I compiled a firmware for @koaldesigns in the mean time (but not without stumbling around a bit trying to build from head).

                            <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                            JoergS5undefined 1 Reply Last reply Reply Quote 0
                            • JoergS5undefined
                              JoergS5 @oliof
                              last edited by

                              @oliof Thanks for information. The first time I wanted to build the firmware I had a lot of problems, but the more often I build, the easier it gets.

                              1 Reply Last reply Reply Quote 0
                              • oliofundefined
                                oliof
                                last edited by

                                Step 14 in BuildInstructions.md would benefit from a bit of wordsmithing. I will take a gander. Also, building from head requires you to switch to the dev branch of DuetWifiSocketServer due to the upcoming transmit power control.

                                Using the 3.1.0 / 3.1.1 tagged commits makes it a bit easier (-:

                                <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                                1 Reply Last reply Reply Quote 0
                                • tony73undefined
                                  tony73 @koaldesigns
                                  last edited by

                                  This post is deleted!
                                  1 Reply Last reply Reply Quote 0
                                  • tony73undefined
                                    tony73 @koaldesigns
                                    last edited by

                                    @koaldesigns
                                    Hello everyone ! thanks to dc42 for the last help on the homing of the 4 hidden axis! I managed to recompile the firmware with the help that everyone gave me [rrf 3 lpc on skr v1.3] lately I had little time, the homing on 4 axis hidden by problems !!! maybe some bag on rrf3 lpc? in loading the new line I noticed that it was missing ----; ----- at the end of the line, it made no sense to me !!!!! 4 ASSE.JPG

                                    now i bought a duet 3 6ch and i don't know how to recompile the firmware to add the hidden 4 axis !! can you help me ? or tell me if I find documentation and where? if I can help you too but I think you know more about me on rrf for duet !!!

                                    JoergS5undefined dc42undefined 2 Replies Last reply Reply Quote 0
                                    • JoergS5undefined
                                      JoergS5 @tony73
                                      last edited by JoergS5

                                      This post is deleted!
                                      1 Reply Last reply Reply Quote 0
                                      • dc42undefined
                                        dc42 administrators @tony73
                                        last edited by dc42

                                        @tony73 said in how to recompile the firmware.bin:

                                        now i bought a duet 3 6ch and i don't know how to recompile the firmware to add the hidden 4 axis !! can you help me ? or tell me if I find documentation and where? if I can help you too but I think you know more about me on rrf for duet !!!

                                        See https://github.com/Duet3D/RepRapFirmware/blob/dev/BuildInstructions.md. Development of RRF is currently on the v3.02-dev branch.

                                        Please upgrade the firmware on your Duet 3 to version 3.1.1 and check all is OK before you try to install your own firmware.

                                        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

                                        tony73undefined 1 Reply Last reply Reply Quote 0
                                        • tony73undefined
                                          tony73 @dc42
                                          last edited by

                                          @dc42

                                          duet 3 6ch arrived from 1 day I'm connecting it to the scara !! all different from rrf lpc on skr v1.3 ..... m122 tells me this diagnostica duet.JPG

                                          version 3.01-rc9 !!! I don't know how to update to 3.1.1 is there a guide? and T: -273.1 can I use this 100k thermistor on duet 3 6ch? it went on rrf3 lps + skr v1.3 20200804_223202.jpg

                                          I have no idea how to update the firmware !!! thank you all !!!

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

                                            Download https://github.com/Duet3D/RepRapFirmware/releases/download/3.1.1/Duet2and3Firmware-3.1.1.zip, then upload it to the Duet from the System page of Duet Web Control. More at https://duet3d.dozuki.com/Wiki/Installing_and_Updating_Firmware.

                                            Yes you can use a 100K thermistor.

                                            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

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