-
-
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
STM32F4 USB OTG Host msc #20299
STM32F4 USB OTG Host msc #20299
Conversation
2e44400
to
03fbe2d
Compare
* USB Flash mounted in MCU USB OTG Host port | ||
* you need uncomment both SDSUPPORT and following option at the same time or it won't work. | ||
*/ | ||
//#define USB_HOST_MSC_FLASH_SUPPORT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than leave it up to the user to set this, it would be better to enable it automatically when it is required.
I requested a review from @rhapsodyv because I knew he was working on a different (cleaner) implementation that doesn't pull in code from the stm32duino/Arduino_Core_STM32 framework. I tested some of his early code on an SKR Pro and GTR and thumbdrive support seemed to work fine, but there is still more work to be done within Marlin & in the referenced Arduino_Core_STM32 PR. |
b95fd5e
to
c698ba0
Compare
Hi @bigtreetech, As I already have this work done and I'm the autor of the stm32duino PR, I would like to ask some questions. The idea is to sum your work with mine, so we can get the best of both implementations.
Thanks! |
@rhapsodyv Hello And for 1,2,3. I can clean it up and pull it again. And one more thing when your PR is merged. Do we need to specify a new platform version number to take it effect? If your PR doesn't take too long to merge, this PR can remain open so that someone needs to use it. |
I just received the board to complete the PR to stm32duino. Next week I guess everything will be merged. |
#20571 was merged. GTR and SKR PRO support were added too. |
Requirements
SERIAL_PORT
orSERIAL_PORT_2
to-1
when enabledUSB_HOST_MSC_FLASH_SUPPORT
. and you need comment out-DUSBCON -DUSBD_USE_CDC
in platformio.iniMarlin/platformio.ini
Line 728 in 0acd751
Since this is enabled, the dependency library of STM32 will occupy
void OTG_FS_IRQHandler (void)
function, resulting in conflict, compilation failed.Description
Marlin\src\HAL\STM32\usb_hostlib\STM32_USB_Host_Library
can be deleted in Marlin, See USB Host + MSC stm32duino/Arduino_Core_STM32#1196Benefits
Configurations
uncomment
Related Issues