Menu files & Memory Usage
-
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.
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/menuAre 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
-
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.
-
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_systemwhere else can i RTFM?
-
@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_systemwhere else can i RTFM?
That's all there is. Let me know if you think something is unclear or missing.