USB FD via native USB Host + MSC (#20571)
This commit is contained in:
@@ -59,7 +59,7 @@ default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
|
||||
-<src/lcd/extui/anycubic_i3mega_lcd.cpp> -<src/lcd/extui/lib/anycubic_i3mega>
|
||||
-<src/lcd/lcdprint.cpp>
|
||||
-<src/lcd/touch/touch_buttons.cpp>
|
||||
-<src/sd/usb_flashdrive>
|
||||
-<src/sd/usb_flashdrive/lib-uhs2> -<src/sd/usb_flashdrive/lib-uhs3>
|
||||
-<src/HAL/shared/backtrace>
|
||||
-<src/feature/babystep.cpp>
|
||||
-<src/feature/backlash.cpp>
|
||||
@@ -272,7 +272,8 @@ HAS_DGUS_LCD = src_filter=+<src/lcd/extui/lib/dgus> +<src/lcd/extui/d
|
||||
TOUCH_UI_FTDI_EVE = src_filter=+<src/lcd/extui/lib/ftdi_eve_touch_ui>
|
||||
EXTUI_EXAMPLE = src_filter=+<src/lcd/extui/example.cpp>
|
||||
MALYAN_LCD = src_filter=+<src/lcd/extui/malyan_lcd.cpp>
|
||||
USB_FLASH_DRIVE_SUPPORT = src_filter=+<src/sd/usb_flashdrive>
|
||||
USE_UHS2_USB = src_filter=+<src/sd/usb_flashdrive/lib-uhs2>
|
||||
USE_UHS3_USB = src_filter=+<src/sd/usb_flashdrive/lib-uhs3>
|
||||
AUTO_BED_LEVELING_BILINEAR = src_filter=+<src/feature/bedlevel/abl>
|
||||
AUTO_BED_LEVELING_(3POINT|(BI)?LINEAR) = src_filter=+<src/gcode/bedlevel/abl>
|
||||
MESH_BED_LEVELING = src_filter=+<src/feature/bedlevel/mbl> +<src/gcode/bedlevel/mbl>
|
||||
@@ -1278,6 +1279,23 @@ extra_scripts = ${common.extra_scripts}
|
||||
debug_tool = stlink
|
||||
debug_init_break =
|
||||
|
||||
#
|
||||
# USB Flash Drive mix-ins for STM32
|
||||
#
|
||||
[stm32_flash_drive]
|
||||
platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc.zip
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DHAL_PCD_MODULE_ENABLED -DHAL_HCD_MODULE_ENABLED
|
||||
-DUSBHOST -DUSBH_IRQ_PRIO=3 -DUSBH_IRQ_SUBPRIO=4
|
||||
|
||||
#
|
||||
# BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4) with USB Flash Drive Support
|
||||
#
|
||||
[env:BIGTREE_SKR_PRO_usb_flash_drive]
|
||||
extends = env:BIGTREE_SKR_PRO
|
||||
platform_packages = ${stm32_flash_drive.platform_packages}
|
||||
build_flags = ${stm32_flash_drive.build_flags}
|
||||
|
||||
#
|
||||
# Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
|
||||
#
|
||||
@@ -1290,6 +1308,14 @@ extra_scripts = ${common.extra_scripts}
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DSTM32F407IX -DVECT_TAB_OFFSET=0x8000
|
||||
|
||||
#
|
||||
# Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4) with USB Flash Drive Support
|
||||
#
|
||||
[env:BIGTREE_GTR_V1_0_usb_flash_drive]
|
||||
extends = env:BIGTREE_GTR_V1_0
|
||||
platform_packages = ${stm32_flash_drive.platform_packages}
|
||||
build_flags = ${stm32_flash_drive.build_flags}
|
||||
|
||||
#
|
||||
# BigTreeTech BTT002 V1.0 (STM32F407VGT6 ARM Cortex-M4)
|
||||
#
|
||||
@@ -1392,13 +1418,16 @@ extra_scripts = ${common.extra_scripts}
|
||||
#
|
||||
[env:mks_robin_pro2]
|
||||
platform = ${common_stm32.platform}
|
||||
platform_packages = ${stm32_flash_drive.platform_packages}
|
||||
extends = common_stm32
|
||||
build_flags = ${common_stm32.build_flags} -DHAL_HCD_MODULE_ENABLED -DUSBHOST
|
||||
build_flags = ${stm32_flash_drive.build_flags}
|
||||
board = genericSTM32F407VET6
|
||||
board_build.core = stm32
|
||||
board_build.variant = MARLIN_F4x7Vx
|
||||
board_build.ldscript = ldscript.ld
|
||||
board_build.firmware = firmware.bin
|
||||
board_build.offset = 0x0000
|
||||
board_upload.offset_address = 0x08000000
|
||||
build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
@@ -1427,6 +1456,21 @@ extra_scripts = ${common.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
buildroot/share/PlatformIO/scripts/stm32_bootloader.py
|
||||
|
||||
#
|
||||
# MKS Robin Nano V3 with USB Flash Drive Support
|
||||
# Currently, using a STM32duino fork, until USB Host get merged
|
||||
#
|
||||
[env:mks_robin_nano_v3_usb_flash_drive]
|
||||
extends = env:mks_robin_nano_v3
|
||||
platform_packages = ${stm32_flash_drive.platform_packages}
|
||||
build_flags = ${stm32_flash_drive.build_flags}
|
||||
-DUSBCON
|
||||
-DUSE_USBHOST_HS
|
||||
-DUSBD_IRQ_PRIO=5
|
||||
-DUSBD_IRQ_SUBPRIO=6
|
||||
-DUSE_USB_HS_IN_FS
|
||||
-DUSBD_USE_CDC
|
||||
|
||||
#################################
|
||||
# #
|
||||
# Other Architectures #
|
||||
|
||||
Reference in New Issue
Block a user