-
-
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] STM32F103RE (BTT_SKR_E3_DIP) - composite USB fails when SDSUPPORT enabled #18097
Comments
same as #18073. works with RC chips? (DIP with RCT6) E3 and DIP uses the same pins |
What is really strange is I get a useable mapped virtual drive if SDSUPPORT is not enabled. When SDSUPPORT is enabled and the SD card is in the controller's socket and the controller is reset (or powered up) then Windows pops up the error message and says the drive needs to be formatted. |
With LPC you have to unmount the drive in Marlin before it is usable in the host. Are you perhaps encountering the same thing for STM32? |
Turns out the problem only occurs when SD_CHECK_AND_RETRY is enabled. With it disabled the virtual drive is always available and works as expected. The host also has access to the SD card and can mount and unmount it. The mount and unmount operations do not affect the availability of the virtual drive. |
I've created PR #18108 to keep this from happening to others. |
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. |
The replaces issue #18073. I stated the wrong motherboard in that one.
Enabling USB and SDSUPPORT on a BTT_SKR_E3_DIP does not result in a useable virtual drive on the PC.
If SDSUPPORT is not enabled then the virtual drive appears on the PC.
PR #17400 enabled the composite USB option for the STM32F103RE.
SETUP:
BTT_SKR_E3_DIP motherboard (STM32F103RE with 512K FLASH)
Today's Bugfix-2.0.x
PlatformIO in Atom
Configuration.h changes:
Auto Build PIO Upload used to build the firmware.bin file
Copied firmware.bin to SD card
Inserted SD card into motherboard
Attached USB cable to motherboard
RESULT:
Firmware is updated.
A window pops up on the PC saying the disk needs to be formatted.
Host USB link is up while this window is up. Host shows proper SD card contents
Clicked on FORMAT.
PC said it was unable to format the disk.
Clicked OK and then cancelled all PC windows concerning formatting the drive.
Host USB link stays up. Host shows proper SD card contents.
A mapped/virtual drive is not present.
THINGS I'VE TRIED:
Different size SD cards (128MB & 16GB) - format window shows correct disk size.
Formatted SD card on PC with exFAT & NTFS - now get different errors.
I'm not familiar with the Maple environment but it appears to me that the composite USB software wants to use the SD card in SDIO mode (MSC read & write) while the Marlin host interfacing software wants to use the SD card in SPI mode.//github.com/MarlinFirmware/Marlin/issues/new/choose
The text was updated successfully, but these errors were encountered: