-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
[BUG] SD Card issues (reboot) #24422
Comments
Configuration.h and Configuration_adv.h. |
What is the solution? |
I see a lot of problems related to the current SD card implementation (at least with Ender 3/V2/Pro) from different opened issues:
I was a little behind, in "old" bugfix-2.0.x branch (at 2022-02-22) and everything was working fine when I implemented the long filename on FAT and firmware upload via USB. Now, updating to the latest "new" bugfix-2.0.x I experienced problems such as:
I have seen code moved (watchdog, ...), forced baudrate switch (250000 vs 115200 in ProUI, is this really needed?) and some motors/HW calls into the SDCard functions (isn't a good practice) that could interfere, expecially if these functions share an I2C bus or an interrupt, but I don't know how it works at low level. I apologize if i'm the only one with all those problems (because i'm also using Neopixel leds) but IMHO the current SDCard implementation is unuseful in this state, too unstable and inconsistent to read gcode files from. A rollback should be made to track down the problems and restore a stable implementation. Meanwhile I reverted to the 2022-02-22 bugfix-2.0.x "old" branch and everything is working as it was, so this excludes the physical SDCard from the problem. |
Here author of this issue, it seems to be very similar to this closed one and so be related to this current issue. Investigation with @benlye suggested that that we cannot write to the SD card (create new files or delete old ones).
Moreover, as @GHGiampy suggested "a before and after" branch, we found that the tested plugin (firmware updater) did not work with Marlin 2.0.9.4 or above versions (bugfix_2.1.x included) So, the management of the SD card might be not robust anymore since Should we make a new issue or here is ok ? Hardware : creality V4.2.2 board |
To confirm, Marlin BFT was working ok with Bugfix 2.0 and started to fail with Bugfix 2.1, I will try to research and revert the SDIO commit to see if that fixes the bug. |
And to be clear, Binary File Transfer fails because the protocol can't create the new file on the SD card. At the same time the |
I need to clean up my branches before doing an acceptable PR, meanwhile here is a smart patch as a starting point... |
I went ahead and put up a PR that can be tested with and patched up - link above. If it comes down to needing to have a whole different SDIO for STM32H743 versus others, just to keep things working as before, that's what we'll do. |
Please test/report findings in #24470 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
I installed the system 2.1 on the mks robin nano 1.2v board and made the necessary changes. The system worked perfectly, but when I inserted the sd card, it rebooted, then I increased and decreased the buadrate, but the benefit and then I did the option SDCARD_CONNECTION onboard and still the same problem.
Then I downloaded bugfix 2.1.x and the result was somewhat better when I insert and remove the sd card several times the files appear but the printing appears distorted and there is an offset when it rises a few layers
Bug Timeline
New bug
Expected behavior
Rebot
Actual behavior
No response
Steps to Reproduce
No response
Version of Marlin Firmware
2.1.x
Printer model
Creasee cs 30
Electronics
Mks robin nano v1.2
Add-ons
Inductive sensor
Bed Leveling
ABL Bilinear mesh
Your Slicer
Cura
Host Software
Cura
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
The text was updated successfully, but these errors were encountered: