🔨 Newer Platform & Toolchain for STM32G0 (#26585)

This commit is contained in:
Keith Bennett 2023-12-28 15:38:19 -08:00 committed by GitHub
parent cc641d796d
commit 59d26e463a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,13 +31,15 @@ build_flags = -DPIN_WIRE_SCL=PB3 -DPIN_WIRE_SDA=PB4
# #
[env:BTT_EBB42_V1_1_filament_extruder] [env:BTT_EBB42_V1_1_filament_extruder]
extends = stm32_variant extends = stm32_variant
platform = ststm32@~14.1.0 platform = ststm32@17.1.0
platform_packages = framework-arduinoststm32@~4.20600.231001 platform_packages = framework-arduinoststm32@~4.20600.231001
toolchain-gccarmnoneeabi@1.100301.220327 toolchain-gccarmnoneeabi@1.120301.0
board = marlin_BTT_EBB42_V1_1 board = marlin_BTT_EBB42_V1_1
board_build.offset = 0x0000 board_build.offset = 0x0000
board_upload.offset_address = 0x08000000 board_upload.offset_address = 0x08000000
build_flags = ${stm32_variant.build_flags} ${stm32g0_I2C2.build_flags} -flto build_flags = ${stm32_variant.build_flags} ${stm32g0_I2C2.build_flags}
-flto
-Wl,--no-warn-rwx-segment
debug_tool = stlink debug_tool = stlink
upload_protocol = dfu upload_protocol = dfu
upload_command = dfu-util -a 0 -s 0x08000000:leave -D "$SOURCE" upload_command = dfu-util -a 0 -s 0x08000000:leave -D "$SOURCE"
@ -47,9 +49,9 @@ upload_command = dfu-util -a 0 -s 0x08000000:leave -D "$SOURCE"
# #
[env:STM32G0B1RE_btt] [env:STM32G0B1RE_btt]
extends = stm32_variant extends = stm32_variant
platform = ststm32@~14.1.0 platform = ststm32@17.1.0
platform_packages = framework-arduinoststm32@~4.20600.231001 platform_packages = framework-arduinoststm32@~4.20600.231001
toolchain-gccarmnoneeabi@1.100301.220327 toolchain-gccarmnoneeabi@1.120301.0
board = marlin_STM32G0B1RE board = marlin_STM32G0B1RE
board_build.offset = 0x2000 board_build.offset = 0x2000
board_upload.offset_address = 0x08002000 board_upload.offset_address = 0x08002000
@ -58,6 +60,7 @@ build_flags = ${stm32_variant.build_flags}
-DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024 -DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
-DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4 -DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
-DSTEP_TIMER_IRQ_PRIO=0 -DSTEP_TIMER_IRQ_PRIO=0
-Wl,--no-warn-rwx-segment
upload_protocol = stlink upload_protocol = stlink
debug_tool = stlink debug_tool = stlink
@ -104,9 +107,9 @@ upload_protocol = custom
# #
[env:STM32G0B1VE_btt] [env:STM32G0B1VE_btt]
extends = stm32_variant extends = stm32_variant
platform = ststm32@~14.1.0 platform = ststm32@17.1.0
platform_packages = framework-arduinoststm32@~4.20600.231001 platform_packages = framework-arduinoststm32@~4.20600.231001
toolchain-gccarmnoneeabi@1.100301.220327 toolchain-gccarmnoneeabi@1.120301.0
board = marlin_STM32G0B1VE board = marlin_STM32G0B1VE
board_build.offset = 0x2000 board_build.offset = 0x2000
board_upload.offset_address = 0x08002000 board_upload.offset_address = 0x08002000
@ -116,6 +119,7 @@ build_flags = ${stm32_variant.build_flags}
-DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024 -DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
-DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4 -DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
-DSTEP_TIMER_IRQ_PRIO=0 -DSTEP_TIMER_IRQ_PRIO=0
-Wl,--no-warn-rwx-segment
upload_protocol = stlink upload_protocol = stlink
debug_tool = stlink debug_tool = stlink