Update HAL/STM32 platform to 8.0 (#18496)
This commit is contained in:
parent
828a582f4d
commit
4fc1aba848
23 changed files with 180 additions and 633 deletions
|
|
@ -661,13 +661,10 @@ board = nxp_lpc1769
|
|||
# HAL/STM32 Base Environment values
|
||||
#
|
||||
[common_stm32]
|
||||
platform = ststm32@~6.1.0
|
||||
platform_packages = framework-arduinoststm32@>=4.10700,<4.10800
|
||||
lib_ignore = SoftwareSerial
|
||||
platform = ststm32@~8.0
|
||||
build_flags = ${common.build_flags}
|
||||
-IMarlin/src/HAL/STM32 -std=gnu++14
|
||||
-std=gnu++14
|
||||
-DUSBCON -DUSBD_USE_CDC
|
||||
-DUSBD_VID=0x0483
|
||||
-DTIM_IRQ_PRIO=13
|
||||
build_unflags = -std=gnu++11
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/STM32>
|
||||
|
|
@ -676,7 +673,7 @@ src_filter = ${common.default_src_filter} +<src/HAL/STM32>
|
|||
# HAL/STM32F1 Common Environment values
|
||||
#
|
||||
[common_stm32f1]
|
||||
platform = ${common_stm32.platform}
|
||||
platform = ststm32@~6.1
|
||||
build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py
|
||||
${common.build_flags} -std=gnu++14 -DHAVE_SW_SERIAL
|
||||
build_unflags = -std=gnu11 -std=gnu++11
|
||||
|
|
@ -828,7 +825,6 @@ platform = ${common_stm32.platform}
|
|||
extends = common_stm32
|
||||
board = armed_v1
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
'-DUSB_PRODUCT="ARMED_V1"'
|
||||
-O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing
|
||||
|
||||
#
|
||||
|
|
@ -1008,20 +1004,29 @@ lib_ignore = ${common_stm32f1.lib_ignore}
|
|||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
board = malyanM200v2
|
||||
build_flags = ${common_stm32.build_flags} -DSTM32F0xx -DUSB_PRODUCT=\"STM32F070RB\" -DHAL_PCD_MODULE_ENABLED
|
||||
-O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing -std=gnu11 -std=gnu++11
|
||||
build_flags = ${common_stm32.build_flags} -DHAL_PCD_MODULE_ENABLED
|
||||
-O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing
|
||||
-DCUSTOM_STARTUP_FILE
|
||||
lib_ignore = SoftwareSerial
|
||||
|
||||
#
|
||||
# Malyan M200 v2 (STM32F070CB)
|
||||
#
|
||||
[env:STM32F070CB_malyan]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
board = malyanm200_f070cb
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED -DCUSTOM_STARTUP_FILE
|
||||
|
||||
#
|
||||
# Malyan M300 (STM32F070CB)
|
||||
#
|
||||
[env:malyan_M300]
|
||||
platform = ststm32@>=6.1.0,<6.2.0
|
||||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
board = malyanm300_f070cb
|
||||
build_flags = ${common.build_flags}
|
||||
-DUSBCON -DUSBD_VID=0x0483 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"MALYAN_M300\""
|
||||
-DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/STM32>
|
||||
|
||||
#
|
||||
|
|
@ -1074,13 +1079,11 @@ platform = ${common_stm32.platform}
|
|||
extends = common_stm32
|
||||
board = STEVAL_STM32F401VE
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DTARGET_STM32F4 -DARDUINO_STEVAL -DSTM32F401xE
|
||||
-DUSB_PRODUCT=\"STEVAL_F401VE\"
|
||||
-DARDUINO_STEVAL -DSTM32F401xE
|
||||
-DDISABLE_GENERIC_SERIALUSB -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
buildroot/share/PlatformIO/scripts/STEVAL__F401XX.py
|
||||
lib_ignore = SoftwareSerial
|
||||
|
||||
#
|
||||
# FLYF407ZG
|
||||
|
|
@ -1090,8 +1093,7 @@ platform = ${common_stm32.platform}
|
|||
extends = common_stm32
|
||||
board = FLYF407ZG
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DSTM32F4 -DUSB_PRODUCT=\"STM32F407ZG\"
|
||||
-DTARGET_STM32F4 -DVECT_TAB_OFFSET=0x8000
|
||||
-DVECT_TAB_OFFSET=0x8000
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
|
||||
|
|
@ -1101,14 +1103,13 @@ extra_scripts = ${common.extra_scripts}
|
|||
[env:FYSETC_S6]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
platform_packages = ${common_stm32.platform_packages}
|
||||
tool-stm32duino
|
||||
board = fysetc_s6
|
||||
platform_packages = tool-stm32duino
|
||||
board = marlin_fysetc_s6
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DTARGET_STM32F4 -DVECT_TAB_OFFSET=0x10000
|
||||
-DHAL_PCD_MODULE_ENABLED '-DUSB_PRODUCT="FYSETC_S6"'
|
||||
-DVECT_TAB_OFFSET=0x10000
|
||||
-DHAL_PCD_MODULE_ENABLED
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/fysetc_STM32S6.py
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
debug_tool = stlink
|
||||
upload_protocol = dfu
|
||||
upload_command = dfu-util -a 0 -s 0x08010000:leave -D "$SOURCE"
|
||||
|
|
@ -1123,12 +1124,10 @@ platform = ${common_stm32.platform}
|
|||
extends = common_stm32
|
||||
board = blackSTM32F407VET6
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DTARGET_STM32F4 -DARDUINO_BLACK_F407VE
|
||||
-DUSB_PRODUCT=\"BLACK_F407VE\"
|
||||
-DARDUINO_BLACK_F407VE
|
||||
-DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
lib_ignore = SoftwareSerial
|
||||
|
||||
#
|
||||
# BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
|
||||
|
|
@ -1138,8 +1137,7 @@ platform = ${common_stm32.platform}
|
|||
extends = common_stm32
|
||||
board = BigTree_SKR_Pro
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DUSB_PRODUCT=\"STM32F407ZG\"
|
||||
-DTARGET_STM32F4 -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
|
||||
-DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
#upload_protocol = stlink
|
||||
|
|
@ -1151,14 +1149,13 @@ debug_init_break =
|
|||
# Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
|
||||
#
|
||||
[env:BIGTREE_GTR_V1_0]
|
||||
platform = ststm32@>=5.7.0,<6.2.0
|
||||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
board = BigTree_GTR_v1
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DUSB_PRODUCT=\"STM32F407IG\"
|
||||
-DTARGET_STM32F4 -DSTM32F407IX -DVECT_TAB_OFFSET=0x8000
|
||||
-DSTM32F407IX -DVECT_TAB_OFFSET=0x8000
|
||||
|
||||
#
|
||||
# BigTreeTech BTT002 V1.0 (STM32F407VGT6 ARM Cortex-M4)
|
||||
|
|
@ -1168,8 +1165,7 @@ platform = ${common_stm32.platform}
|
|||
extends = common_stm32
|
||||
board = BigTree_Btt002
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DUSB_PRODUCT=\"STM32F407VG\"
|
||||
-DTARGET_STM32F4 -DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
|
||||
-DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
|
||||
-DHAVE_HWSERIAL2
|
||||
-DHAVE_HWSERIAL3
|
||||
-DPIN_SERIAL2_RX=PD_6
|
||||
|
|
@ -1226,10 +1222,10 @@ platform = ${common_stm32.platform}
|
|||
extends = common_stm32
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-Os
|
||||
"-DUSB_PRODUCT=\"RUMBA32\""
|
||||
-DHAL_PCD_MODULE_ENABLED
|
||||
-DDISABLE_GENERIC_SERIALUSB
|
||||
-DHAL_UART_MODULE_ENABLED
|
||||
-DTIMER_SERIAL=TIM9
|
||||
board = rumba32_f446ve
|
||||
upload_protocol = dfu
|
||||
monitor_speed = 500000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue