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

    Menu files & Memory Usage

    Scheduled Pinned Locked Moved
    General Discussion
    2
    4
    399
    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.
    • sinned6915undefined
      sinned6915
      last edited by

      Does anyone have a sense of how much memory the menu files use up on their system?

      Disclaimer: I am on the bleeding edge with RRF port on LPC1768/69. I know its not mainstream.... but its working, mostly. ReArm + RAMPS.

      I am trying to use both the network and LCD menus. Thing is, as soon as I try to load DWC, the controller resets. Here is dump of config and M122 output. If I disable LCD and menus, then the DWC is passable, slow but passable.

      https://pastebin.com/X0hJQnXS

      I am pretty sure I am nearing to/maxing out the system memory with the LCD menus.

      I have not found much info on the menu internals, so I figured I would ask here.

      What kinds of things in the menus might burn up memory inefficiently?

      I started with mudcrzr's menus. I added / changed a few things.
      https://github.com/nionio6915/LPC1768-RepRapFirmware-Files/tree/master/menu

      Are there any ways to better utilize the system memory with the menus? I might cut some out to get more bare bones. If I can have 1 or 2 pages to just monitor and turn off/on, I would rely on DWC more.

      tia

      dennis

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

        I don't know the LPC port well, but in the Duet Maestro build there is a constant in file src/Display/Menu.h called CommandBufferSize defined as 2500. This is the amount of memory allocated to hold command strings read from menu files. You could try reducing it, if you keep the total length of strings in each menu file small enough. I'll move that definition to Configuration.h in the next build.

        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
        • sinned6915undefined
          sinned6915
          last edited by

          dc42: thanks for the suggestion. i will dive in to look at.

          is there any menu documentation beyond this page?
          https://duet3d.dozuki.com/Wiki/Duet_2_Maestro_12864_display_menu_system

          where else can i RTFM?

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

            @sinned6915 said in Menu files & Memory Usage:

            dc42: thanks for the suggestion. i will dive in to look at.

            is there any menu documentation beyond this page?
            https://duet3d.dozuki.com/Wiki/Duet_2_Maestro_12864_display_menu_system

            where else can i RTFM?

            That's all there is. Let me know if you think something is unclear or missing.

            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