Repository navigation
Expand file tree
/
Copy pathstm32h7.ini
More file actions
256 lines (239 loc) · 10.4 KB
/
Copy pathstm32h7.ini
File metadata and controls
256 lines (239 loc) · 10.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
#
# Marlin Firmware
# PlatformIO Configuration File
#
#################################
#
# STM32H7 Architecture
#
# Naming Example: STM32H743IIT6
#
# H : High Performance
# 7 : Cortex M7 core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
# 43 : Line/Features
# I : 176 pins (T:36, C:48 or 49, M:81, V:100, Z:144, I:176)
# I : 2048KB Flash-memory (C:256KB, D:384KB, E:512KB, G:1024KB, I:2048KB)
# T : LQFP package
# 6 : -40...85°C (7: ...105°C)
#
#################################
#
# BigTreeTech SKR SE BX V2.0 / V3.0 (STM32H743IIT6 ARM Cortex-M7)
#
[env:BTT_SKR_SE_BX]
extends = stm32_variant
board = marlin_BTT_SKR_SE_BX
board_build.offset = 0x20000
board_upload.offset_address = 0x08020000
build_flags = ${stm32_variant.build_flags} ${stm_flash_drive.build_flags} ${USB_HS_IN_FS.build_flags}
-DHAL_DMA2D_MODULE_ENABLED
-DHAL_LTDC_MODULE_ENABLED
-DHAL_SDRAM_MODULE_ENABLED
-DHAL_QSPI_MODULE_ENABLED
-DHAL_SD_MODULE_ENABLED
upload_protocol = cmsis-dap
debug_tool = cmsis-dap
#
# BigTreeTech STM32H743Vx ARM Cortex-M7 Common
#
[STM32H743Vx_btt]
extends = stm32_variant
platform = ststm32@17.1.0
platform_packages = framework-arduinoststm32@~4.20600.231001
toolchain-gccarmnoneeabi@1.120301.0
board_build.offset = 0x20000
board_upload.offset_address = 0x08020000
build_flags = ${stm32_variant.build_flags}
-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
-DD_CACHE_DISABLED
upload_protocol = cmsis-dap
debug_tool = cmsis-dap
#
# BigTreeTech SKR V3.0 / V3.0 EZ (STM32H743VIT6 ARM Cortex-M7)
#
[env:STM32H743VI_btt]
extends = STM32H743Vx_btt
board = marlin_STM32H743VI
#
# BigTreeTech STM32H723Vx ARM Cortex-M7 Common
#
[STM32H723Vx_btt]
extends = stm32_variant
platform = ststm32@17.1.0
platform_packages = framework-arduinoststm32@~4.20600.231001
toolchain-gccarmnoneeabi@1.120301.0
board_build.offset = 0x20000
board_upload.offset_address = 0x08020000
build_flags = ${stm32_variant.build_flags}
-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
-DUSE_USB_HS -DUSE_USB_HS_IN_FS
-DD_CACHE_DISABLED
upload_protocol = cmsis-dap
debug_tool = cmsis-dap
#
# BigTreeTech SKR V3.0 / SKR V3.0 EZ / Scylla V1.0 (STM32H723VGT6 ARM Cortex-M7)
#
[env:STM32H723VG_btt]
extends = STM32H723Vx_btt
board = marlin_STM32H723VG
#
# STM32H723Zx ARM Cortex-M7 Common
#
[STM32H723Zx_common]
extends = stm32_variant
platform = ststm32@17.1.0
platform_packages = framework-arduinoststm32@~4.20600.231001
toolchain-gccarmnoneeabi@1.120301.0
board_build.offset = 0x20000
board_upload.offset_address = 0x08020000
build_flags = ${stm32_variant.build_flags}
-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
-DUSE_USB_HS -DUSE_USB_HS_IN_FS
-DD_CACHE_DISABLED
upload_protocol = cmsis-dap
debug_tool = cmsis-dap
#
# BigTreeTech Octopus Pro V1.0.1/1.1 / Octopus Max EZ V1.0 / Manta M8P V2.0 (STM32H723ZET6 ARM Cortex-M7)
#
[env:STM32H723ZE_btt]
extends = STM32H723Zx_common
board = marlin_STM32H723ZE
#
# BigTreeTech Octopus Pro V1.0.1/1.1 / Octopus Max EZ V1.0 / Manta M8P V2.0 (STM32H723ZET6 ARM Cortex-M7)
# Direct USB upload via the Katapult bootloader. See 'STM32F446ZE_btt_katapult' in stm32f4.ini.
# Requires Katapult installed with application offset 0x20000, matching this board's flash sector size.
#
[env:STM32H723ZE_btt_katapult]
extends = env:STM32H723ZE_btt
build_flags = ${env:STM32H723ZE_btt.build_flags} -DBOOTLOADER_KATAPULT
extra_scripts = ${env:STM32H723ZE_btt.extra_scripts}
pre:buildroot/share/scripts/katapult_upload.py
upload_protocol = custom
#
# BigTreeTech Kraken V1.0 (STM32H723ZGT6 ARM Cortex-M7)
#
[env:STM32H723ZG_btt]
extends = STM32H723Zx_common
board = marlin_STM32H723ZG
#
# FLY D8 PRO
#
[env:FLY_D8_PRO]
extends = stm32_variant
platform = ststm32@17.1.0
platform_packages = framework-arduinoststm32@~4.20600.231001
toolchain-gccarmnoneeabi@1.120301.0
board = marlin_STM32H723VG
board_build.variant = MARLIN_FLY_D8_PRO
board_build.offset = 0x0000
board_upload.offset_address = 0x08000000
build_flags = ${stm32_variant.build_flags}
-DTIMER_SERVO=TIM5 -DTIMER_TONE=TIM2
-DUSE_USB_HS -DUSE_USB_HS_IN_FS
-DD_CACHE_DISABLED
upload_protocol = dfu
#
# FLY SUPER8 PRO
#
[env:FLY_SUPER8_PRO]
extends = stm32_variant
platform = ststm32@17.1.0
platform_packages = framework-arduinoststm32@~4.20600.231001
toolchain-gccarmnoneeabi@1.120301.0
board = marlin_STM32H723ZG
board_build.variant = MARLIN_FLY_SUPER8_PRO
board_build.offset = 0x20000
board_upload.offset_address = 0x08020000
build_flags = ${stm32_variant.build_flags}
-DUSE_USB_HS -DUSE_USB_HS_IN_FS
-DD_CACHE_DISABLED
upload_protocol = dfu
#
# FYSETC Spider King v1.x (STM32H723ZGT6 ARM Cortex-M7)
#
[env:STM32H723ZG_fysetc]
extends = STM32H723Zx_common
board = marlin_STM32H723ZG
#
# FYSETC Spider V3.0 H7 (STM32H723VGT6 ARM Cortex-M7)
# No bootloader. Flash to 0x08000000 via DFU (hold BOOT0 and press RESET).
#
[env:STM32H723VG_fysetc]
extends = stm32_variant
platform = ststm32@17.1.0
platform_packages = framework-arduinoststm32@~4.20600.231001
toolchain-gccarmnoneeabi@1.120301.0
board = marlin_STM32H723VG
board_build.offset = 0x0000
board_upload.offset_address = 0x08000000
build_flags = ${stm32_variant.build_flags}
-DPIN_SERIAL1_TX=PA_9 -DPIN_SERIAL1_RX=PA_10
-DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
-DTIMER_SERVO=TIM5 -DTIMER_TONE=TIM2
-DSTEP_TIMER_IRQ_PRIO=0
-DUSE_USB_HS -DUSE_USB_HS_IN_FS
-DD_CACHE_DISABLED
upload_protocol = dfu
#
# LDO Leviathan V1.3 (STM32H743ZIT6 ARM Cortex-M7)
# with a 128KiB bootloader (e.g., Katapult) installed.
#
[env:LDO_LEVIATHAN_V13]
extends = stm32_variant
platform = ststm32@17.1.0
platform_packages = framework-arduinoststm32@~4.20600.231001
toolchain-gccarmnoneeabi@1.120301.0
board = marlin_STM32H743ZI
board_build.offset = 0x20000
board_upload.offset_address = 0x08020000
build_flags = ${stm32_variant.build_flags}
-DPIN_SERIAL1_TX=PA_9 -DPIN_SERIAL1_RX=PA_10
-DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
-DTIMER_SERVO=TIM5
-DSTEP_TIMER_IRQ_PRIO=0
-DD_CACHE_DISABLED
#
# LDO Leviathan V1.3 (STM32H743ZIT6 ARM Cortex-M7)
# without a bootloader, flashed over bare DFU.
# Hold BOOT0 and press RESET to enter DFU for flashing.
#
[env:LDO_LEVIATHAN_V13_no_bootloader]
extends = env:LDO_LEVIATHAN_V13
platform_packages = ${env:LDO_LEVIATHAN_V13.platform_packages}
platformio/tool-dfuutil@~1.11.0
board_build.offset = 0x0000
board_upload.offset_address = 0x08000000
upload_protocol = dfu
upload_command = dfu-util -a 0 -s 0x08000000:leave -D "$SOURCE"
#
# LDO Leviathan V1.3 (STM32H743ZIT6 ARM Cortex-M7)
# Direct USB upload via the Katapult bootloader. See 'STM32F446ZE_btt_katapult' in stm32f4.ini.
# The board ships without a bootloader; install Katapult with application offset 0x20000,
# matching this board's flash sector size, flashing it over bare DFU with
# 'LDO_LEVIATHAN_V13_no_bootloader' first.
#
[env:LDO_LEVIATHAN_V13_katapult]
extends = env:LDO_LEVIATHAN_V13
build_flags = ${env:LDO_LEVIATHAN_V13.build_flags} -DBOOTLOADER_KATAPULT
extra_scripts = ${env:LDO_LEVIATHAN_V13.extra_scripts}
pre:buildroot/share/scripts/katapult_upload.py
upload_protocol = custom