Skip to content

Commit 59d26e4

Browse files
authored
🔨 Newer Platform & Toolchain for STM32G0 (MarlinFirmware#26585)
1 parent cc641d7 commit 59d26e4

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

ini/stm32g0.ini

+11-7
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ build_flags = -DPIN_WIRE_SCL=PB3 -DPIN_WIRE_SDA=PB4
3131
#
3232
[env:BTT_EBB42_V1_1_filament_extruder]
3333
extends = stm32_variant
34-
platform = ststm32@~14.1.0
34+
platform = ststm32@17.1.0
3535
platform_packages = framework-arduinoststm32@~4.20600.231001
36-
toolchain-gccarmnoneeabi@1.100301.220327
36+
toolchain-gccarmnoneeabi@1.120301.0
3737
board = marlin_BTT_EBB42_V1_1
3838
board_build.offset = 0x0000
3939
board_upload.offset_address = 0x08000000
40-
build_flags = ${stm32_variant.build_flags} ${stm32g0_I2C2.build_flags} -flto
40+
build_flags = ${stm32_variant.build_flags} ${stm32g0_I2C2.build_flags}
41+
-flto
42+
-Wl,--no-warn-rwx-segment
4143
debug_tool = stlink
4244
upload_protocol = dfu
4345
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"
4749
#
4850
[env:STM32G0B1RE_btt]
4951
extends = stm32_variant
50-
platform = ststm32@~14.1.0
52+
platform = ststm32@17.1.0
5153
platform_packages = framework-arduinoststm32@~4.20600.231001
52-
toolchain-gccarmnoneeabi@1.100301.220327
54+
toolchain-gccarmnoneeabi@1.120301.0
5355
board = marlin_STM32G0B1RE
5456
board_build.offset = 0x2000
5557
board_upload.offset_address = 0x08002000
@@ -58,6 +60,7 @@ build_flags = ${stm32_variant.build_flags}
5860
-DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
5961
-DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
6062
-DSTEP_TIMER_IRQ_PRIO=0
63+
-Wl,--no-warn-rwx-segment
6164
upload_protocol = stlink
6265
debug_tool = stlink
6366

@@ -104,9 +107,9 @@ upload_protocol = custom
104107
#
105108
[env:STM32G0B1VE_btt]
106109
extends = stm32_variant
107-
platform = ststm32@~14.1.0
110+
platform = ststm32@17.1.0
108111
platform_packages = framework-arduinoststm32@~4.20600.231001
109-
toolchain-gccarmnoneeabi@1.100301.220327
112+
toolchain-gccarmnoneeabi@1.120301.0
110113
board = marlin_STM32G0B1VE
111114
board_build.offset = 0x2000
112115
board_upload.offset_address = 0x08002000
@@ -116,6 +119,7 @@ build_flags = ${stm32_variant.build_flags}
116119
-DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
117120
-DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
118121
-DSTEP_TIMER_IRQ_PRIO=0
122+
-Wl,--no-warn-rwx-segment
119123
upload_protocol = stlink
120124
debug_tool = stlink
121125

0 commit comments

Comments
 (0)