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

crc32appender now needed for RRF?

Scheduled Pinned Locked Moved
Firmware developers
7
29
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.
  • undefined
    JoergS5 @wilriker
    last edited by 5 Oct 2019, 07:23

    @wilriker How about putting it into RRFLibraries, where support algorithms are gathered.

    undefined 1 Reply Last reply 5 Oct 2019, 10:10 Reply Quote 0
    • undefined
      dc42 administrators @JoergS5
      last edited by 5 Oct 2019, 10:10

      @JoergS5 said in crc32appender now needed for RRF?:

      @wilriker How about putting it into RRFLibraries, where support algorithms are gathered.

      RRFlibraries is just code for linking with other projects. RepRapFirmware already has a separate Tools folder.

      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
      • undefined
        smoki3
        last edited by 9 Oct 2019, 14:14

        Is there a possibility to get it working on a mac?

        undefined 1 Reply Last reply 9 Oct 2019, 14:19 Reply Quote 0
        • undefined
          wilriker @smoki3
          last edited by 9 Oct 2019, 14:19

          @smoki3 I will add one in a moment to the repo. Meanwhile use this one in my Dropbox.

          Manuel
          Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
          with probably always latest firmware/DWC (incl. betas or self-compiled)
          My Tool Collection

          1 Reply Last reply Reply Quote 0
          • undefined
            smoki3
            last edited by 9 Oct 2019, 14:38

            how to add it in eclipse?

            undefined 1 Reply Last reply 9 Oct 2019, 14:45 Reply Quote 0
            • undefined
              gtj0 @smoki3
              last edited by 9 Oct 2019, 14:45

              @smoki3 said in crc32appender now needed for RRF?:

              how to add it in eclipse?

              For now, you can copy it to any directory in your PATH. Eclipse will automatically pick it up.

              1 Reply Last reply Reply Quote 0
              • undefined
                smoki3
                last edited by 9 Oct 2019, 14:50

                I copied it to the root folder of the RepRapFirmware directory. Does not work

                undefined 1 Reply Last reply 9 Oct 2019, 14:55 Reply Quote 0
                • undefined
                  gtj0
                  last edited by 9 Oct 2019, 14:55

                  @wilriker Your commit to add it needs to add the appropriate Tools/crc32appender directories to the PATH in Eclipse or we'll have to manually copy it to a system directory.

                  undefined 1 Reply Last reply 9 Oct 2019, 15:14 Reply Quote 1
                  • undefined
                    gtj0 @smoki3
                    last edited by 9 Oct 2019, 14:55

                    @smoki3 said in crc32appender now needed for RRF?:

                    I copied it to the root folder of the RepRapFirmware directory. Does not work

                    It has to be a directory in your $PATH.

                    undefined 1 Reply Last reply 9 Oct 2019, 15:06 Reply Quote 0
                    • undefined
                      smoki3 @gtj0
                      last edited by 9 Oct 2019, 15:06

                      @gtj0

                      I get this:

                      /bin/sh: crc32appender: command not found

                      dont know where my $PATH is

                      undefined 1 Reply Last reply 9 Oct 2019, 15:11 Reply Quote 0
                      • undefined
                        wilriker @smoki3
                        last edited by 9 Oct 2019, 15:11

                        @smoki3 in the command line type

                        echo $PATH
                        

                        it should give you a colon-separated list of directories where the system looks for executables by default.

                        Manuel
                        Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                        with probably always latest firmware/DWC (incl. betas or self-compiled)
                        My Tool Collection

                        undefined 1 Reply Last reply 9 Oct 2019, 15:20 Reply Quote 0
                        • undefined
                          wilriker @gtj0
                          last edited by 9 Oct 2019, 15:14

                          @gtj0 said in crc32appender now needed for RRF?:

                          @wilriker Your commit to add it needs to add the appropriate Tools/crc32appender directories to the PATH in Eclipse or we'll have to manually copy it to a system directory.

                          I just realized that this will be very complicated since the binaries all have the same name but need to be different for the different operating systems.

                          Manuel
                          Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                          with probably always latest firmware/DWC (incl. betas or self-compiled)
                          My Tool Collection

                          undefined 1 Reply Last reply 9 Oct 2019, 15:24 Reply Quote 0
                          • undefined
                            smoki3 @wilriker
                            last edited by 9 Oct 2019, 15:20

                            @wilriker

                            echo $PATH
                            /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/kevin/.android-sdk-macosx/platform-tools/:/Users/kevin/Library/platform-tools/
                            

                            I added it to the /usr/local/bin

                            but it does not work in ecplise.

                            In the terminal it works

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              gtj0 @wilriker
                              last edited by 9 Oct 2019, 15:24

                              @wilriker said in crc32appender now needed for RRF?:

                              @gtj0 said in crc32appender now needed for RRF?:

                              @wilriker Your commit to add it needs to add the appropriate Tools/crc32appender directories to the PATH in Eclipse or we'll have to manually copy it to a system directory.

                              I just realized that this will be very complicated since the binaries all have the same name but need to be different for the different operating systems.

                              You may be able to rename the directories to match some Eclipse or environment variable. I think there's a variable in Eclipse named "platform" or something close then you could add the path as ${workspace_dir}/Tools/crc32appender/${platcorm}

                              Not sure if those are the exact variable names.

                              1 Reply Last reply Reply Quote 0
                              • undefined
                                dc42 administrators
                                last edited by dc42 10 Sept 2019, 15:34 9 Oct 2019, 15:33

                                I just put in the same /bin directory that I put miscellaneous binaries in, which is already on my PATH. This is under Windows 10 x64.

                                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 1
                                • undefined
                                  gtj0
                                  last edited by 9 Oct 2019, 15:35

                                  @smoki3 I also put it in /usr/local/bin and it worked from Eclipse. Did you restart Eclipse? You shouldn't have to but it may help.

                                  You can also try running "make" manually...
                                  From the output directory (Duet2_RTOS, Duet3_V06, etc), run make clean and make and see if that works.

                                  undefined 1 Reply Last reply 9 Oct 2019, 16:51 Reply Quote 0
                                  • undefined
                                    gtj0
                                    last edited by 9 Oct 2019, 16:11

                                    @wilriker These look like they could be good variables to use:

                                    HostOsName
                                    OsType
                                    target.os

                                    1 Reply Last reply Reply Quote 0
                                    • undefined
                                      smoki3 @gtj0
                                      last edited by smoki3 10 Sept 2019, 16:57 9 Oct 2019, 16:51

                                      @gtj0

                                      Its funny, in the terminal it is working with make... In eclipse not

                                      I figured out that eclipse only uses:

                                      /usr/bin:/bin:/usr/sbin:/sbin
                                      

                                      But on the mac we dont have permissions to add files to these folders

                                      Any why to add another path to $PATH?

                                      undefined 1 Reply Last reply 9 Oct 2019, 21:23 Reply Quote 0
                                      • undefined
                                        dc42 administrators @smoki3
                                        last edited by 9 Oct 2019, 21:23

                                        The Windows version of Eclipse lets you set up the search path within Eclipse. Does the Mac version offer the same?

                                        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
                                        • bondusundefined
                                          bondus
                                          last edited by 20 Feb 2020, 23:36

                                          What does this tool do? I still get the .bin I want.

                                          I get an error when building:
                                          arm-none-eabi-objcopy -O binary "C:\eclipse\Firmware\RepRapFirmware\DuetM_RTOS/DuetMaestroFirmware.elf" "C:\eclipse\Firmware\RepRapFirmware\DuetM_RTOS/DuetMaestroFirmware.bin" && crc32appender "C:\eclipse\Firmware\RepRapFirmware\DuetM_RTOS/DuetMaestroFirmware.bin"
                                          c:/program files/gnu arm eclipse/build tools/2.6-201507152002/bin/sh: crc32appender: not found

                                          Building again the error goes away, there is an depency error in the makefiles.

                                          undefined 1 Reply Last reply 21 Feb 2020, 05:14 Reply Quote 0
                                          • First post
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA