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

    New experimental firmware 1.19beta9

    Scheduled Pinned Locked Moved
    Firmware installation
    12
    56
    6.8k
    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.
    • Eddiieundefined
      Eddiie
      last edited by

      I am using M997 to move between firmware versions. (bottom of this page: https://duet3d.com/wiki/DuetWiFiFirmware_1.19beta ). I notice after the upgrade that the DuetWiFiFirmware.bin file has been deleted but the DuetWiFiServer.bin file remains.

      Thank you for your time looking in to this.

      === Diagnostics ===
      Used output buffers: 1 of 32 (10 max)
      === Platform ===
      RepRapFirmware for Duet WiFi version 1.19beta9 running on Duet WiFi 1.0 + DueX2
      Board ID: *****-*****-*****-*****-*****-*****  (removed)
      Static ram used: 20904
      Dynamic ram used: 99352
      Recycled dynamic ram: 2624
      Stack ram used: 4000 current, 5212 maximum
      Never used ram: 2980
      Last reset 00:01:44 ago, cause: software
      Last software reset reason: Hard fault, spinning module GCodes, available RAM 0 bytes (slot 1)
      Software reset code 0x0033, HFSR 0x40000000, CFSR 0x00008200, ICSR 0x00400803, BFAR 0x29955924, SP 0x2001d3f4
      Stack: 00440bb9 0044077a 81000000 200037f4 00000000 000003f9 00000007 e0000000 3fe12609 2001d578 3fe12609 00000000 ffffffe9 5555554c 00155555 97bcbd77 ffe5fe63 ee000000
      Error status: 0
      Free file entries: 10
      
      ```snip…
      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        Thanks again. From that I can see that is it crashing in a part of the C library that converts floating point numbers to/from character strings using heap-allocated RAM. The never-used RAM in your M122 report is 4.5Kb less than mine is straight after a restart, and given how much extra stack is needed during auto calibration. it's clear that you have been running out of memory during the auto calibration calculation.

        I'll increase the free memory headroom in the next beta. Are you using multiple tool definitions? That might explain why you have less free memory available than I 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

        1 Reply Last reply Reply Quote 0
        • Eddiieundefined
          Eddiie
          last edited by

          Ah that is it! I have 12 tools defined also a bunch of macros. Diamond hotend.
          Most examples show 16 tools. I actually thought of having 32 tools or so. One set for cmy and another for rgb.
          Maybe even more for other colors.
          Virtual tools are awesome!

          I can remove some until the next release. I only use about 8 at one time mostly. Thank you again.

          Removed 2 tools, results were shown at then end of calibration, however AJAX error soon followed.
          Removed 3 tools and everything seems to be working now.
          Curious, how much RAM do you have to play with?
          Note, the number of tools has not changed in my configuration for quite some time. Still, something in beta 8 changed to use more RAM.

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

            Yes, beta 8 and 9 use more RAM than earlier versions, and I hadn't noticed how low the headroom had become. I'm reducing the maximum number of random probe points from 64 to 32 in beta 10, which will reduce the static memory requirement by 384 bytes and the auto calibration memory requirement by 3.6Kb (the calibration routine allocates matrices for the maximum allowed number of points). Now that we have mesh bed levelling too, using a large number of auto calibration points seems rather pointless to me.

            On my delta running beta9 with just 1 tool configured, never used RAM is reported as 7284 if I send M122 immediately after startup, and 780 after running auto calibration.

            I suggest you check that you still have some "never used RAM" left after you run auto calibration with whatever number of tools you want to define. Defining macros doesn't use additional RAM, but running nested macros or running multiple macros concurrently uses a little.

            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
            • larsundefined
              lars
              last edited by

              Is there a change to how speed is set after tool change? In beta 9 I get a very slow (first?) move after tool change compared to beta6 (or was it beta 5)…
              The gcode looks ok, setting a decent speed for first layer.Feels like the F6000 is ignored in [c]G0 F6000 X224.353 Y241.088 Z0.3[/c]

              G1 X224.04 Y242.012 E10.5916
              G1 X224.159 Y241.537 E10.60082
              G1 X224.353 Y241.088 E10.61002
              G1 F1200 E-5.38998
              G92 E0
              G91
              G1 Z1 F1800 ; move bed down
              G90
              T1
              G92 E0
              
              M203 Z5
              M109 S210
              M104 T0 S180
              G0 F6000 X224.353 Y241.088 Z0.3
              G1 F1800 E-2
              G0 F6000 X224.353 Y251.088
              G0 X219.409 Y243.144
              ;TYPE:SKIRT
              G1 F1800 E0
              G1 F3000 X219.416 Y242.676 E0.00946
              
              ```I only have tfreeX.g tool change scrips.
              tfree0.g:
              

              G90
              G1 X-33 F18000

              G90
              G1 X525 F18000

              1 Reply Last reply Reply Quote 0
              • deckingmanundefined
                deckingman
                last edited by

                @Eddiie:

                Ah that is it! I have 12 tools defined also a bunch of macros. Diamond hotend.
                Most examples show 16 tools. I actually thought of having 32 tools or so. One set for cmy and another for rgb.
                Maybe even more for other colors.
                Virtual tools are awesome!

                I can remove some until the next release. I only use about 8 at one time mostly. Thank you again.
                …....................................................

                Eddie. Another way to manage tools with a Diamond is to keep a simple set of tools defined in config.g then define more tools or change mixing ratios in your slicer start gcode. It has the advantage that whenever you print the object, the right mixing ratios will be set (you just need to load the correct filament into each extruder).

                Ian
                https://somei3deas.wordpress.com/
                https://www.youtube.com/@deckingman

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

                  @lars:

                  Is there a change to how speed is set after tool change? In beta 9 I get a very slow (first?) move after tool change compared to beta6 (or was it beta 5)…

                  That may be a side-effect of the bug reported and fixed by lars. The fix will be included in beta 10.

                  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
                  • tomasfundefined
                    tomasf
                    last edited by

                    Yay, beta 9 actually successfully connects to my regular WiFi network, unlike earlier (beta 7) versions of 1.19. The connection seems stable and fast so far. Good job!

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

                      Thanks for your feedback!

                      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
                      • Eddiieundefined
                        Eddiie
                        last edited by

                        Yeah, beta9 fixed wifi issues for me too. Sorry for not saying that.

                        Bring on Beta 10!!

                        1 Reply Last reply Reply Quote 0
                        • larsundefined
                          lars
                          last edited by

                          @dc42:

                          @lars:

                          Is there a change to how speed is set after tool change? In beta 9 I get a very slow (first?) move after tool change compared to beta6 (or was it beta 5)…

                          That may be a side-effect of the bug reported and fixed by lars. The fix will be included in beta 10.

                          Hmm… could you hint at what could be done to fix the speed problem? It's very frustrating trying to print atm so if I could fix the speed problem in my branch it would be a huge help...

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

                            Hi lars, is the speed problem still present in beta10? Please respond in the thread on beta10 if is is.

                            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
                            • First post
                              Last post
                            Unless otherwise noted, all forum content is licensed under CC-BY-SA