-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
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] NO_SD_HOST_DRIVE on non _USB environments #20157
Comments
I asked @qwewer0 to file this. This is a usability issue that is confusing, even for people like me. You shouldn't have to disable SD_HOST_DRIVE if it would not have been enabled in the first place! |
I'm labeling this as STM32, but it might impact other platforms as well. Basically, when HOST_DRIVE support is active, the SD_DETECT pins are disabled, so you don't get any automatic behavior on card insertion. |
You don't have to use the PR referenced for testing either. Just bring up a serial console and watch for messages when inserting media. |
As I understand it, the |
Should we be looking for the presence of |
I'm not sure, I have previously found this inconvenient, but never spent the time to fully understand the conditions involved. After describing the behavior to someone yet again I asked qwewer0 to file the issue as a reminder to come back and improve upon it. Perhaps we need each HAL to declare something like |
Yes, but it will only fix STM32F1.
Yes.
But Maybe we should just put a compatibility layer between those two hal, like: #if USBD_USE_CDC
#define USE_USB_COMPOSITE
#endif Or make what @sjasonsmith said: add a neutral marlin macro name, that we use across marlin code and the hal define it based in its own macros. |
Anyone can test it here? #20176 Thanks |
The fix was merged. Closing this. |
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. |
Bug Description
#20151 PR needs
NO_SD_HOST_DRIVE
on a non_USB
environments, that already cannot provide it.(e.g.
STM32F103RC_btt_512K
,STM32F103RC_btt
)Configuration Files
Latest Bugfix-2.0.x
Configuration.zip
Steps to Reproduce
STM32F103RC_btt_512K
/STM32F103RC_btt
with Go to File Browser on Media Insert (option) #20151 PRExpected behavior:
#20151 should work just as it does with
NO_SD_HOST_DRIVE
enabled.Actual behavior:
Without
NO_SD_HOST_DRIVE
#20151 doesn't work onSTM32F103RC_btt_512K
/STM32F103RC_btt
environments.Additional Information
#20151 (comment)
The text was updated successfully, but these errors were encountered: