|
@@ -22,7 +22,7 @@
|
22
|
22
|
#
|
23
|
23
|
# HAL/STM32F1 Common Environment values
|
24
|
24
|
#
|
25
|
|
-[common_stm32f1]
|
|
25
|
+[STM32F1_maple]
|
26
|
26
|
platform = ststm32@~12.1
|
27
|
27
|
board_build.core = maple
|
28
|
28
|
build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py
|
|
@@ -34,52 +34,62 @@ lib_deps = ${common.lib_deps}
|
34
|
34
|
SoftwareSerialM
|
35
|
35
|
platform_packages = tool-stm32duino
|
36
|
36
|
extra_scripts = ${common.extra_scripts}
|
37
|
|
- pre:buildroot/share/PlatformIO/scripts/fix_framework_weakness.py
|
38
|
|
- pre:buildroot/share/PlatformIO/scripts/stm32_serialbuffer.py
|
39
|
|
- buildroot/share/PlatformIO/scripts/offset_and_rename.py
|
|
37
|
+ pre:buildroot/share/PlatformIO/scripts/fix_framework_weakness.py
|
|
38
|
+ pre:buildroot/share/PlatformIO/scripts/stm32_serialbuffer.py
|
|
39
|
+ buildroot/share/PlatformIO/scripts/custom_board.py
|
|
40
|
+ buildroot/share/PlatformIO/scripts/offset_and_rename.py
|
40
|
41
|
|
41
|
42
|
#
|
42
|
|
-# STM32F103RC
|
|
43
|
+# Generic STM32F103RC environment
|
43
|
44
|
#
|
44
|
|
-[common_STM32F103RC_maple]
|
45
|
|
-extends = common_stm32f1
|
46
|
|
-board = genericSTM32F103RC
|
47
|
|
-monitor_speed = 115200
|
|
45
|
+[env:STM32F103RC_maple]
|
|
46
|
+extends = STM32F1_maple
|
|
47
|
+board = genericSTM32F103RC
|
|
48
|
+monitor_speed = 115200
|
|
49
|
+
|
|
50
|
+#
|
|
51
|
+# Generic STM32F103RE environment
|
|
52
|
+#
|
|
53
|
+[env:STM32F103RE_maple]
|
|
54
|
+extends = STM32F1_maple
|
|
55
|
+board = genericSTM32F103RE
|
|
56
|
+monitor_speed = 115200
|
48
|
57
|
|
49
|
58
|
#
|
50
|
59
|
# MEEB_3DP (STM32F103RCT6 with 512K)
|
51
|
60
|
#
|
52
|
|
-[env:STM32F103RC_meeb]
|
53
|
|
-extends = common_STM32F103RC_maple
|
54
|
|
-board = marlin_MEEB_3DP
|
55
|
|
-build_flags = ${common_stm32f1.build_flags}
|
56
|
|
- -DDEBUG_LEVEL=0
|
57
|
|
- -DSS_TIMER=4
|
58
|
|
- -DSTM32_FLASH_SIZE=512
|
59
|
|
- -DHSE_VALUE=12000000U
|
60
|
|
- -DUSE_USB_COMPOSITE
|
61
|
|
- -DVECT_TAB_OFFSET=0x2000
|
62
|
|
- -DGENERIC_BOOTLOADER
|
63
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
64
|
|
- pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
|
65
|
|
- buildroot/share/PlatformIO/scripts/STM32F103RC_MEEB_3DP.py
|
66
|
|
-lib_deps = ${common_stm32f1.lib_deps}
|
67
|
|
- USBComposite for STM32F1@0.91
|
|
61
|
+[env:STM32F103RC_meeb_maple]
|
|
62
|
+extends = env:STM32F103RC_maple
|
|
63
|
+board = marlin_maple_MEEB_3DP
|
|
64
|
+build_flags = ${STM32F1_maple.build_flags}
|
|
65
|
+ -DDEBUG_LEVEL=0
|
|
66
|
+ -DSS_TIMER=4
|
|
67
|
+ -DSTM32_FLASH_SIZE=512
|
|
68
|
+ -DHSE_VALUE=12000000U
|
|
69
|
+ -DUSE_USB_COMPOSITE
|
|
70
|
+ -DVECT_TAB_OFFSET=0x2000
|
|
71
|
+ -DGENERIC_BOOTLOADER
|
|
72
|
+board_build.ldscript = STM32F103RC_MEEB_3DP.ld
|
|
73
|
+extra_scripts = ${STM32F1_maple.extra_scripts}
|
|
74
|
+ pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
|
|
75
|
+ buildroot/share/PlatformIO/scripts/STM32F103RC_MEEB_3DP.py
|
|
76
|
+lib_deps = ${STM32F1_maple.lib_deps}
|
|
77
|
+ USBComposite for STM32F1@0.91
|
68
|
78
|
custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/ccccmagicboy/Adafruit_NeoPixel#meeb_3dp_use
|
69
|
|
-debug_tool = stlink
|
70
|
|
-upload_protocol = dfu
|
|
79
|
+debug_tool = stlink
|
|
80
|
+upload_protocol = dfu
|
71
|
81
|
|
72
|
82
|
#
|
73
|
83
|
# FYSETC STM32F103RC
|
74
|
84
|
#
|
75
|
85
|
[env:STM32F103RC_fysetc_maple]
|
76
|
|
-extends = common_STM32F103RC_maple
|
77
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
78
|
|
- buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
|
79
|
|
-build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0
|
80
|
|
-lib_ldf_mode = chain
|
81
|
|
-debug_tool = stlink
|
82
|
|
-upload_protocol = serial
|
|
86
|
+extends = env:STM32F103RC_maple
|
|
87
|
+extra_scripts = ${STM32F1_maple.extra_scripts}
|
|
88
|
+ buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
|
|
89
|
+build_flags = ${STM32F1_maple.build_flags} -DDEBUG_LEVEL=0
|
|
90
|
+lib_ldf_mode = chain
|
|
91
|
+debug_tool = stlink
|
|
92
|
+upload_protocol = serial
|
83
|
93
|
|
84
|
94
|
#
|
85
|
95
|
# BigTree SKR Mini V1.1 / SKR Mini E3 & MZ (STM32F103RCT6 ARM Cortex-M3)
|
|
@@ -88,48 +98,28 @@ upload_protocol = serial
|
88
|
98
|
# STM32F103RC_btt_USB_maple ......... RCT6 with 256K (USB mass storage)
|
89
|
99
|
#
|
90
|
100
|
[env:STM32F103RC_btt_maple]
|
91
|
|
-extends = common_STM32F103RC_maple
|
|
101
|
+extends = env:STM32F103RC_maple
|
92
|
102
|
board_build.address = 0x08007000
|
93
|
103
|
board_build.ldscript = STM32F103RC_SKR_MINI_256K.ld
|
94
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
95
|
|
- buildroot/share/PlatformIO/scripts/custom_board.py
|
96
|
|
-build_flags = ${common_stm32f1.build_flags}
|
97
|
|
- -DDEBUG_LEVEL=0 -DSS_TIMER=4
|
|
104
|
+build_flags = ${STM32F1_maple.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
|
98
|
105
|
monitor_speed = 115200
|
99
|
106
|
|
100
|
107
|
[env:STM32F103RC_btt_USB_maple]
|
101
|
|
-extends = env:STM32F103RC_btt_maple
|
102
|
|
-build_flags = ${env:STM32F103RC_btt_maple.build_flags} -DUSE_USB_COMPOSITE
|
103
|
|
-lib_deps = ${env:STM32F103RC_btt_maple.lib_deps}
|
104
|
|
- USBComposite for STM32F1@0.91
|
105
|
|
-
|
106
|
|
-#
|
107
|
|
-# Generic STM32F103RE environment
|
108
|
|
-#
|
109
|
|
-[env:STM32F103RE_maple]
|
110
|
|
-extends = common_stm32f1
|
111
|
|
-board = genericSTM32F103RE
|
112
|
|
-monitor_speed = 115200
|
113
|
|
-
|
114
|
|
-#
|
115
|
|
-# Generic STM32F103RC environment
|
116
|
|
-#
|
117
|
|
-[env:STM32F103RC_maple]
|
118
|
|
-extends = common_stm32f1
|
119
|
|
-board = genericSTM32F103RC
|
120
|
|
-monitor_speed = 115200
|
|
108
|
+extends = env:STM32F103RC_btt_maple
|
|
109
|
+build_flags = ${env:STM32F103RC_btt_maple.build_flags} -DUSE_USB_COMPOSITE
|
|
110
|
+lib_deps = ${env:STM32F103RC_btt_maple.lib_deps}
|
|
111
|
+ USBComposite for STM32F1@0.91
|
121
|
112
|
|
122
|
113
|
#
|
123
|
114
|
# Creality (STM32F103RET6)
|
124
|
115
|
#
|
125
|
116
|
[env:STM32F103RE_creality_maple]
|
126
|
117
|
extends = env:STM32F103RE_maple
|
127
|
|
-build_flags = ${common_stm32f1.build_flags} -DTEMP_TIMER_CHAN=4
|
|
118
|
+build_flags = ${STM32F1_maple.build_flags} -DTEMP_TIMER_CHAN=4
|
128
|
119
|
board_build.address = 0x08007000
|
129
|
120
|
board_build.ldscript = creality.ld
|
130
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
131
|
|
- pre:buildroot/share/PlatformIO/scripts/random-bin.py
|
132
|
|
- buildroot/share/PlatformIO/scripts/custom_board.py
|
|
121
|
+extra_scripts = ${STM32F1_maple.extra_scripts}
|
|
122
|
+ pre:buildroot/share/PlatformIO/scripts/random-bin.py
|
133
|
123
|
debug_tool = jlink
|
134
|
124
|
upload_protocol = jlink
|
135
|
125
|
|
|
@@ -138,12 +128,11 @@ upload_protocol = jlink
|
138
|
128
|
#
|
139
|
129
|
[env:STM32F103RC_creality_maple]
|
140
|
130
|
extends = env:STM32F103RC_maple
|
141
|
|
-build_flags = ${common_stm32f1.build_flags} -DTEMP_TIMER_CHAN=4
|
|
131
|
+build_flags = ${STM32F1_maple.build_flags} -DTEMP_TIMER_CHAN=4
|
142
|
132
|
board_build.address = 0x08007000
|
143
|
133
|
board_build.ldscript = creality.ld
|
144
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
145
|
|
- pre:buildroot/share/PlatformIO/scripts/random-bin.py
|
146
|
|
- buildroot/share/PlatformIO/scripts/custom_board.py
|
|
134
|
+extra_scripts = ${STM32F1_maple.extra_scripts}
|
|
135
|
+ pre:buildroot/share/PlatformIO/scripts/random-bin.py
|
147
|
136
|
debug_tool = jlink
|
148
|
137
|
upload_protocol = jlink
|
149
|
138
|
|
|
@@ -162,204 +151,197 @@ board_build.ldscript = crealityPro.ld
|
162
|
151
|
# STM32F103RE_btt_USB_maple ......... RET6 (USB mass storage)
|
163
|
152
|
#
|
164
|
153
|
[env:STM32F103RE_btt_maple]
|
165
|
|
-extends = env:STM32F103RE_maple
|
|
154
|
+extends = env:STM32F103RE_maple
|
166
|
155
|
board_build.address = 0x08007000
|
167
|
156
|
board_build.ldscript = STM32F103RE_SKR_MINI_512K.ld
|
168
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
169
|
|
- buildroot/share/PlatformIO/scripts/custom_board.py
|
170
|
|
-build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
|
171
|
|
-debug_tool = stlink
|
172
|
|
-upload_protocol = stlink
|
|
157
|
+build_flags = ${STM32F1_maple.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
|
|
158
|
+debug_tool = stlink
|
|
159
|
+upload_protocol = stlink
|
173
|
160
|
|
174
|
161
|
[env:STM32F103RE_btt_USB_maple]
|
175
|
|
-extends = env:STM32F103RE_btt_maple
|
176
|
|
-build_flags = ${env:STM32F103RE_btt_maple.build_flags} -DUSE_USB_COMPOSITE
|
177
|
|
-lib_deps = ${common_stm32f1.lib_deps}
|
178
|
|
- USBComposite for STM32F1@0.91
|
|
162
|
+extends = env:STM32F103RE_btt_maple
|
|
163
|
+build_flags = ${env:STM32F103RE_btt_maple.build_flags} -DUSE_USB_COMPOSITE
|
|
164
|
+lib_deps = ${STM32F1_maple.lib_deps}
|
|
165
|
+ USBComposite for STM32F1@0.91
|
179
|
166
|
|
180
|
167
|
#
|
181
|
168
|
# Geeetech GTM32 (STM32F103VET6)
|
182
|
169
|
#
|
183
|
|
-[env:STM32F103VE_GTM32]
|
184
|
|
-extends = common_stm32f1
|
|
170
|
+[env:STM32F103VE_GTM32_maple]
|
|
171
|
+extends = STM32F1_maple
|
185
|
172
|
board = genericSTM32F103VE
|
186
|
|
-build_flags = ${common_stm32f1.build_flags}
|
187
|
|
- -ffunction-sections -fdata-sections -nostdlib -MMD
|
188
|
|
- -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1 -DBOARD_generic_stm32f103v
|
189
|
|
- -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DVECT_TAB_ADDR=0x8000000
|
190
|
|
- -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
|
|
173
|
+build_flags = ${STM32F1_maple.build_flags}
|
|
174
|
+ -ffunction-sections -fdata-sections -nostdlib -MMD
|
|
175
|
+ -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1 -DBOARD_generic_stm32f103v
|
|
176
|
+ -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DVECT_TAB_ADDR=0x8000000
|
|
177
|
+ -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
|
191
|
178
|
upload_protocol = serial
|
192
|
179
|
|
193
|
180
|
#
|
194
|
181
|
# Longer 3D board in Alfawise U20 (STM32F103VET6)
|
195
|
182
|
#
|
196
|
183
|
[env:STM32F103VE_longer_maple]
|
197
|
|
-extends = common_stm32f1
|
198
|
|
-board = genericSTM32F103VE
|
|
184
|
+extends = STM32F1_maple
|
|
185
|
+board = genericSTM32F103VE
|
199
|
186
|
board_build.address = 0x08010000
|
200
|
187
|
board_build.rename = project.bin
|
201
|
188
|
board_build.ldscript = STM32F103VE_longer.ld
|
202
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
203
|
|
- buildroot/share/PlatformIO/scripts/custom_board.py
|
204
|
|
-build_flags = ${common_stm32f1.build_flags}
|
205
|
|
- -DMCU_STM32F103VE -DSTM32F1xx -USERIAL_USB -DU20 -DTS_V12
|
206
|
|
-build_unflags = ${common_stm32f1.build_unflags}
|
207
|
|
- -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
|
|
189
|
+build_flags = ${STM32F1_maple.build_flags}
|
|
190
|
+ -DMCU_STM32F103VE -DSTM32F1xx -USERIAL_USB -DU20 -DTS_V12
|
|
191
|
+build_unflags = ${STM32F1_maple.build_unflags}
|
|
192
|
+ -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
|
208
|
193
|
|
209
|
194
|
#
|
210
|
195
|
# MKS Robin Mini (STM32F103VET6)
|
211
|
196
|
#
|
212
|
197
|
[env:mks_robin_mini_maple]
|
213
|
|
-extends = common_stm32f1
|
214
|
|
-board = genericSTM32F103VE
|
215
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
216
|
|
- buildroot/share/PlatformIO/scripts/mks_robin_mini.py
|
217
|
|
-build_flags = ${common_stm32f1.build_flags}
|
218
|
|
- -DMCU_STM32F103VE
|
|
198
|
+extends = STM32F1_maple
|
|
199
|
+board = genericSTM32F103VE
|
|
200
|
+board_build.address = 0x08007000
|
|
201
|
+board_build.rename = Robin_mini.bin
|
|
202
|
+board_build.ldscript = mks_robin_mini.ld
|
|
203
|
+build_flags = ${STM32F1_maple.build_flags} -DMCU_STM32F103VE
|
219
|
204
|
|
220
|
205
|
#
|
221
|
206
|
# MKS Robin Nano (STM32F103VET6)
|
222
|
207
|
#
|
223
|
208
|
[env:mks_robin_nano35_maple]
|
224
|
|
-extends = common_stm32f1
|
225
|
|
-board = genericSTM32F103VE
|
226
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
227
|
|
- buildroot/share/PlatformIO/scripts/mks_robin_nano35.py
|
228
|
|
-build_flags = ${common_stm32f1.build_flags}
|
229
|
|
- -DMCU_STM32F103VE -DSS_TIMER=4
|
230
|
|
-debug_tool = jlink
|
231
|
|
-upload_protocol = jlink
|
|
209
|
+extends = STM32F1_maple
|
|
210
|
+board = genericSTM32F103VE
|
|
211
|
+board_build.address = 0x08007000
|
|
212
|
+board_build.rename = Robin_nano35.bin
|
|
213
|
+board_build.ldscript = mks_robin_nano.ld
|
|
214
|
+build_flags = ${STM32F1_maple.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4
|
|
215
|
+debug_tool = jlink
|
|
216
|
+upload_protocol = jlink
|
232
|
217
|
|
233
|
218
|
#
|
234
|
219
|
# MKS Robin (STM32F103ZET6)
|
235
|
220
|
#
|
236
|
221
|
[env:mks_robin_maple]
|
237
|
|
-extends = common_stm32f1
|
238
|
|
-board = genericSTM32F103ZE
|
239
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
240
|
|
- buildroot/share/PlatformIO/scripts/mks_robin.py
|
241
|
|
-build_flags = ${common_stm32f1.build_flags}
|
242
|
|
- -DSS_TIMER=4 -DSTM32_XL_DENSITY
|
|
222
|
+extends = STM32F1_maple
|
|
223
|
+board = genericSTM32F103ZE
|
|
224
|
+board_build.address = 0x08007000
|
|
225
|
+board_build.rename = Robin.bin
|
|
226
|
+board_build.ldscript = mks_robin.ld
|
|
227
|
+build_flags = ${STM32F1_maple.build_flags} -DSS_TIMER=4 -DSTM32_XL_DENSITY
|
243
|
228
|
|
244
|
229
|
#
|
245
|
230
|
# MKS Robin Pro (STM32F103ZET6)
|
246
|
231
|
#
|
247
|
232
|
[env:mks_robin_pro_maple]
|
248
|
|
-extends = env:mks_robin_maple
|
249
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
250
|
|
- buildroot/share/PlatformIO/scripts/mks_robin_pro.py
|
|
233
|
+extends = env:mks_robin_maple
|
|
234
|
+board_build.address = 0x08007000
|
|
235
|
+board_build.rename = Robin_pro.bin
|
|
236
|
+board_build.ldscript = mks_robin_pro.ld
|
251
|
237
|
|
252
|
238
|
#
|
253
|
239
|
# TRIGORILLA PRO (STM32F103ZET6)
|
254
|
240
|
#
|
255
|
241
|
[env:trigorilla_pro_maple]
|
256
|
242
|
extends = env:mks_robin_maple
|
257
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
|
243
|
+extra_scripts = ${STM32F1_maple.extra_scripts}
|
258
|
244
|
|
259
|
245
|
#
|
260
|
246
|
# MKS Robin E3D (STM32F103RCT6) and
|
261
|
247
|
# MKS Robin E3 with TMC2209
|
262
|
248
|
#
|
263
|
249
|
[env:mks_robin_e3_maple]
|
264
|
|
-extends = common_stm32f1
|
265
|
|
-board = genericSTM32F103RC
|
266
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
267
|
|
- buildroot/share/PlatformIO/scripts/mks_robin_e3.py
|
268
|
|
-build_flags = ${common_stm32f1.build_flags}
|
269
|
|
- -DDEBUG_LEVEL=0 -DSS_TIMER=4
|
|
250
|
+extends = STM32F1_maple
|
|
251
|
+board = genericSTM32F103RC
|
|
252
|
+board_build.address = 0x08005000
|
|
253
|
+board_build.rename = Robin_e3.bin
|
|
254
|
+board_build.ldscript = mks_robin_e3.ld
|
|
255
|
+build_flags = ${STM32F1_maple.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
|
270
|
256
|
|
271
|
257
|
#
|
272
|
258
|
# MKS Robin E3p (STM32F103VET6)
|
273
|
259
|
# - LVGL UI
|
274
|
260
|
#
|
275
|
261
|
[env:mks_robin_e3p_maple]
|
276
|
|
-extends = common_stm32f1
|
277
|
|
-board = genericSTM32F103VE
|
278
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
279
|
|
- buildroot/share/PlatformIO/scripts/mks_robin_e3p.py
|
280
|
|
-build_flags = ${common_stm32f1.build_flags}
|
281
|
|
- -DMCU_STM32F103VE -DSS_TIMER=4
|
282
|
|
-debug_tool = jlink
|
283
|
|
-upload_protocol = jlink
|
|
262
|
+extends = STM32F1_maple
|
|
263
|
+board = genericSTM32F103VE
|
|
264
|
+board_build.address = 0x08007000
|
|
265
|
+board_build.rename = Robin_e3p.bin
|
|
266
|
+board_build.ldscript = mks_robin_e3p.ld
|
|
267
|
+build_flags = ${STM32F1_maple.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4
|
|
268
|
+debug_tool = jlink
|
|
269
|
+upload_protocol = jlink
|
284
|
270
|
|
285
|
271
|
#
|
286
|
272
|
# MKS Robin Lite/Lite2 (STM32F103RCT6)
|
287
|
273
|
#
|
288
|
274
|
[env:mks_robin_lite_maple]
|
289
|
|
-extends = common_stm32f1
|
290
|
|
-board = genericSTM32F103RC
|
291
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
292
|
|
- buildroot/share/PlatformIO/scripts/mks_robin_lite.py
|
|
275
|
+extends = STM32F1_maple
|
|
276
|
+board = genericSTM32F103RC
|
|
277
|
+board_build.address = 0x08005000
|
|
278
|
+board_build.rename = mksLite.bin
|
|
279
|
+board_build.ldscript = mks_robin_lite.ld
|
293
|
280
|
|
294
|
281
|
#
|
295
|
282
|
# MKS ROBIN LITE3 (STM32F103RCT6)
|
296
|
283
|
#
|
297
|
284
|
[env:mks_robin_lite3_maple]
|
298
|
|
-extends = common_stm32f1
|
299
|
|
-board = genericSTM32F103RC
|
300
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
301
|
|
- buildroot/share/PlatformIO/scripts/mks_robin_lite3.py
|
|
285
|
+extends = STM32F1_maple
|
|
286
|
+board = genericSTM32F103RC
|
|
287
|
+board_build.address = 0x08005000
|
|
288
|
+board_build.rename = mksLite3.bin
|
|
289
|
+board_build.ldscript = mks_robin_lite.ld
|
302
|
290
|
|
303
|
291
|
#
|
304
|
292
|
# JGAurora A5S A1 (STM32F103ZET6)
|
305
|
293
|
#
|
306
|
294
|
[env:jgaurora_a5s_a1_maple]
|
307
|
|
-extends = common_stm32f1
|
308
|
|
-board = genericSTM32F103ZE
|
|
295
|
+extends = STM32F1_maple
|
|
296
|
+board = genericSTM32F103ZE
|
309
|
297
|
board_build.address = 0x0800A000
|
310
|
298
|
board_build.ldscript = jgaurora_a5s_a1.ld
|
311
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
312
|
|
- buildroot/share/PlatformIO/scripts/custom_board.py
|
313
|
|
- buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
|
314
|
|
-build_flags = ${common_stm32f1.build_flags}
|
315
|
|
- -DSTM32F1xx -DSTM32_XL_DENSITY
|
|
299
|
+extra_scripts = ${STM32F1_maple.extra_scripts}
|
|
300
|
+ buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
|
|
301
|
+build_flags = ${STM32F1_maple.build_flags} -DSTM32F1xx -DSTM32_XL_DENSITY
|
316
|
302
|
|
317
|
303
|
#
|
318
|
304
|
# Malyan M200 (STM32F103CB)
|
319
|
305
|
#
|
320
|
306
|
[env:STM32F103CB_malyan_maple]
|
321
|
|
-extends = common_stm32f1
|
322
|
|
-board = marlin_malyanM200
|
323
|
|
-build_flags = ${common_stm32f1.build_flags}
|
324
|
|
- -DMCU_STM32F103CB -D__STM32F1__=1 -std=c++1y -DSERIAL_USB -ffunction-sections -fdata-sections
|
325
|
|
- -Wl,--gc-sections -DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
|
326
|
|
-lib_ignore = ${common_stm32f1.lib_ignore}
|
327
|
|
- SoftwareSerialM
|
|
307
|
+extends = STM32F1_maple
|
|
308
|
+board = marlin_malyanM200
|
|
309
|
+build_flags = ${STM32F1_maple.build_flags}
|
|
310
|
+ -DMCU_STM32F103CB -D__STM32F1__=1 -std=c++1y -DSERIAL_USB -ffunction-sections -fdata-sections
|
|
311
|
+ -Wl,--gc-sections -DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
|
|
312
|
+lib_ignore = ${STM32F1_maple.lib_ignore}
|
|
313
|
+ SoftwareSerialM
|
328
|
314
|
|
329
|
315
|
#
|
330
|
316
|
# Chitu boards like Tronxy X5s (STM32F103ZET6)
|
331
|
317
|
#
|
332
|
318
|
[env:chitu_f103_maple]
|
333
|
|
-extends = common_stm32f1
|
334
|
|
-board = marlin_CHITU_F103
|
335
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
336
|
|
- pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
|
337
|
|
- buildroot/share/PlatformIO/scripts/chitu_crypt.py
|
338
|
|
-build_flags = ${common_stm32f1.build_flags}
|
339
|
|
- -DSTM32F1xx -DSTM32_XL_DENSITY
|
340
|
|
-build_unflags = ${common_stm32f1.build_unflags}
|
341
|
|
- -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
|
|
319
|
+extends = STM32F1_maple
|
|
320
|
+board = marlin_maple_CHITU_F103
|
|
321
|
+extra_scripts = ${STM32F1_maple.extra_scripts}
|
|
322
|
+ pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
|
|
323
|
+ buildroot/share/PlatformIO/scripts/chitu_crypt.py
|
|
324
|
+build_flags = ${STM32F1_maple.build_flags} -DSTM32F1xx -DSTM32_XL_DENSITY
|
|
325
|
+build_unflags = ${STM32F1_maple.build_unflags}
|
|
326
|
+ -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
|
342
|
327
|
|
343
|
328
|
#
|
344
|
329
|
# Some Chitu V5 boards have a problem with GPIO init.
|
345
|
330
|
# Use this target if G28 or G29 are always failing.
|
346
|
331
|
#
|
347
|
332
|
[env:chitu_v5_gpio_init_maple]
|
348
|
|
-extends = env:chitu_f103_maple
|
349
|
|
-build_flags = ${env:chitu_f103_maple.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
|
|
333
|
+extends = env:chitu_f103_maple
|
|
334
|
+build_flags = ${env:chitu_f103_maple.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
|
350
|
335
|
|
351
|
336
|
#
|
352
|
337
|
# FLYmaker FLY Mini (STM32F103RCT6)
|
353
|
338
|
#
|
354
|
339
|
[env:FLY_MINI_maple]
|
355
|
|
-extends = common_stm32f1
|
356
|
|
-board = genericSTM32F103RC
|
|
340
|
+extends = STM32F1_maple
|
|
341
|
+board = genericSTM32F103RC
|
357
|
342
|
board_build.address = 0x08005000
|
358
|
343
|
board_build.ldscript = fly_mini.ld
|
359
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
360
|
|
- buildroot/share/PlatformIO/scripts/custom_board.py
|
361
|
|
-build_flags = ${common_stm32f1.build_flags}
|
362
|
|
- -DDEBUG_LEVEL=0 -DSS_TIMER=4
|
|
344
|
+build_flags = ${STM32F1_maple.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
|
363
|
345
|
|
364
|
346
|
#
|
365
|
347
|
# Zonestar ZM3E2 V1.0 / ZM3E4 V1.0 / ZM3E4 V2.0
|
|
@@ -369,18 +351,15 @@ build_flags = ${common_stm32f1.build_flags}
|
369
|
351
|
# STM32F103VE_ZM3E4V2_USB_maple ......... VET6 with 512K
|
370
|
352
|
#
|
371
|
353
|
[ZONESTAR_ZM3E_maple]
|
372
|
|
-extends = common_stm32f1
|
|
354
|
+extends = STM32F1_maple
|
373
|
355
|
platform_packages = tool-stm32duino
|
374
|
356
|
board_build.address = 0x08005000
|
375
|
357
|
board_build.offset = 0x5000
|
376
|
358
|
board_upload.maximum_size = 237568
|
377
|
|
-extra_scripts = ${common.extra_scripts}
|
378
|
|
- buildroot/share/PlatformIO/scripts/custom_board.py
|
379
|
|
- buildroot/share/PlatformIO/scripts/offset_and_rename.py
|
380
|
|
-build_flags = ${common_stm32f1.build_flags}
|
381
|
|
- -D__STM32F1__=1 -DDEBUG_LEVEL=0 -DSS_TIMER=4 -DSERIAL_USB
|
382
|
|
-lib_deps = ${common_stm32f1.lib_deps}
|
383
|
|
- USBComposite for STM32F1@0.91
|
|
359
|
+build_flags = ${STM32F1_maple.build_flags}
|
|
360
|
+ -D__STM32F1__=1 -DDEBUG_LEVEL=0 -DSS_TIMER=4 -DSERIAL_USB
|
|
361
|
+lib_deps = ${STM32F1_maple.lib_deps}
|
|
362
|
+ USBComposite for STM32F1@0.91
|
384
|
363
|
lib_ignore = Adafruit NeoPixel, SPI, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster, TMCStepper
|
385
|
364
|
|
386
|
365
|
[env:STM32F103RC_ZM3E2_USB_maple]
|
|
@@ -395,26 +374,24 @@ board_build.ldscript = ZONESTAR_ZM3E_256K.ld
|
395
|
374
|
build_flags = ${ZONESTAR_ZM3E_maple.build_flags} -DTONE_TIMER=1 -DTONE_CHANNEL=2
|
396
|
375
|
|
397
|
376
|
[env:STM32F103VE_ZM3E4V2_USB_maple]
|
398
|
|
-extends = ZONESTAR_ZM3E_maple
|
399
|
|
-board = genericSTM32F103VE
|
400
|
|
-board_build.ldscript = ZONESTAR_ZM3E_512K.ld
|
401
|
|
-build_flags = ${ZONESTAR_ZM3E_maple.build_flags} -DTONE_TIMER=1 -DTONE_CHANNEL=2
|
|
377
|
+extends = ZONESTAR_ZM3E_maple
|
|
378
|
+board = genericSTM32F103VE
|
|
379
|
+board_build.ldscript = ZONESTAR_ZM3E_512K.ld
|
|
380
|
+build_flags = ${ZONESTAR_ZM3E_maple.build_flags} -DTONE_TIMER=1 -DTONE_CHANNEL=2
|
402
|
381
|
board_upload.maximum_size = 499712
|
403
|
382
|
|
404
|
383
|
#
|
405
|
384
|
# ERYONE ERY32 Mini (STM32F103VET6)
|
406
|
385
|
#
|
407
|
386
|
[env:ERYONE_ERY32_MINI_maple]
|
408
|
|
-extends = common_stm32f1
|
|
387
|
+extends = STM32F1_maple
|
409
|
388
|
board = genericSTM32F103VE
|
410
|
|
-build_flags = ${common_stm32f1.build_flags}
|
411
|
|
- -ffunction-sections -fdata-sections -nostdlib -MMD
|
412
|
|
- -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1
|
413
|
|
- -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1
|
414
|
|
- -DSS_TIMER=4
|
|
389
|
+build_flags = ${STM32F1_maple.build_flags}
|
|
390
|
+ -ffunction-sections -fdata-sections -nostdlib -MMD
|
|
391
|
+ -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1
|
|
392
|
+ -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1
|
|
393
|
+ -DSS_TIMER=4
|
415
|
394
|
board_build.variant = MARLIN_F103Vx
|
416
|
395
|
board_build.ldscript = eryone_ery32_mini.ld
|
417
|
396
|
board_build.address = 0x08004000
|
418
|
|
-build_unflags = ${common_stm32f1.build_unflags}
|
419
|
|
-extra_scripts = ${common_stm32f1.extra_scripts}
|
420
|
|
- buildroot/share/PlatformIO/scripts/custom_board.py
|
|
397
|
+build_unflags = ${STM32F1_maple.build_unflags}
|