STM32F4 USB OTG Host msc#20299
STM32F4 USB OTG Host msc#20299bigtreetech wants to merge 10 commits intoMarlinFirmware:bugfix-2.0.xfrom
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.
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_PORTorSERIAL_PORT_2to-1when enabledUSB_HOST_MSC_FLASH_SUPPORT. and you need comment out-DUSBCON -DUSBD_USE_CDCin 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_Librarycan be deleted in Marlin, See USB Host + MSC stm32duino/Arduino_Core_STM32#1196Benefits
Configurations
uncomment
Related Issues