Skip to content

Commit

Permalink
More reliable toolchain for ststm32@~14.1.0 ?
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed May 18, 2023
1 parent 3b2341f commit 397a347
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 22 deletions.
1 change: 1 addition & 0 deletions ini/stm32f4.ini
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,7 @@ upload_protocol = stlink
extends = stm32_variant
platform = ststm32@~14.1.0
platform_packages = framework-arduinoststm32@https://github.com/stm32duino/Arduino_Core_STM32/archive/main.zip
[email protected]
board = marlin_STM32F401RC
board_build.offset = 0x4000
board_upload.offset_address = 0x08004000
Expand Down
21 changes: 12 additions & 9 deletions ini/stm32g0.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ build_flags = -DPIN_WIRE_SCL=PB3 -DPIN_WIRE_SDA=PB4
extends = stm32_variant
platform = ststm32@~14.1.0
platform_packages = framework-arduinoststm32@https://github.com/stm32duino/Arduino_Core_STM32/archive/main.zip
[email protected]
board = marlin_BTT_EBB42_V1_1
board_build.offset = 0x0000
board_upload.offset_address = 0x08000000
Expand All @@ -48,14 +49,15 @@ upload_command = dfu-util -a 0 -s 0x08000000:leave -D "$SOURCE"
extends = stm32_variant
platform = ststm32@~14.1.0
platform_packages = framework-arduinoststm32@https://github.com/stm32duino/Arduino_Core_STM32/archive/main.zip
[email protected]
board = marlin_STM32G0B1RE
board_build.offset = 0x2000
board_upload.offset_address = 0x08002000
build_flags = ${stm32_variant.build_flags}
-DPIN_SERIAL4_RX=PC_11 -DPIN_SERIAL4_TX=PC_10
-DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
-DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
-DSTEP_TIMER_IRQ_PRIO=0
-DPIN_SERIAL4_RX=PC_11 -DPIN_SERIAL4_TX=PC_10
-DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
-DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
-DSTEP_TIMER_IRQ_PRIO=0
upload_protocol = stlink
debug_tool = stlink

Expand Down Expand Up @@ -102,15 +104,16 @@ upload_protocol = custom
extends = stm32_variant
platform = ststm32@~14.1.0
platform_packages = framework-arduinoststm32@https://github.com/stm32duino/Arduino_Core_STM32/archive/main.zip
[email protected]
board = marlin_STM32G0B1VE
board_build.offset = 0x2000
board_upload.offset_address = 0x08002000
build_flags = ${stm32_variant.build_flags}
-DPIN_SERIAL4_RX=PE_9 -DPIN_SERIAL4_TX=PE_8
-DPIN_SERIAL5_RX=PE_11 -DPIN_SERIAL5_TX=PE_10
-DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
-DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
-DSTEP_TIMER_IRQ_PRIO=0
-DPIN_SERIAL4_RX=PE_9 -DPIN_SERIAL4_TX=PE_8
-DPIN_SERIAL5_RX=PE_11 -DPIN_SERIAL5_TX=PE_10
-DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
-DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
-DSTEP_TIMER_IRQ_PRIO=0
upload_protocol = stlink
debug_tool = stlink

Expand Down
26 changes: 13 additions & 13 deletions ini/stm32h7.ini
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ board = marlin_STM32H743Vx
board_build.offset = 0x20000
board_upload.offset_address = 0x08020000
build_flags = ${stm32_variant.build_flags}
-DPIN_SERIAL1_RX=PA_10 -DPIN_SERIAL1_TX=PA_9
-DPIN_SERIAL3_RX=PD_9 -DPIN_SERIAL3_TX=PD_8
-DPIN_SERIAL4_RX=PA_1 -DPIN_SERIAL4_TX=PA_0
-DPIN_SERIAL1_TX=PA_9 -DPIN_SERIAL1_RX=PA_10
-DPIN_SERIAL3_TX=PD_8 -DPIN_SERIAL3_RX=PD_9
-DPIN_SERIAL4_TX=PA_0 -DPIN_SERIAL4_RX=PA_1
-DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
-DTIMER_SERVO=TIM5 -DTIMER_TONE=TIM2
-DSTEP_TIMER_IRQ_PRIO=0
Expand All @@ -72,11 +72,11 @@ board = marlin_STM32H723Vx
board_build.offset = 0x20000
board_upload.offset_address = 0x08020000
build_flags = ${stm32_variant.build_flags}
-DPIN_SERIAL1_RX=PA_10 -DPIN_SERIAL1_TX=PA_9
-DPIN_SERIAL2_RX=PD_6 -DPIN_SERIAL2_TX=PD_5
-DPIN_SERIAL3_RX=PD_9 -DPIN_SERIAL3_TX=PD_8
-DPIN_SERIAL4_RX=PA_1 -DPIN_SERIAL4_TX=PA_0
-DPIN_SERIAL7_RX=PE_7 -DPIN_SERIAL7_TX=PE_8
-DPIN_SERIAL1_TX=PA_9 -DPIN_SERIAL1_RX=PA_10
-DPIN_SERIAL2_TX=PD_5 -DPIN_SERIAL2_RX=PD_6
-DPIN_SERIAL3_TX=PD_8 -DPIN_SERIAL3_RX=PD_9
-DPIN_SERIAL4_TX=PA_0 -DPIN_SERIAL4_RX=PA_1
-DPIN_SERIAL7_TX=PE_8 -DPIN_SERIAL7_RX=PE_7
-DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
-DTIMER_SERVO=TIM5 -DTIMER_TONE=TIM2
-DSTEP_TIMER_IRQ_PRIO=0
Expand All @@ -98,11 +98,11 @@ board = marlin_STM32H723Zx
board_build.offset = 0x20000
board_upload.offset_address = 0x08020000
build_flags = ${stm32_variant.build_flags}
-DPIN_SERIAL1_RX=PA_10 -DPIN_SERIAL1_TX=PA_9
-DPIN_SERIAL2_RX=PD_6 -DPIN_SERIAL2_TX=PD_5
-DPIN_SERIAL3_RX=PD_9 -DPIN_SERIAL3_TX=PD_8
-DPIN_SERIAL4_RX=PA_1 -DPIN_SERIAL4_TX=PA_0
-DPIN_SERIAL7_RX=PE_7 -DPIN_SERIAL7_TX=PE_8
-DPIN_SERIAL1_TX=PA_9 -DPIN_SERIAL1_RX=PA_10
-DPIN_SERIAL2_TX=PD_5 -DPIN_SERIAL2_RX=PD_6
-DPIN_SERIAL3_TX=PD_8 -DPIN_SERIAL3_RX=PD_9
-DPIN_SERIAL4_TX=PA_0 -DPIN_SERIAL4_RX=PA_1
-DPIN_SERIAL7_TX=PE_8 -DPIN_SERIAL7_RX=PE_7
-DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
-DTIMER_SERVO=TIM5 -DTIMER_TONE=TIM2
-DSTEP_TIMER_IRQ_PRIO=0
Expand Down

0 comments on commit 397a347

Please sign in to comment.