-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lighter ram memory allocation/possible long beep fix #1344
Lighter ram memory allocation/possible long beep fix #1344
Conversation
Sync with original
What exactly has to be tested. I can help but never saw the long beep on my printer. |
It should be more onboard SD friendly, that was the first thing in my mind that lead to this PR. The whole purpose is to generally have more usable RAM for present and future features. |
@kisslorand EDIT: I forgot to mention that the new (un)load menu requires FILAMENT_LOAD_UNLOAD_GCODES enabled in Configuration_adv.h (marlin FW). It should be reported in the config.ini file |
i had tested it with the Buid from 3.12. and war reducing the beep-time to 2ms at tft, than there was no long beep since that, but than i can't hear filament-change beep |
Than that beep for filament runout must be rewritten, because it was in fact the effect of the bug. There is no long beep defined in this FW. |
…sslorand/BIGTREETECH-TFT into Lighter-RAM-memory-allocation
Done. (with minor deviation from proposed actions)
Done. MKS TFT now uses its full 64K RAM. (Actually 64K-16 bytes)
Food for thought for another PR. Additional workIn the process of playing with the RAM it happened that I saved the bootloader of MKSTFT28. I added it to this PR, someone might find it useful. To be doneFor the moment only MKS TFTs have their 64K RAM enabled so I'll have to check what other boards have actually more than 48K RAM. For those boards I will need testers because I have no way to test how much RAM is used by their bootloader so I can substract it from their max RAM. In the case of MKS boards their bootloader (if they have one) uses 16 bytes of RAM |
…sslorand/BIGTREETECH-TFT into Lighter-RAM-memory-allocation
Hi. I have been testing @mehmetsutas PR for some hours, and there is still one issue left. Hopefully I have some time this coming Tuesday to test your PR. Do you believe your PR could help with the lagging issue, every time the speed is changed, for example? This is the worst issue for me, once all those PR's are merged. |
I am not aware of such an issue. Could you please elaborate it? |
So... |
@kisslorand they probably limited the resources just to avoid to abuse of them too quickly |
You really believe so...;-) |
Probably the truth is more simple... cough-lazi-cough-ness-cough |
You mean something like - no time to do it right - or so.... ;-) |
@kisslorand |
@radek8 |
I found another place where there was a continuous beep, but your fix solved it. Thank you. |
The beep was driving me crazy happening at the least expected times, I really hope it will be in the past once this PR is (if) merged. @bigtreetech Hit that button! |
Loading the integrated SD onboard is fine |
It's beeping a lot less now thanks ! <3 |
Requirements
BTT TFT of MKS TFT
Description
This is an attempt to reduce the amount of memory allocated for serial ports DMA's buffer. My guess is that only Marlin would send huge chunks of data (see M503 response), the other peripherals would send way much less/shorter data. I do not know what other people have connected to the TFT and what does what. I only assume those deives would be more shy in filling those buffers. I can only test with SD and USB connected to my TFT.
Also I did some changes that I thought would eliminate the random long beeps. While testing my theory I couldn't make my TFT to beep, Spent 2 hours pressing like crazy on the buttons, doing the most abnormal button/menu combinations while printer was printing, halting, heating, moving, etc. Not a single long beep.
Related Issues
#1300 #1294 #1293
To be done
This has to be tested seriously because it's prone to introduce new, unforeseen issues., so people willing to test are really welcome.