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

    [SOLVED] Paneldue firmware compile error

    Scheduled Pinned Locked Moved Solved
    PanelDue
    3
    17
    827
    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.
    • 64bitundefined
      64bit
      last edited by 64bit

      Can anyone shed some light on what my machine is telling me the problem is? I've been fighting this for the last few hours. I think this is the last hurdle I have to overcome.

      c:/program files (x86)/gnu arm embedded toolchain/10 2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -lRRFLibraries
      collect2.exe: error: ld returned 1 exit status
      make: *** [makefile:82: PanelDueFirmware-v3-4.3.elf] Error 1
      "make -j4 all" terminated with exit code 2. Build might be incomplete.

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

        @64bit said in Paneldue firmware compile error:

        cannot find -lRRFLibraries

        I think that gives it away
        https://github.com/Duet3D/PanelDueFirmware/blob/master/BuildInstructions.md#building-standalone

        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

        64bitundefined 1 Reply Last reply Reply Quote 0
        • 64bitundefined
          64bit @jay_s_uk
          last edited by

          @jay_s_uk

          It might, If I hadn't been staring at those instructions for the last 2-3 hours. I am not a programmer.

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

            @64bit

            Download or git clone the dev branch of RRFLibraries into C:\Eclipse.
            

            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

            64bitundefined 1 Reply Last reply Reply Quote 0
            • 64bitundefined
              64bit @jay_s_uk
              last edited by

              @jay_s_uk
              Already been done.
              Downloaded RRFLibraries-3.3-dev whatever its called.
              Renamed it to RRFLibraries
              Put it in Eclipse and even under the firmware tab.

              It wont come up in Eclipse when I try to "open project" either, so im going to look into that more.

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

                @64bit the project explorer should look like this
                2e8101a4-c021-4d65-85af-b8cf849789e2-image.png

                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

                64bitundefined 1 Reply Last reply Reply Quote 0
                • 64bitundefined
                  64bit @jay_s_uk
                  last edited by

                  @jay_s_uk

                  Making progress I guess.

                  Now Im stuck with no .bin being output.

                  make --no-print-directory post-build
                  Generating binary
                  "/arm-none-eabi-objcopy" -O binary "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3.elf" "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3-nologo.bin" && cat "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3-nologo.bin" "C:/Eclipse/PanelDueFirmware/SplashScreens/SplashScreen-Duet3D-480x272.bin" >"C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3.bin"
                  c:/windows-build-tools/bin/sh: C:/arm-none-eabi-objcopy: not found

                  jay_s_ukundefined 2 Replies Last reply Reply Quote 0
                  • jay_s_ukundefined
                    jay_s_uk @64bit
                    last edited by

                    @64bit yea, i just got that error. will look into it and report back

                    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

                    64bitundefined 1 Reply Last reply Reply Quote 0
                    • jay_s_ukundefined
                      jay_s_uk @64bit
                      last edited by

                      @64bit what have you got in C:\windows-build-tools?
                      I had 2 folders and had to tidy it up. works ok for me now.

                      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

                      64bitundefined 1 Reply Last reply Reply Quote 0
                      • 64bitundefined
                        64bit @jay_s_uk
                        last edited by

                        @jay_s_uk

                        I found objcopy.exe in my GNU Embedded tools. So I ran the following from the cmd prompt

                        C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\arm-none-eabi\bin>objcopy.exe -O binary "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3.elf" "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3-nologo.bin"

                        Output was a no logo bin that I have now flashed to the paneldue. after a reset it opened right up.

                        A bit of ass pain, but it worked.

                        1 Reply Last reply Reply Quote 1
                        • 64bitundefined
                          64bit @jay_s_uk
                          last edited by

                          @jay_s_uk

                          fe046ef6-f198-4d8e-a091-29d7d45421dd-image.png

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

                            @64bit

                            can you try going to Windows -> Preferences -> C/C++ -> Build -> Build Variables and click "Add..."

                            set the name to "ArmGccPath", then change to directory and navigate to C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\arm-none-eabi\bin

                            Then apply and close eclipse. reopen it and try and build

                            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

                            64bitundefined 1 Reply Last reply Reply Quote 0
                            • 64bitundefined
                              64bit @jay_s_uk
                              last edited by

                              @jay_s_uk said in Paneldue firmware compile error:

                              C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\arm-none-eabi\bin

                              Must be an issue in the makefile?

                              "C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\arm-none-eabi\bin/arm-none-eabi-objcopy" -O binary "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3.elf" "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3-nologo.bin" && cat "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3-nologo.bin" "C:/Eclipse/PanelDueFirmware/SplashScreens/SplashScreen-Duet3D-480x272.bin" >"C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3.bin"
                              c:/windows-build-tools/bin/sh: C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\arm-none-eabi\bin/arm-none-eabi-objcopy: not found
                              make[1]: [makefile:94: post-build] Error 127 (ignored)

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

                                @64bit
                                It compiles ok for me here

                                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

                                64bitundefined 2 Replies Last reply Reply Quote 0
                                • 64bitundefined
                                  64bit @jay_s_uk
                                  last edited by

                                  @jay_s_uk

                                  I dont understand where the forward slash is coming from.

                                  I mean, I can keep just using the command line to run objcopy. I just wish it wasnt screwed up.

                                  What version of the GNU Arm Embedded Toolchain are you using?

                                  1 Reply Last reply Reply Quote 0
                                  • 64bitundefined
                                    64bit @jay_s_uk
                                    last edited by

                                    @jay_s_uk

                                    SOLVED

                                    make --no-print-directory post-build
                                    Generating binary
                                    "C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\arm-none-eabi\bin/arm-none-eabi-objcopy" -O binary "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3.elf" "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3-nologo.bin" && cat "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3-nologo.bin" "C:/Eclipse/PanelDueFirmware/SplashScreens/SplashScreen-Duet3D-480x272.bin" >"C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3.bin"

                                    copied and renamed objcopy.exe to arm-none-eabi-objcopy.exe
                                    File compiles properly now into both w/logo and no-logo files.

                                    9551125f-99d4-41a1-9edd-07fdb6d8812e-image.png

                                    R006undefined 1 Reply Last reply Reply Quote 1
                                    • R006undefined
                                      R006 @64bit
                                      last edited by R006

                                      @jay_s_uk i got the same error and try as @64bit mentioned in the post but its not working for me.
                                      i an waiting your reply @jay_s_uk

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