-
-
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] Error compiling with SDSUPPORT enabled (STM32F103RC) #26182
Comments
It was PR #25340 that broke the code, but your Outdated part is
when it should be
Incorrectly configured part is
This option should not be used unless you are using external MAX3421E board. Once these two configuration issues are addressed you need to revert commit 6af6060 to be able to compile code once again. |
Thanx guys for effort, with USB_FLASH_DRIVE_SUPPORT and SDCARD_SORT_ALPHA both disabled, there is another error at same point: marlin\src\HAL\STM32\msc_sd.cpp: In member function 'virtual bool Sd2CardUSBMscHandler::Write(uint8_t*, uint32_t, uint16_t)': |
I am not C programmer, and maybe it is not correct, but this made building process to pass ok for me: marlin\src\HAL\STM32\msc_sd.cpp: line 74: sd2card->writeStart(blkAddr, blkLen); Basically added second argument to writeStart() function and changed "i" variable delaration from uint32 to uint by following log errors. |
I was able to compile successfully
using the provided Configuration files, all i did was disable USB_FLASH_DRIVE_SUPPORT
edit: I used UpdateI did the following:
exception - instead of |
Same problem with MKS Monster 8 and trying to compile mks_monster8_usb_flash_drive_msc. I also changed the faulty |
I found this same error after loading bugfix on sept 14 2023 Reported error at line 76 "for (uint32 i = blkLen; i--;) {" Line 62 had "bool Write(uint8_t *pBuf, uint16_t blkAddr, uint16_t blkLen) {" Looking at code blkLen was sometimes 16 bit other times it was 32 bits Changing line 76 to "for (uint16 i = blkLen; i--;) {" got rid of the error |
This comment was marked as off-topic.
This comment was marked as off-topic.
@gogeekness your error that you listed is completely unrelated to this issue The error is clear #error "FOLDER_SORTING is now SDSORT_FOLDERS." You have an out dated Configuration_adv.h file that contains #define FOLDER_SORTING vs the needed SDSORT_FOLDERS See Example This was changed 3 months ago in #26130 |
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
Firmware failed to compile with SDSUPPORT turned on, otherwise compile successfully.
Using lattest Vcode and PIO.
Bug Timeline
No response
Expected behavior
No response
Actual behavior
No response
Steps to Reproduce
No response
Version of Marlin Firmware
Latest NIGHTLY
Printer model
Own build
Electronics
BTT SKM Mini E3 V2
Add-ons
MKS Mini 12864 v3
Bed Leveling
None
Your Slicer
None
Host Software
None
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
Error log:
Marlin.zip
The text was updated successfully, but these errors were encountered: