⬆️ Assert newer GCC in PIO via atmelavr@~3.4 (#23432)

This commit is contained in:
Jason Smith
2022-01-02 21:27:22 -08:00
committed by Scott Lahteine
parent 2faf4e2a99
commit 4efe4788af
13 changed files with 49 additions and 177 deletions

View File

@ -23,7 +23,6 @@
# ARMED (STM32)
#
[env:ARMED]
platform = ${common_stm32.platform}
extends = common_stm32
board = armed_v1
build_flags = ${common_stm32.build_flags}
@ -34,7 +33,6 @@ build_flags = ${common_stm32.build_flags}
# 'STEVAL-3DP001V1' STM32F401VE board - https://www.st.com/en/evaluation-tools/steval-3dp001v1.html
#
[env:STM32F401VE_STEVAL]
platform = ${common_stm32.platform}
extends = stm32_variant
board = marlin_STEVAL_STM32F401VE
build_flags = ${stm32_variant.build_flags}
@ -45,7 +43,6 @@ build_flags = ${stm32_variant.build_flags}
# STM32F401RC
#
[env:FYSETC_CHEETAH_V20]
platform = ${common_stm32.platform}
extends = stm32_variant
board = marlin_FYSETC_CHEETAH_V20
board_build.offset = 0x8000
@ -55,7 +52,6 @@ build_flags = ${stm32_variant.build_flags} -DSTM32F401xC
# FLYF407ZG
#
[env:FLYF407ZG]
platform = ${common_stm32.platform}
extends = stm32_variant
board = marlin_STM32F407ZGT6
board_build.variant = MARLIN_FLY_F407ZG
@ -66,7 +62,6 @@ upload_protocol = dfu
# FYSETC S6 (STM32F446RET6 ARM Cortex-M4)
#
[env:FYSETC_S6]
platform = ${common_stm32.platform}
extends = stm32_variant
board = marlin_fysetc_s6
board_build.offset = 0x10000
@ -80,7 +75,6 @@ upload_command = dfu-util -a 0 -s 0x08010000:leave -D "$SOURCE"
# FYSETC S6 new bootloader
#
[env:FYSETC_S6_8000]
platform = ${common_stm32.platform}
extends = env:FYSETC_S6
board = marlin_fysetc_s6
board_build.offset = 0x8000
@ -93,7 +87,6 @@ upload_command = dfu-util -a 0 -s 0x08008000:leave -D "$SOURCE"
# Shield - https://github.com/jmz52/Hardware
#
[env:STM32F407VE_black]
platform = ${common_stm32.platform}
extends = stm32_variant
board = marlin_blackSTM32F407VET6
build_flags = ${stm32_variant.build_flags}
@ -103,7 +96,6 @@ build_flags = ${stm32_variant.build_flags}
# STM32F407VET6 Index Mobo Rev 03
#
[env:Index_Mobo_Rev03]
platform = ${common_stm32.platform}
extends = stm32_variant
board = marlin_index_mobo_rev03
build_flags = ${stm32_variant.build_flags}
@ -117,7 +109,6 @@ extra_scripts = ${stm32_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 = stm32_variant
board = marlin_STM32F407VGT6_CCM
board_build.variant = MARLIN_F4x7Vx
@ -137,7 +128,6 @@ upload_protocol = jlink
# BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
#
[env:BIGTREE_SKR_PRO]
platform = ${common_stm32.platform}
extends = stm32_variant
board = marlin_BigTree_SKR_Pro
board_build.offset = 0x8000
@ -149,7 +139,6 @@ 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_flags = ${stm_flash_drive.build_flags} -DSTM32F407_5ZX
@ -159,7 +148,6 @@ 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 = stm32_variant
board = marlin_STM32F407VGT6_CCM
board_build.variant = MARLIN_BIGTREE_E3_RRF
@ -173,7 +161,6 @@ build_flags = ${stm32_variant.build_flags}
# Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
#
[env:BIGTREE_GTR_V1_0]
platform = ${common_stm32.platform}
extends = stm32_variant
board = marlin_BigTree_GTR_v1
board_build.offset = 0x8000
@ -183,7 +170,6 @@ 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_flags = ${stm_flash_drive.build_flags} -DSTM32F407IX
@ -193,7 +179,6 @@ build_unflags = ${env:BIGTREE_GTR_V1_0.build_unflags} -DUSBCON -DUSBD_USE_CD
# BigTreeTech BTT002 V1.0 (STM32F407VGT6 ARM Cortex-M4)
#
[env:BIGTREE_BTT002]
platform = ${common_stm32.platform}
extends = stm32_variant
board = marlin_BigTree_BTT002
board_build.offset = 0x8000
@ -208,7 +193,6 @@ build_flags = ${stm32_variant.build_flags}
# BigTreeTech BTT002 V1.x with 512k of flash (STM32F407VET6 ARM Cortex-M4)
#
[env:BIGTREE_BTT002_VET6]
platform = ${env:BIGTREE_BTT002.platform}
extends = env:BIGTREE_BTT002
board = marlin_BigTree_BTT002_VET6
@ -216,7 +200,6 @@ board = marlin_BigTree_BTT002_VET6
# BigTreeTech SKR V2.0 (STM32F407VGT6 ARM Cortex-M4) with USB Flash Drive Support
#
[env:BIGTREE_SKR_2]
platform = ${common_stm32.platform}
extends = stm32_variant
platform_packages = ${stm_flash_drive.platform_packages}
board = marlin_STM32F407VGT6_CCM
@ -234,13 +217,11 @@ upload_protocol = stlink
# BigTreeTech SKR V2.0 (STM32F407VGT6 ARM Cortex-M4) with USB Media Share Support
#
[env:BIGTREE_SKR_2_USB]
platform = ${common_stm32.platform}
extends = env:BIGTREE_SKR_2
build_flags = ${env:BIGTREE_SKR_2.build_flags} -DUSBD_USE_CDC_MSC
build_unflags = ${env:BIGTREE_SKR_2.build_unflags} -DUSBD_USE_CDC
[env:BIGTREE_SKR_2_USB_debug]
platform = ${common_stm32.platform}
extends = env:BIGTREE_SKR_2_USB
build_flags = ${env:BIGTREE_SKR_2_USB.build_flags} -O0
build_unflags = ${env:BIGTREE_SKR_2_USB.build_unflags} -Os -NDEBUG
@ -249,7 +230,6 @@ build_unflags = ${env:BIGTREE_SKR_2_USB.build_unflags} -Os -NDEBUG
# Bigtreetech SKR V2.0 F429 (STM32F429VGT6 ARM Cortex-M4) with USB Flash Drive Support
#
[env:BIGTREE_SKR_2_F429]
platform = ${common_stm32.platform}
extends = stm32_variant
platform_packages = ${stm_flash_drive.platform_packages}
board = marlin_STM32F429VGT6
@ -267,13 +247,11 @@ upload_protocol = stlink
# BigTreeTech SKR V2.0 F429 (STM32F429VGT6 ARM Cortex-M4) with USB Media Share Support
#
[env:BIGTREE_SKR_2_F429_USB]
platform = ${common_stm32.platform}
extends = env:BIGTREE_SKR_2_F429
build_flags = ${env:BIGTREE_SKR_2_F429.build_flags} -DUSBD_USE_CDC_MSC
build_unflags = ${env:BIGTREE_SKR_2_F429.build_unflags} -DUSBD_USE_CDC
[env:BIGTREE_SKR_2_F429_USB_debug]
platform = ${common_stm32.platform}
extends = env:BIGTREE_SKR_2_F429_USB
build_flags = ${env:BIGTREE_SKR_2_F429_USB.build_flags} -O0
build_unflags = ${env:BIGTREE_SKR_2_F429_USB.build_unflags} -Os -NDEBUG
@ -282,7 +260,6 @@ build_unflags = ${env:BIGTREE_SKR_2_F429_USB.build_unflags} -Os -NDEBUG
# BigTreeTech Octopus V1.0/1.1 / Octopus Pro V1.0 (STM32F446ZET6 ARM Cortex-M4)
#
[env:BIGTREE_OCTOPUS_V1]
platform = ${common_stm32.platform}
extends = stm32_variant
board = marlin_BigTree_Octopus_v1
board_build.offset = 0x8000
@ -293,7 +270,6 @@ build_flags = ${stm32_variant.build_flags}
# BigTreeTech Octopus V1.0/1.1 / Octopus Pro V1.0 (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 = -DUSBD_USE_CDC
@ -307,7 +283,6 @@ build_flags = ${stm_flash_drive.build_flags}
# BigTreeTech Octopus Pro V1.0 (STM32F429ZGT6 ARM Cortex-M4)
#
[env:BIGTREE_OCTOPUS_PRO_V1_F429]
platform = ${common_stm32.platform}
extends = stm32_variant
board = marlin_BigTree_Octopus_Pro_v1_F429
board_build.offset = 0x8000
@ -318,7 +293,6 @@ build_flags = ${stm32_variant.build_flags}
# BigTreeTech Octopus Pro V1.0 (STM32F429ZGT6 ARM Cortex-M4) with USB Flash Drive Support
#
[env:BIGTREE_OCTOPUS_PRO_V1_F429_USB]
platform = ${common_stm32.platform}
extends = env:BIGTREE_OCTOPUS_PRO_V1_F429
platform_packages = ${stm_flash_drive.platform_packages}
build_unflags = -DUSBD_USE_CDC
@ -332,7 +306,6 @@ build_flags = ${stm_flash_drive.build_flags}
# Lerdge base
#
[lerdge_common]
platform = ${common_stm32.platform}
extends = stm32_variant
board = marlin_STM32F407ZGT6
board_build.variant = MARLIN_LERDGE
@ -349,7 +322,6 @@ extra_scripts = ${common_stm32.extra_scripts}
# Lerdge X (STM32F407VE)
#
[env:LERDGEX]
platform = ${lerdge_common.platform}
extends = lerdge_common
board_build.encrypt = Lerdge_X_firmware_force.bin
@ -357,7 +329,6 @@ board_build.encrypt = Lerdge_X_firmware_force.bin
# Lerdge X with USB Flash Drive Support
#
[env:LERDGEX_usb_flash_drive]
platform = ${env:LERDGEX.platform}
extends = env:LERDGEX
platform_packages = ${stm_flash_drive.platform_packages}
build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
@ -366,7 +337,6 @@ build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
# Lerdge S (STM32F407ZG)
#
[env:LERDGES]
platform = ${lerdge_common.platform}
extends = lerdge_common
board_build.encrypt = Lerdge_firmware_force.bin
@ -374,7 +344,6 @@ board_build.encrypt = Lerdge_firmware_force.bin
# Lerdge S with USB Flash Drive Support
#
[env:LERDGES_usb_flash_drive]
platform = ${env:LERDGES.platform}
extends = env:LERDGES
platform_packages = ${stm_flash_drive.platform_packages}
build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
@ -383,7 +352,6 @@ build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
# Lerdge K (STM32F407ZG)
#
[env:LERDGEK]
platform = ${lerdge_common.platform}
extends = lerdge_common
board_build.encrypt = Lerdge_K_firmware_force.bin
build_flags = ${lerdge_common.build_flags} -DLERDGEK
@ -392,7 +360,6 @@ build_flags = ${lerdge_common.build_flags} -DLERDGEK
# Lerdge K with USB Flash Drive Support
#
[env:LERDGEK_usb_flash_drive]
platform = ${env:LERDGEK.platform}
extends = env:LERDGEK
platform_packages = ${stm_flash_drive.platform_packages}
build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
@ -401,7 +368,6 @@ build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
# RUMBA32
#
[env:rumba32]
platform = ${common_stm32.platform}
extends = stm32_variant
board = rumba32_f446ve
board_build.variant = MARLIN_F446VE
@ -418,7 +384,6 @@ upload_protocol = dfu
# MKS Robin Pro V2
#
[env:mks_robin_pro2]
platform = ${common_stm32.platform}
extends = stm32_variant
platform_packages = ${stm_flash_drive.platform_packages}
board = genericSTM32F407VET6
@ -440,7 +405,6 @@ build_flags = -DPIN_WIRE_SCL=PB6 -DPIN_WIRE_SDA=PB7
# MKS Robin Nano V3
#
[env:mks_robin_nano_v3]
platform = ${common_stm32.platform}
extends = stm32_variant
board = marlin_STM32F407VGT6_CCM
board_build.variant = MARLIN_F4x7Vx
@ -457,7 +421,6 @@ upload_protocol = jlink
# 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}
@ -471,7 +434,6 @@ build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
# Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
#
[env:mks_robin_nano_v3_usb_flash_drive_msc]
platform = ${common_stm32.platform}
extends = env:mks_robin_nano_v3_usb_flash_drive
build_flags = ${env:mks_robin_nano_v3_usb_flash_drive.build_flags}
-DUSBD_USE_CDC_MSC
@ -482,7 +444,6 @@ build_unflags = -DUSBD_USE_CDC
# 5 TMC2209 uart mode on board
#
[env:mks_eagle]
platform = ${common_stm32.platform}
extends = stm32_variant
board = marlin_STM32F407VGT6_CCM
board_build.variant = MARLIN_F4x7Vx
@ -500,7 +461,6 @@ upload_protocol = jlink
# Currently, using a STM32duino fork, until USB Host get merged
#
[env:mks_eagle_usb_flash_drive]
platform = ${common_stm32.platform}
extends = env:mks_eagle
platform_packages = ${stm_flash_drive.platform_packages}
build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
@ -514,7 +474,6 @@ build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
# Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
#
[env:mks_eagle_usb_flash_drive_msc]
platform = ${common_stm32.platform}
extends = env:mks_eagle_usb_flash_drive
build_flags = ${env:mks_eagle_usb_flash_drive.build_flags}
-DUSBD_USE_CDC_MSC
@ -530,7 +489,6 @@ build_flags = -DPIN_WIRE_SCL=PB8 -DPIN_WIRE_SDA=PB9
# MKS Monster8
#
[env:mks_monster8]
platform = ${common_stm32.platform}
extends = stm32_variant
board = marlin_STM32F407VGT6_CCM
board_build.variant = MARLIN_F4x7Vx
@ -548,7 +506,6 @@ upload_protocol = jlink
# Currently, using a STM32duino fork, until USB Host get merged
#
[env:mks_monster8_usb_flash_drive]
platform = ${common_stm32.platform}
extends = env:mks_monster8
platform_packages = ${stm_flash_drive.platform_packages}
build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1_CAN.build_flags}
@ -562,7 +519,6 @@ build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1_CAN.build_flag
# Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
#
[env:mks_monster8_usb_flash_drive_msc]
platform = ${common_stm32.platform}
extends = env:mks_monster8_usb_flash_drive
build_flags = ${env:mks_monster8_usb_flash_drive.build_flags}
-DUSBD_USE_CDC_MSC
@ -572,7 +528,6 @@ build_unflags = -DUSBD_USE_CDC
# TH3D EZBoard v2.0 (STM32F405RGT6 ARM Cortex-M4)
#
[env:TH3D_EZBoard_V2]
platform = ${common_stm32.platform}
extends = stm32_variant
board = genericSTM32F405RG
board_build.variant = MARLIN_TH3D_EZBOARD_V2
@ -588,7 +543,6 @@ upload_protocol = stlink
# - MKS Robin Nano-S V1.3 (STM32F407VET6) 4 TMC2225 + 1 Pololu Plug
#
[env:mks_robin_nano_v1_3_f4]
platform = ${common_stm32.platform}
extends = stm32_variant
board = marlin_STM32F407VGT6_CCM
board_build.variant = MARLIN_F4x7Vx
@ -610,7 +564,6 @@ upload_protocol = jlink
# Artillery Ruby
#
[env:Artillery_Ruby]
platform = ${common_stm32.platform}
extends = common_stm32
board = marlin_Artillery_Ruby
build_flags = ${common_stm32.build_flags}