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

    firmware build

    Scheduled Pinned Locked Moved
    Firmware developers
    3
    37
    1.7k
    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.
    • jokeundefined
      joke
      last edited by

      Re: Firmware building

      I use the msy2 to build firmware.But when I re-downloaded using the above steps, I'm not sure where the problem occurred.
      cd8b8a40-fd6c-4e9a-b123-3e471487611c-image.png be446c28-e026-42df-8c7a-1db5f642329d-image.png bad597fc-55af-404f-bbaa-a4ea48991c0c-image.png

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

        @joke you haven't defined where the ARM gcc compiler is. See step 10 at https://github.com/Duet3D/RepRapFirmware/wiki/Building-RepRapFirmware#instructions-for-building-under-windows.

        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

        jokeundefined 1 Reply Last reply Reply Quote 0
        • jokeundefined
          joke @dc42
          last edited by

          @dc42 d51cdcf9-6c5b-46d7-9caf-b72c9bef716f-image.png Is that so? Or can you give me a screenshot? Step 10 I don't see too clearly, thank you very much.

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

            @joke mine looks like this:

            bb343fc8-17dd-4290-8346-638967d81ef5-image.png

            The first one ArmGccPath is needed for all the RRF projects. The remaining three are needed only to build DuetWiFiSocketServer, which you don't need to do.

            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

            jokeundefined 1 Reply Last reply Reply Quote 0
            • jokeundefined
              joke @dc42
              last edited by

              @dc42 78da4dde-48f7-4be2-8ee4-ff8a96ec2b36-image.png 2700e6a3-bf61-4029-9989-92a1c3c27d86-image.png 56e350e0-7511-4a13-9cdd-a50cf74297bc-image.png d382ac98-4356-4010-b8c7-294b2d300ed4-image.png I set it up this way, but there are still these errors, can you help me see what's going on.

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

                @joke your ArmGccPath looks wrong, David's and my are ...eabi/12.2 mpacbti-rel1/bin, but your setting is ...eabi/bin, so there is missing a subdir. I expcect you extracted somehow only the exe file subdir, but the compiler needs the include subdir and maybe other subdirs also which are parallel to it.

                If I remember correctly, I had a similar situation unpacking a zip file version which didn't include all subdirs, and solved it by using the installer version. This installed all which is needed.

                jokeundefined 1 Reply Last reply Reply Quote 0
                • jokeundefined
                  joke @JoergS5
                  last edited by

                  @JoergS5 0278981d-e73f-43df-b7a3-9595157ba75e-image.png Thank you, I re-decompressed arm, and after recompiling, there was a new problem, is this set wrong

                  dc42undefined JoergS5undefined 2 Replies Last reply Reply Quote 0
                  • dc42undefined
                    dc42 administrators @joke
                    last edited by

                    @joke 'make' is not part of the ARM compiler bundle. It is an optional component of msys2 that has to be installed separately.

                    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

                    jokeundefined 1 Reply Last reply Reply Quote 0
                    • jokeundefined
                      joke @dc42
                      last edited by

                      @dc42 I have installed msys2.Follow the steps you gave.Do I still need to add it to Eclipse?38032ade-b3a9-475c-a68d-2c23438d0591-image.png

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

                        @joke add C:\msys64\usr\bin to your PATH in windows. Then exit and reload Eclipse (otherwise it won't pick up changes to the Windows path).

                        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

                        jokeundefined 2 Replies Last reply Reply Quote 0
                        • jokeundefined
                          joke @dc42
                          last edited by

                          @dc42 6c2d7401-b9e3-4c53-a81f-9e8eafd31bd3-image.png I made these changes, but I still have this error.

                          1 Reply Last reply Reply Quote 0
                          • jokeundefined
                            joke @dc42
                            last edited by

                            @dc42 cc5b0be8-2ec3-45f0-816b-757cbef74864-image.png 3dd70e33-55f1-43aa-b337-76f9ccf57b70-image.png I tried to do this and could find make, but these new errors appear.

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

                              This post is deleted!
                              1 Reply Last reply Reply Quote 0
                              • JoergS5undefined
                                JoergS5 @joke
                                last edited by

                                @joke said in firmware build:

                                re-decompressed arm, and after recompiling

                                I didn't recompile it, but used the ready compiled files. Did you check that there are include subdirectories parallel to your bin directory?

                                The include files are necessary for the compiler to find uint32_t, which is included in stdlib.h

                                jokeundefined 1 Reply Last reply Reply Quote 0
                                • jokeundefined
                                  joke @JoergS5
                                  last edited by

                                  @JoergS5 D:\arm-gnu-toolchain-12.2.mpacbti-rel1-mingw-w64-i686-arm-none-eabi\arm-none-eabi\include\c++\12.2.1\stdlib.hd352b85a-d96e-4f2e-9218-78cbc59418c2-image.png I can find it, so the compiler path I set is D:\arm-gnu-toolchain-12.2.mpacbti-rel1-mingw-w64-i686-arm-none-eabi\arm-none-eabi\bin.5e5d01bf-31d0-4c62-bb11-4d8e16a524c4-image.png These errors still occur after compiling.Thank you.

                                  JoergS5undefined dc42undefined 4 Replies Last reply Reply Quote 0
                                  • JoergS5undefined
                                    JoergS5 @joke
                                    last edited by

                                    @joke if you have still the msys2 part in ArmGccPath setting, this may confuse the compiler. You should remove it.

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

                                      @joke an my path is different from your:

                                      C:\Program Files (x86)\Arm GNU Toolchain arm-none-eabi\12.2 mpacbti-rel1\bin\

                                      don't know why they are different, we both use 12.2 (independent from the beginning of course).

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

                                        @joke which version of each project have you loaded into your Eclipse workspace?

                                        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

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

                                          @joke I think the issue may be that you are building an older version of the firmware with a compiler and library version more recent than we used with that version. In this case I think you can work around the issue by adding the line #include <stdint.c> before the line extern void vAssertCalled(uint32_t line, const char *file) noexcept; near the start of file nano-mallocr.c.

                                          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

                                          jokeundefined 4 Replies Last reply Reply Quote 0
                                          • jokeundefined
                                            joke @dc42
                                            last edited by

                                            @dc42 I downloaded the 3.5 version in the picture above on the website, but after downloading the suffix of the software is 3.4, I don't know how many versions I own, is there no update 3.5 series in github now?16e12fd0-5df7-40b3-8dfa-9a9b431f3fc1-image.png

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