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

[SOLVED] Paneldue firmware compile error

Scheduled Pinned Locked Moved Solved
PanelDue
3
17
828
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.
  • undefined
    64bit
    last edited by 64bit 22 Apr 2021, 19:52

    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.

    undefined 1 Reply Last reply 22 Apr 2021, 19:55 Reply Quote 0
    • undefined
      jay_s_uk @64bit
      last edited by 22 Apr 2021, 19:55

      @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

      undefined 1 Reply Last reply 22 Apr 2021, 19:59 Reply Quote 0
      • undefined
        64bit @jay_s_uk
        last edited by 22 Apr 2021, 19:59

        @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.

        undefined 1 Reply Last reply 22 Apr 2021, 20:00 Reply Quote 0
        • undefined
          jay_s_uk @64bit
          last edited by 22 Apr 2021, 20:00

          @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

          undefined 1 Reply Last reply 22 Apr 2021, 20:03 Reply Quote 0
          • undefined
            64bit @jay_s_uk
            last edited by 22 Apr 2021, 20:03

            @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.

            undefined 1 Reply Last reply 22 Apr 2021, 20:13 Reply Quote 0
            • undefined
              jay_s_uk @64bit
              last edited by jay_s_uk 22 Apr 2021, 20:13

              @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

              undefined 1 Reply Last reply 22 Apr 2021, 20:18 Reply Quote 0
              • undefined
                64bit @jay_s_uk
                last edited by 22 Apr 2021, 20:18

                @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

                undefined 2 Replies Last reply 22 Apr 2021, 20:18 Reply Quote 0
                • undefined
                  jay_s_uk @64bit
                  last edited by 22 Apr 2021, 20:18

                  @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

                  undefined 1 Reply Last reply 22 Apr 2021, 20:34 Reply Quote 0
                  • undefined
                    jay_s_uk @64bit
                    last edited by 22 Apr 2021, 20:32

                    @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

                    undefined 1 Reply Last reply 22 Apr 2021, 20:35 Reply Quote 0
                    • undefined
                      64bit @jay_s_uk
                      last edited by 22 Apr 2021, 20:34

                      @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
                      • undefined
                        64bit @jay_s_uk
                        last edited by 22 Apr 2021, 20:35

                        @jay_s_uk

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

                        undefined 1 Reply Last reply 22 Apr 2021, 20:47 Reply Quote 0
                        • undefined
                          jay_s_uk @64bit
                          last edited by 22 Apr 2021, 20:47

                          @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

                          undefined 1 Reply Last reply 23 Apr 2021, 14:37 Reply Quote 0
                          • undefined
                            64bit @jay_s_uk
                            last edited by 23 Apr 2021, 14:37

                            @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)

                            undefined 1 Reply Last reply 23 Apr 2021, 14:39 Reply Quote 0
                            • undefined
                              jay_s_uk @64bit
                              last edited by 23 Apr 2021, 14:39

                              @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

                              undefined 2 Replies Last reply 23 Apr 2021, 14:43 Reply Quote 0
                              • undefined
                                64bit @jay_s_uk
                                last edited by 23 Apr 2021, 14:43

                                @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
                                • undefined
                                  64bit @jay_s_uk
                                  last edited by 23 Apr 2021, 14:51

                                  @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

                                  undefined 1 Reply Last reply 5 Apr 2023, 11:18 Reply Quote 1
                                  • undefined
                                    R006 @64bit
                                    last edited by R006 4 May 2023, 11:19 5 Apr 2023, 11:18

                                    @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
                                    • undefined R006 referenced this topic 7 Apr 2023, 06:58
                                    • First post
                                      Last post
                                    Unless otherwise noted, all forum content is licensed under CC-BY-SA