♻️ Refactor STM32 ini files (#22377)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
committed by
Scott Lahteine
parent
6b73b6c966
commit
7773504afa
318
ini/stm32f4.ini
318
ini/stm32f4.ini
@ -12,8 +12,8 @@
|
||||
# F : Foundation (sometimes High Performance F2/F4)
|
||||
# 4 : Cortex M4 core
|
||||
# 01 : Line/Features
|
||||
# R : 64 or 66 pins (V:100, Z:144, I:176)
|
||||
# G : 1024KB Flash-memory (C:256KB, D:384KB, E:512KB)
|
||||
# R : 64 or 66 pins (T:36, C:48 or 49, M:81, V:100, Z:144, I:176)
|
||||
# G : 1024KB Flash-memory (B:128KB, C:256KB, D:384KB, E:512KB)
|
||||
# T : LQFP package
|
||||
# 6 : -40...85°C (7: ...105°C)
|
||||
#
|
||||
@ -27,12 +27,7 @@ platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
board = armed_v1
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing
|
||||
|
||||
[stm32f4_variant]
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
buildroot/share/PlatformIO/scripts/offset_and_rename.py
|
||||
-O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing
|
||||
|
||||
#
|
||||
# STM32F401VE
|
||||
@ -40,49 +35,46 @@ extra_scripts = ${common.extra_scripts}
|
||||
#
|
||||
[env:STM32F401VE_STEVAL]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
extends = stm32_variant
|
||||
board = marlin_STEVAL_STM32F401VE
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DARDUINO_STEVAL -DSTM32F401xE
|
||||
-DDISABLE_GENERIC_SERIALUSB -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
|
||||
extra_scripts = ${stm32f4_variant.extra_scripts}
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DSTM32F401xE -DDISABLE_GENERIC_SERIALUSB
|
||||
-DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
|
||||
|
||||
#
|
||||
# STM32F401RC
|
||||
#
|
||||
[env:FYSETC_CHEETAH_V20]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
board = marlin_FYSETC_CHEETAH_V20
|
||||
build_flags = ${common_stm32.build_flags} -DSTM32F401xC -DVECT_TAB_OFFSET=0xC000
|
||||
extra_scripts = ${stm32f4_variant.extra_scripts}
|
||||
platform = ${common_stm32.platform}
|
||||
extends = stm32_variant
|
||||
board = marlin_FYSETC_CHEETAH_V20
|
||||
board_build.offset = 0xC000
|
||||
build_flags = ${stm32_variant.build_flags} -DSTM32F401xC
|
||||
|
||||
#
|
||||
# FLYF407ZG
|
||||
#
|
||||
[env:FLYF407ZG]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
extends = stm32_variant
|
||||
board = marlin_STM32F407ZGT6
|
||||
board_build.variant = MARLIN_FLY_F407ZG
|
||||
board_build.offset = 0x8000
|
||||
upload_protocol = dfu
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DVECT_TAB_OFFSET=0x8000
|
||||
extra_scripts = ${stm32f4_variant.extra_scripts}
|
||||
|
||||
#
|
||||
# FYSETC S6 (STM32F446RET6 ARM Cortex-M4)
|
||||
#
|
||||
[env:FYSETC_S6]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
platform_packages = tool-stm32duino
|
||||
board = marlin_fysetc_s6
|
||||
build_flags = ${common_stm32.build_flags} -DVECT_TAB_OFFSET=0x10000 -DHAL_PCD_MODULE_ENABLED
|
||||
extra_scripts = ${stm32f4_variant.extra_scripts}
|
||||
debug_tool = stlink
|
||||
upload_protocol = dfu
|
||||
upload_command = dfu-util -a 0 -s 0x08010000:leave -D "$SOURCE"
|
||||
platform = ${common_stm32.platform}
|
||||
extends = stm32_variant
|
||||
board = marlin_fysetc_s6
|
||||
board_build.offset = 0x10000
|
||||
board_upload.offset_address = 0x08010000
|
||||
build_flags = ${stm32_variant.build_flags} -DHAL_PCD_MODULE_ENABLED
|
||||
debug_tool = stlink
|
||||
upload_protocol = dfu
|
||||
upload_command = dfu-util -a 0 -s 0x08010000:leave -D "$SOURCE"
|
||||
|
||||
#
|
||||
# FYSETC S6 new bootloader
|
||||
@ -93,8 +85,6 @@ extends = env:FYSETC_S6
|
||||
board = marlin_fysetc_s6_8000
|
||||
board_build.offset = 0x8000
|
||||
board_upload.offset_address = 0x08008000
|
||||
build_flags = ${common_stm32.build_flags} -DHAL_PCD_MODULE_ENABLED
|
||||
extra_scripts = ${stm32f4_variant.extra_scripts}
|
||||
upload_command = dfu-util -a 0 -s 0x08008000:leave -D "$SOURCE"
|
||||
|
||||
#
|
||||
@ -104,12 +94,10 @@ upload_command = dfu-util -a 0 -s 0x08008000:leave -D "$SOURCE"
|
||||
#
|
||||
[env:STM32F407VE_black]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
extends = stm32_variant
|
||||
board = marlin_blackSTM32F407VET6
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DARDUINO_BLACK_F407VE
|
||||
-DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
|
||||
extra_scripts = ${stm32f4_variant.extra_scripts}
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
|
||||
|
||||
#
|
||||
# Anet ET4-MB_V1.x/ET4P-MB_V1.x (STM32F407VGT6 ARM Cortex-M4)
|
||||
@ -117,120 +105,108 @@ extra_scripts = ${stm32f4_variant.extra_scripts}
|
||||
# Comment out board_build.offset = 0x10000 if you don't plan to use OpenBLT/flashing directly to 0x08000000.
|
||||
#
|
||||
[env:Anet_ET4_OpenBLT]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
build_flags = ${common_stm32.build_flags} -DHAL_SD_MODULE_ENABLED -DHAL_SRAM_MODULE_ENABLED
|
||||
board = marlin_STM32F407VGT6_CCM
|
||||
board_build.core = stm32
|
||||
board_build.variant = MARLIN_F4x7Vx
|
||||
board_build.encrypt = firmware.srec
|
||||
board_build.offset = 0x10000
|
||||
platform = ${common_stm32.platform}
|
||||
extends = stm32_variant
|
||||
board = marlin_STM32F407VGT6_CCM
|
||||
board_build.variant = MARLIN_F4x7Vx
|
||||
board_build.encrypt = firmware.srec
|
||||
board_build.offset = 0x10000
|
||||
board_upload.offset_address = 0x08010000
|
||||
build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
extra_scripts = ${stm32f4_variant.extra_scripts}
|
||||
buildroot/share/PlatformIO/scripts/openblt.py
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DHAL_SD_MODULE_ENABLED -DHAL_SRAM_MODULE_ENABLED
|
||||
build_unflags = ${stm32_variant.build_unflags}
|
||||
-DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
|
||||
extra_scripts = ${stm32_variant.extra_scripts}
|
||||
buildroot/share/PlatformIO/scripts/openblt.py
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
|
||||
#
|
||||
# BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
|
||||
#
|
||||
[env:BIGTREE_SKR_PRO]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
board = marlin_BigTree_SKR_Pro
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
|
||||
extra_scripts = ${stm32f4_variant.extra_scripts}
|
||||
#upload_protocol = stlink
|
||||
#upload_command = "$PROJECT_PACKAGES_DIR/tool-stm32duino/stlink/ST-LINK_CLI.exe" -c SWD -P "$BUILD_DIR/firmware.bin" 0x8008000 -Rst -Run
|
||||
debug_tool = stlink
|
||||
debug_init_break =
|
||||
|
||||
#
|
||||
# USB Flash Drive mix-ins for STM32
|
||||
#
|
||||
[stm_flash_drive]
|
||||
platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc-3.zip
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DHAL_PCD_MODULE_ENABLED -DHAL_HCD_MODULE_ENABLED
|
||||
-DUSBHOST -DUSBH_IRQ_PRIO=3 -DUSBH_IRQ_SUBPRIO=4
|
||||
platform = ${common_stm32.platform}
|
||||
extends = stm32_variant
|
||||
board = marlin_BigTree_SKR_Pro
|
||||
board_build.offset = 0x8000
|
||||
build_flags = ${stm32_variant.build_flags} -DSTM32F407_5ZX
|
||||
debug_tool = stlink
|
||||
upload_protocol = stlink
|
||||
|
||||
#
|
||||
# BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4) with USB Flash Drive Support
|
||||
#
|
||||
[env:BIGTREE_SKR_PRO_usb_flash_drive]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = env:BIGTREE_SKR_PRO
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
build_unflags = -DUSBCON -DUSBD_USE_CDC
|
||||
build_flags = ${stm_flash_drive.build_flags}
|
||||
-DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
|
||||
build_flags = ${stm_flash_drive.build_flags} -DSTM32F407_5ZX
|
||||
build_unflags = ${env:BIGTREE_SKR_PRO.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
||||
|
||||
#
|
||||
# BigTreeTech E3 RRF (STM32F407VGT6 ARM Cortex-M4)
|
||||
#
|
||||
[env:BIGTREE_E3_RRF]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
extends = stm32_variant
|
||||
board = marlin_STM32F407VGT6_CCM
|
||||
board_build.variant = MARLIN_BIGTREE_E3_RRF
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
|
||||
-DSERIAL_RX_BUFFER_SIZE=255 -DSERIAL_TX_BUFFER_SIZE=255
|
||||
extra_scripts = ${stm32f4_variant.extra_scripts}
|
||||
board_build.offset = 0x8000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DSTM32F407_5VX
|
||||
-DSERIAL_RX_BUFFER_SIZE=255
|
||||
-DSERIAL_TX_BUFFER_SIZE=255
|
||||
|
||||
#
|
||||
# Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
|
||||
#
|
||||
[env:BIGTREE_GTR_V1_0]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
board = marlin_BigTree_GTR_v1
|
||||
extra_scripts = ${stm32f4_variant.extra_scripts}
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DSTM32F407IX -DVECT_TAB_OFFSET=0x8000
|
||||
platform = ${common_stm32.platform}
|
||||
extends = stm32_variant
|
||||
board = marlin_BigTree_GTR_v1
|
||||
board_build.offset = 0x8000
|
||||
build_flags = ${stm32_variant.build_flags} -DSTM32F407IX
|
||||
|
||||
#
|
||||
# Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4) with USB Flash Drive Support
|
||||
#
|
||||
[env:BIGTREE_GTR_V1_0_usb_flash_drive]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = env:BIGTREE_GTR_V1_0
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
build_unflags = -DUSBCON -DUSBD_USE_CDC
|
||||
build_flags = ${stm_flash_drive.build_flags}
|
||||
-DSTM32F407IX -DVECT_TAB_OFFSET=0x8000
|
||||
build_flags = ${stm_flash_drive.build_flags} -DSTM32F407IX
|
||||
build_unflags = ${env:BIGTREE_GTR_V1_0.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
||||
|
||||
#
|
||||
# BigTreeTech BTT002 V1.0 (STM32F407VGT6 ARM Cortex-M4)
|
||||
#
|
||||
[env:BIGTREE_BTT002]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
board = marlin_BigTree_BTT002
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
|
||||
-DHAVE_HWSERIAL2
|
||||
-DHAVE_HWSERIAL3
|
||||
-DPIN_SERIAL2_RX=PD_6
|
||||
-DPIN_SERIAL2_TX=PD_5
|
||||
extra_scripts = ${stm32f4_variant.extra_scripts}
|
||||
platform = ${common_stm32.platform}
|
||||
extends = stm32_variant
|
||||
board = marlin_BigTree_BTT002
|
||||
board_build.offset = 0x8000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DSTM32F407_5VX
|
||||
-DHAVE_HWSERIAL2
|
||||
-DHAVE_HWSERIAL3
|
||||
-DPIN_SERIAL2_RX=PD_6
|
||||
-DPIN_SERIAL2_TX=PD_5
|
||||
|
||||
#
|
||||
# BigTreeTech SKR V2.0 (STM32F407VGT6 ARM Cortex-M4) with USB Flash Drive Support
|
||||
#
|
||||
[env:BIGTREE_SKR_2]
|
||||
platform = ${common_stm32.platform}
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
extends = common_stm32
|
||||
board = marlin_STM32F407VGT6_CCM
|
||||
board_build.core = stm32
|
||||
board_build.variant = MARLIN_F4x7Vx
|
||||
board_build.offset = 0x8000
|
||||
platform = ${common_stm32.platform}
|
||||
extends = stm32_variant
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
board = marlin_STM32F407VGT6_CCM
|
||||
board_build.variant = MARLIN_F4x7Vx
|
||||
board_build.offset = 0x8000
|
||||
board_upload.offset_address = 0x08008000
|
||||
extra_scripts = ${stm32f4_variant.extra_scripts}
|
||||
build_flags = ${stm_flash_drive.build_flags}
|
||||
-DUSE_USBHOST_HS -DUSE_USB_HS_IN_FS -DUSBD_IRQ_PRIO=5 -DUSBD_IRQ_SUBPRIO=6
|
||||
-DHSE_VALUE=8000000U -DHAL_SD_MODULE_ENABLED
|
||||
build_flags = ${stm_flash_drive.build_flags}
|
||||
-DUSE_USBHOST_HS -DUSE_USB_HS_IN_FS
|
||||
-DUSBD_IRQ_PRIO=5 -DUSBD_IRQ_SUBPRIO=6
|
||||
-DHSE_VALUE=8000000U -DHAL_SD_MODULE_ENABLED
|
||||
|
||||
#
|
||||
# BigTreeTech SKR V2.0 (STM32F407VGT6 ARM Cortex-M4) with USB Media Share Support
|
||||
@ -238,49 +214,50 @@ build_flags = ${stm_flash_drive.build_flags}
|
||||
[env:BIGTREE_SKR_2_USB]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = env:BIGTREE_SKR_2
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
build_unflags = -DUSBD_USE_CDC
|
||||
build_flags = ${env:BIGTREE_SKR_2.build_flags} -DUSBD_USE_CDC_MSC
|
||||
build_unflags = ${env:BIGTREE_SKR_2.build_unflags} -DUSBD_USE_CDC
|
||||
|
||||
#
|
||||
# BigTreeTech Octopus V1.0/1.1 (STM32F446ZET6 ARM Cortex-M4)
|
||||
#
|
||||
[env:BIGTREE_OCTOPUS_V1]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
board = marlin_BigTree_Octopus_v1
|
||||
extra_scripts = ${stm32f4_variant.extra_scripts}
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DSTM32F446_5VX -DVECT_TAB_OFFSET=0x8000 -DUSE_USB_HS_IN_FS
|
||||
platform = ${common_stm32.platform}
|
||||
extends = stm32_variant
|
||||
board = marlin_BigTree_Octopus_v1
|
||||
board_build.offset = 0x8000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DSTM32F446_5VX -DUSE_USB_HS_IN_FS
|
||||
|
||||
#
|
||||
# BigTreeTech Octopus V1.0/1.1 (STM32F446ZET6 ARM Cortex-M4) with USB Flash Drive Support
|
||||
#
|
||||
[env:BIGTREE_OCTOPUS_V1_USB]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = env:BIGTREE_OCTOPUS_V1
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
#build_unflags = -DUSBCON -DUSBD_USE_CDC
|
||||
build_flags = ${stm_flash_drive.build_flags}
|
||||
-DSTM32F446_5VX -DVECT_TAB_OFFSET=0x8000
|
||||
-DUSBCON -DUSE_USBHOST_HS -DUSBD_IRQ_PRIO=5 -DUSBD_IRQ_SUBPRIO=6 -DUSE_USB_HS_IN_FS -DUSBD_USE_CDC_MSC
|
||||
-DSTM32F446_5VX -DUSE_USB_HS_IN_FS
|
||||
-DUSE_USBHOST_HS -DUSBD_IRQ_PRIO=5
|
||||
-DUSBD_IRQ_SUBPRIO=6
|
||||
-DUSBD_USE_CDC_MSC
|
||||
|
||||
#
|
||||
# Lerdge base
|
||||
#
|
||||
[lerdge_common]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
extends = stm32_variant
|
||||
board = marlin_STM32F407ZGT6
|
||||
board_build.variant = MARLIN_LERDGE
|
||||
board_build.offset = 0x10000
|
||||
board_build.encrypt = firmware.bin
|
||||
extra_scripts = ${stm32f4_variant.extra_scripts}
|
||||
board_build.offset = 0x10000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DSTM32F4 -DSTM32F4xx -DTARGET_STM32F4
|
||||
-DDISABLE_GENERIC_SERIALUSB -DARDUINO_ARCH_STM32 -DARDUINO_LERDGE
|
||||
-DHAL_SRAM_MODULE_ENABLED
|
||||
build_unflags = ${stm32_variant.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
|
||||
extra_scripts = ${stm32_variant.extra_scripts}
|
||||
buildroot/share/PlatformIO/scripts/lerdge.py
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DSTM32F4 -DSTM32F4xx -DTARGET_STM32F4
|
||||
-DDISABLE_GENERIC_SERIALUSB -DARDUINO_ARCH_STM32 -DARDUINO_LERDGE
|
||||
-DHAL_SRAM_MODULE_ENABLED
|
||||
build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
|
||||
|
||||
#
|
||||
# Lerdge X
|
||||
@ -339,38 +316,33 @@ build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
|
||||
#
|
||||
[env:rumba32]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-Os
|
||||
-DHAL_PCD_MODULE_ENABLED
|
||||
-DDISABLE_GENERIC_SERIALUSB
|
||||
-DHAL_UART_MODULE_ENABLED
|
||||
-DTIMER_SERIAL=TIM9
|
||||
extends = stm32_variant
|
||||
board = rumba32_f446ve
|
||||
upload_protocol = dfu
|
||||
monitor_speed = 500000
|
||||
board_build.core = stm32
|
||||
board_build.variant = MARLIN_F446VE
|
||||
board_build.offset = 0x0000
|
||||
extra_scripts = ${stm32f4_variant.extra_scripts}
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-Os -DHAL_PCD_MODULE_ENABLED
|
||||
-DDISABLE_GENERIC_SERIALUSB
|
||||
-DHAL_UART_MODULE_ENABLED
|
||||
-DTIMER_SERIAL=TIM9
|
||||
monitor_speed = 500000
|
||||
upload_protocol = dfu
|
||||
|
||||
#
|
||||
# MKS Robin Pro V2
|
||||
#
|
||||
[env:mks_robin_pro2]
|
||||
platform = ${common_stm32.platform}
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
extends = common_stm32
|
||||
build_flags = ${stm_flash_drive.build_flags}
|
||||
board = genericSTM32F407VET6
|
||||
board_build.core = stm32
|
||||
board_build.variant = MARLIN_F4x7Vx
|
||||
board_build.offset = 0x0000
|
||||
platform = ${common_stm32.platform}
|
||||
extends = stm32_variant
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
board = genericSTM32F407VET6
|
||||
board_build.variant = MARLIN_F4x7Vx
|
||||
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
|
||||
extra_scripts = ${stm32f4_variant.extra_scripts}
|
||||
build_flags = ${stm_flash_drive.build_flags}
|
||||
build_unflags = ${stm32_variant.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
|
||||
#
|
||||
# This SPI is used by Robin Nano V3
|
||||
@ -382,34 +354,31 @@ build_flags = -DPIN_WIRE_SCL=PB6 -DPIN_WIRE_SDA=PB7
|
||||
# MKS Robin Nano V3
|
||||
#
|
||||
[env:mks_robin_nano_v3]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
build_flags = ${common_stm32.build_flags} ${stm32f4_I2C1.build_flags} -DHAL_PCD_MODULE_ENABLED -DUSBCON -DUSBD_USE_CDC
|
||||
board = marlin_STM32F407VGT6_CCM
|
||||
board_build.core = stm32
|
||||
board_build.variant = MARLIN_F4x7Vx
|
||||
board_build.rename = Robin_nano_v3.bin
|
||||
board_build.offset = 0xC000
|
||||
platform = ${common_stm32.platform}
|
||||
extends = stm32_variant
|
||||
board = marlin_STM32F407VGT6_CCM
|
||||
board_build.variant = MARLIN_F4x7Vx
|
||||
board_build.offset = 0xC000
|
||||
board_build.rename = Robin_nano_v3.bin
|
||||
board_upload.offset_address = 0x0800C000
|
||||
build_unflags = ${common_stm32.build_unflags}
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
extra_scripts = ${stm32f4_variant.extra_scripts}
|
||||
build_flags = ${stm32_variant.build_flags} ${stm32f4_I2C1.build_flags}
|
||||
-DHAL_PCD_MODULE_ENABLED
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
|
||||
#
|
||||
# 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]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = env:mks_robin_nano_v3
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
|
||||
-DUSBCON
|
||||
-DUSE_USBHOST_HS
|
||||
-DUSBD_IRQ_PRIO=5
|
||||
-DUSBD_IRQ_SUBPRIO=6
|
||||
-DUSE_USB_HS_IN_FS
|
||||
-DUSBD_USE_CDC
|
||||
-DUSE_USBHOST_HS
|
||||
-DUSBD_IRQ_PRIO=5
|
||||
-DUSBD_IRQ_SUBPRIO=6
|
||||
-DUSE_USB_HS_IN_FS
|
||||
|
||||
#
|
||||
# MKS Robin Nano V3 with USB Flash Drive Support and Shared Media
|
||||
@ -417,13 +386,6 @@ build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
|
||||
#
|
||||
[env:mks_robin_nano_v3_usb_flash_drive_msc]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = env:mks_robin_nano_v3
|
||||
platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc-3.zip
|
||||
build_unflags = ${common_stm32.build_unflags} -DUSBD_USE_CDC
|
||||
build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
|
||||
-DUSBCON
|
||||
-DUSE_USBHOST_HS
|
||||
-DUSBD_IRQ_PRIO=5
|
||||
-DUSBD_IRQ_SUBPRIO=6
|
||||
-DUSE_USB_HS_IN_FS
|
||||
-DUSBD_USE_CDC_MSC
|
||||
extends = env:mks_robin_nano_v3_usb_flash_drive
|
||||
build_flags = ${env:mks_robin_nano_v3_usb_flash_drive}
|
||||
-DUSBD_USE_CDC_MSC
|
||||
|
Reference in New Issue
Block a user