|
@@ -10,70 +10,48 @@
|
10
|
10
|
# Naming Example: STM32F103RCT6
|
11
|
11
|
#
|
12
|
12
|
# F : Foundation (sometimes High Performance F2/F4)
|
13
|
|
-# 1 : Cortex M1 core
|
|
13
|
+# 1 : Cortex M3 core
|
14
|
14
|
# 03 : Line/Features
|
15
|
|
-# R : 64 or 66 pins (V:100, Z:144, I:176)
|
16
|
|
-# C : 256KB Flash-memory (D:384KB, E:512KB, G:1024KB)
|
|
15
|
+# R : 64 or 66 pins (T:36, C:48, V:100, Z:144, I:176)
|
|
16
|
+# C : 256KB Flash-memory (B: 128KB, D:384KB, E:512KB, G:1024KB)
|
17
|
17
|
# T : LQFP package
|
18
|
18
|
# 6 : -40...85°C (7: ...105°C)
|
19
|
19
|
#
|
20
|
20
|
#################################
|
21
|
21
|
|
22
|
|
-#
|
23
|
|
-# HAL/STM32 Base Environment values
|
24
|
|
-#
|
25
|
|
-[common_stm32]
|
26
|
|
-platform = ststm32@~12.1
|
27
|
|
-build_flags = ${common.build_flags}
|
28
|
|
- -std=gnu++14
|
29
|
|
- -DUSBCON -DUSBD_USE_CDC
|
30
|
|
- -DTIM_IRQ_PRIO=13
|
31
|
|
- -DADC_RESOLUTION=12
|
32
|
|
-build_unflags = -std=gnu++11
|
33
|
|
-src_filter = ${common.default_src_filter} +<src/HAL/STM32> +<src/HAL/shared/backtrace>
|
34
|
|
-extra_scripts = ${common.extra_scripts}
|
35
|
|
- pre:buildroot/share/PlatformIO/scripts/stm32_serialbuffer.py
|
36
|
|
-
|
37
|
|
-[stm32f1_variant]
|
38
|
|
-extra_scripts = ${common_stm32.extra_scripts}
|
39
|
|
- pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
40
|
|
- buildroot/share/PlatformIO/scripts/offset_and_rename.py
|
41
|
|
-
|
42
|
|
-[common_STM32F103RC]
|
43
|
|
-platform = ${common_stm32.platform}
|
44
|
|
-extends = common_stm32
|
|
22
|
+[common_STM32F103RC_variant]
|
|
23
|
+extends = stm32_variant
|
45
|
24
|
board = genericSTM32F103RC
|
46
|
|
-monitor_speed = 115200
|
47
|
|
-board_build.core = stm32
|
48
|
25
|
board_build.variant = MARLIN_F103Rx
|
49
|
|
-extra_scripts = ${stm32f1_variant.extra_scripts}
|
|
26
|
+build_flags = ${stm32_variant.build_flags} -DDEBUG_LEVEL=0
|
|
27
|
+monitor_speed = 115200
|
50
|
28
|
|
51
|
29
|
#
|
52
|
30
|
# STM32F103RE
|
53
|
31
|
#
|
54
|
32
|
[env:STM32F103RE]
|
55
|
|
-platform = ${common_stm32.platform}
|
56
|
|
-extends = common_stm32
|
57
|
|
-board = genericSTM32F103RE
|
58
|
|
-monitor_speed = 115200
|
|
33
|
+platform = ${common_stm32.platform}
|
|
34
|
+extends = common_stm32
|
|
35
|
+board = genericSTM32F103RE
|
|
36
|
+monitor_speed = 115200
|
59
|
37
|
|
60
|
38
|
#
|
61
|
39
|
# STM32F103VE
|
62
|
40
|
#
|
63
|
41
|
[env:STM32F103VE]
|
64
|
|
-platform = ${common_stm32.platform}
|
65
|
|
-extends = common_stm32
|
66
|
|
-board = genericSTM32F103VE
|
67
|
|
-monitor_speed = 115200
|
|
42
|
+platform = ${common_stm32.platform}
|
|
43
|
+extends = common_stm32
|
|
44
|
+board = genericSTM32F103VE
|
|
45
|
+monitor_speed = 115200
|
68
|
46
|
|
69
|
47
|
#
|
70
|
48
|
# STM32F103ZE
|
71
|
49
|
#
|
72
|
50
|
[env:STM32F103ZE]
|
73
|
|
-platform = ${common_stm32.platform}
|
74
|
|
-extends = common_stm32
|
75
|
|
-board = genericSTM32F103ZE
|
76
|
|
-monitor_speed = 115200
|
|
51
|
+platform = ${common_stm32.platform}
|
|
52
|
+extends = common_stm32
|
|
53
|
+board = genericSTM32F103ZE
|
|
54
|
+monitor_speed = 115200
|
77
|
55
|
|
78
|
56
|
#
|
79
|
57
|
# BigTree SKR Mini V1.1 / SKR Mini E3 & MZ (STM32F103RCT6 ARM Cortex-M3)
|
|
@@ -82,23 +60,23 @@ monitor_speed = 115200
|
82
|
60
|
# STM32F103RC_btt_USB ......... RCT6 with 256K (USB mass storage)
|
83
|
61
|
#
|
84
|
62
|
[env:STM32F103RC_btt]
|
85
|
|
-platform = ${common_stm32.platform}
|
86
|
|
-extends = common_STM32F103RC
|
87
|
|
-build_flags = ${common_stm32.build_flags} -DDEBUG_LEVEL=0 -DTIMER_SERVO=TIM5
|
88
|
|
-board_build.offset = 0x7000
|
|
63
|
+platform = ${common_stm32.platform}
|
|
64
|
+extends = common_STM32F103RC_variant
|
|
65
|
+build_flags = ${common_STM32F103RC_variant.build_flags}
|
|
66
|
+ -DTIMER_SERVO=TIM5
|
|
67
|
+board_build.offset = 0x7000
|
89
|
68
|
board_upload.offset_address = 0x08007000
|
90
|
69
|
|
91
|
70
|
[env:STM32F103RC_btt_USB]
|
92
|
|
-extends = env:STM32F103RC_btt
|
93
|
71
|
platform = ${common_stm32.platform}
|
94
|
|
-platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc-3.zip
|
|
72
|
+extends = env:STM32F103RC_btt
|
|
73
|
+platform_packages = ${stm_flash_drive.platform_packages}
|
|
74
|
+build_flags = ${env:STM32F103RC_btt.build_flags}
|
|
75
|
+ -DUSE_USB_FS
|
|
76
|
+ -DUSBD_IRQ_PRIO=5
|
|
77
|
+ -DUSBD_IRQ_SUBPRIO=6
|
|
78
|
+ -DUSBD_USE_CDC_MSC
|
95
|
79
|
build_unflags = ${common_stm32.build_unflags} -DUSBD_USE_CDC
|
96
|
|
-build_flags = ${env:STM32F103RC_btt.build_flags} ${env:stm32_flash_drive.build_flags}
|
97
|
|
- -DUSBCON
|
98
|
|
- -DUSE_USB_FS
|
99
|
|
- -DUSBD_IRQ_PRIO=5
|
100
|
|
- -DUSBD_IRQ_SUBPRIO=6
|
101
|
|
- -DUSBD_USE_CDC_MSC
|
102
|
80
|
|
103
|
81
|
#
|
104
|
82
|
# MKS Robin (STM32F103ZET6)
|
|
@@ -106,52 +84,53 @@ build_flags = ${env:STM32F103RC_btt.build_flags} ${env:stm32_flash_drive.b
|
106
|
84
|
#
|
107
|
85
|
[env:mks_robin]
|
108
|
86
|
platform = ${common_stm32.platform}
|
109
|
|
-extends = common_stm32
|
|
87
|
+extends = stm32_variant
|
110
|
88
|
board = genericSTM32F103ZE
|
111
|
|
-board_build.core = stm32
|
112
|
89
|
board_build.variant = MARLIN_F103Zx
|
113
|
|
-board_build.offset = 0x7000
|
114
|
90
|
board_build.encrypt = Robin.bin
|
115
|
|
-build_flags = ${common_stm32.build_flags}
|
116
|
|
- -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
|
117
|
|
-build_unflags = ${common_stm32.build_unflags}
|
118
|
|
- -DUSBCON -DUSBD_USE_CDC
|
119
|
|
-extra_scripts = ${stm32f1_variant.extra_scripts}
|
120
|
|
-lib_deps =
|
|
91
|
+board_build.offset = 0x7000
|
|
92
|
+build_flags = ${stm32_variant.build_flags}
|
|
93
|
+ -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
|
|
94
|
+build_unflags = ${stm32_variant.build_unflags}
|
|
95
|
+ -DUSBCON -DUSBD_USE_CDC
|
121
|
96
|
|
122
|
97
|
#
|
123
|
98
|
# MKS Robin E3/E3D (STM32F103RCT6) with TMC2209
|
124
|
99
|
#
|
125
|
100
|
[env:mks_robin_e3]
|
126
|
101
|
platform = ${common_stm32.platform}
|
127
|
|
-extends = common_STM32F103RC
|
128
|
|
-build_flags = ${common_stm32.build_flags} -DDEBUG_LEVEL=0 -DTIMER_SERVO=TIM5 -DDEFAULT_SPI=3
|
129
|
|
-build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
130
|
|
-monitor_speed = 115200
|
131
|
|
-board_build.offset = 0x5000
|
|
102
|
+extends = common_STM32F103RC_variant
|
132
|
103
|
board_build.encrypt = Robin_e3.bin
|
|
104
|
+board_build.offset = 0x5000
|
133
|
105
|
board_upload.offset_address = 0x08005000
|
|
106
|
+build_flags = ${common_STM32F103RC_variant.build_flags}
|
|
107
|
+ -DTIMER_SERVO=TIM5 -DDEFAULT_SPI=3
|
|
108
|
+build_unflags = ${common_STM32F103RC_variant.build_unflags}
|
|
109
|
+ -DUSBCON -DUSBD_USE_CDC
|
|
110
|
+monitor_speed = 115200
|
134
|
111
|
debug_tool = stlink
|
135
|
|
-extra_scripts = ${common_STM32F103RC.extra_scripts}
|
136
|
112
|
|
137
|
113
|
#
|
138
|
114
|
# Creality (STM32F103RET6)
|
139
|
115
|
#
|
140
|
116
|
[env:STM32F103RET6_creality]
|
141
|
|
-platform = ${common_stm32.platform}
|
142
|
|
-extends = common_stm32
|
143
|
|
-build_flags = ${common_stm32.build_flags} -DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED -DSS_TIMER=4 -DTIMER_SERVO=TIM5 -DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
|
144
|
|
-board = genericSTM32F103RE
|
145
|
|
-monitor_speed = 115200
|
146
|
|
-board_build.core = stm32
|
147
|
|
-board_build.variant = MARLIN_F103Rx
|
148
|
|
-board_build.offset = 0x7000
|
|
117
|
+platform = ${common_stm32.platform}
|
|
118
|
+extends = stm32_variant
|
|
119
|
+board = genericSTM32F103RE
|
|
120
|
+board_build.variant = MARLIN_F103Rx
|
|
121
|
+board_build.offset = 0x7000
|
149
|
122
|
board_upload.offset_address = 0x08007000
|
150
|
|
-build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
151
|
|
-extra_scripts = ${stm32f1_variant.extra_scripts}
|
152
|
|
- pre:buildroot/share/PlatformIO/scripts/random-bin.py
|
153
|
|
-debug_tool = jlink
|
154
|
|
-upload_protocol = jlink
|
|
123
|
+build_flags = ${stm32_variant.build_flags}
|
|
124
|
+ -DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED
|
|
125
|
+ -DSS_TIMER=4 -DTIMER_SERVO=TIM5
|
|
126
|
+ -DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
|
|
127
|
+build_unflags = ${stm32_variant.build_unflags}
|
|
128
|
+ -DUSBCON -DUSBD_USE_CDC
|
|
129
|
+extra_scripts = ${stm32_variant.extra_scripts}
|
|
130
|
+ pre:buildroot/share/PlatformIO/scripts/random-bin.py
|
|
131
|
+monitor_speed = 115200
|
|
132
|
+debug_tool = jlink
|
|
133
|
+upload_protocol = jlink
|
155
|
134
|
|
156
|
135
|
#
|
157
|
136
|
# BigTree SKR Mini E3 V2.0 & DIP / SKR CR6 (STM32F103RET6 ARM Cortex-M3)
|
|
@@ -160,80 +139,79 @@ upload_protocol = jlink
|
160
|
139
|
# STM32F103RE_btt_USB ......... RET6 (USB mass storage)
|
161
|
140
|
#
|
162
|
141
|
[env:STM32F103RE_btt]
|
163
|
|
-platform = ${common_stm32.platform}
|
164
|
|
-extends = common_stm32
|
165
|
|
-build_flags = ${common_stm32.build_flags} -DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED -DSS_TIMER=4 -DTIMER_SERVO=TIM5 -DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
|
166
|
|
-board = genericSTM32F103RE
|
167
|
|
-monitor_speed = 115200
|
168
|
|
-board_build.core = stm32
|
169
|
|
-board_build.variant = MARLIN_F103Rx
|
170
|
|
-board_build.offset = 0x7000
|
|
142
|
+platform = ${common_stm32.platform}
|
|
143
|
+extends = stm32_variant
|
|
144
|
+board = genericSTM32F103RE
|
|
145
|
+board_build.variant = MARLIN_F103Rx
|
|
146
|
+board_build.offset = 0x7000
|
171
|
147
|
board_upload.offset_address = 0x08007000
|
172
|
|
-build_unflags = ${common_stm32.build_unflags}
|
173
|
|
-extra_scripts = ${stm32f1_variant.extra_scripts}
|
174
|
|
-debug_tool = jlink
|
175
|
|
-upload_protocol = jlink
|
|
148
|
+build_flags = ${stm32_variant.build_flags}
|
|
149
|
+ -DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED
|
|
150
|
+ -DSS_TIMER=4 -DTIMER_SERVO=TIM5
|
|
151
|
+ -DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
|
|
152
|
+monitor_speed = 115200
|
|
153
|
+debug_tool = jlink
|
|
154
|
+upload_protocol = jlink
|
176
|
155
|
|
177
|
156
|
[env:STM32F103RE_btt_USB]
|
178
|
|
-extends = env:STM32F103RE_btt
|
179
|
157
|
platform = ${common_stm32.platform}
|
180
|
|
-platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc-3.zip
|
181
|
|
-build_unflags = ${common_stm32.build_unflags} -DUSBD_USE_CDC
|
182
|
|
-build_flags = ${env:STM32F103RE_btt.build_flags} ${env:stm32_flash_drive.build_flags}
|
183
|
|
- -DUSBCON
|
184
|
|
- -DUSE_USB_FS
|
185
|
|
- -DUSBD_IRQ_PRIO=5
|
186
|
|
- -DUSBD_IRQ_SUBPRIO=6
|
187
|
|
- -DUSBD_USE_CDC_MSC
|
|
158
|
+extends = env:STM32F103RE_btt
|
|
159
|
+platform_packages = ${stm_flash_drive.platform_packages}
|
|
160
|
+build_flags = ${env:STM32F103RE_btt.build_flags}
|
|
161
|
+ -DUSE_USB_FS -DUSBD_IRQ_PRIO=5
|
|
162
|
+ -DUSBD_IRQ_SUBPRIO=6 -DUSBD_USE_CDC_MSC
|
|
163
|
+build_unflags = ${stm32_variant.build_unflags} -DUSBD_USE_CDC
|
188
|
164
|
|
189
|
165
|
#
|
190
|
166
|
# FLSUN QQS Pro (STM32F103VET6)
|
191
|
167
|
# board Hispeedv1
|
192
|
168
|
#
|
193
|
169
|
[env:flsun_hispeedv1]
|
194
|
|
-platform = ${common_stm32.platform}
|
195
|
|
-extends = common_stm32
|
196
|
|
-build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3 -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
|
197
|
|
-board = genericSTM32F103VE
|
198
|
|
-board_build.core = stm32
|
199
|
|
-board_build.variant = MARLIN_F103Vx
|
200
|
|
-board_build.offset = 0x7000
|
201
|
|
-board_build.encrypt = Robin_mini.bin
|
|
170
|
+platform = ${common_stm32.platform}
|
|
171
|
+extends = stm32_variant
|
|
172
|
+board = genericSTM32F103VE
|
|
173
|
+board_build.variant = MARLIN_F103Vx
|
|
174
|
+board_build.encrypt = Robin_mini.bin
|
|
175
|
+board_build.offset = 0x7000
|
202
|
176
|
board_upload.offset_address = 0x08007000
|
203
|
|
-build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
204
|
|
-extra_scripts = ${stm32f1_variant.extra_scripts}
|
|
177
|
+build_flags = ${stm32_variant.build_flags}
|
|
178
|
+ -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
|
|
179
|
+ -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
|
|
180
|
+build_unflags = ${stm32_variant.build_unflags}
|
|
181
|
+ -DUSBCON -DUSBD_USE_CDC
|
205
|
182
|
|
206
|
183
|
#
|
207
|
184
|
# MKS Robin Nano V1.2 and V2
|
208
|
185
|
#
|
209
|
186
|
[env:mks_robin_nano35]
|
210
|
|
-platform = ${common_stm32.platform}
|
211
|
|
-extends = common_stm32
|
212
|
|
-build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3 -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
|
213
|
|
-board = genericSTM32F103VE
|
214
|
|
-board_build.core = stm32
|
215
|
|
-board_build.variant = MARLIN_F103Vx
|
216
|
|
-board_build.offset = 0x7000
|
217
|
|
-board_build.encrypt = Robin_nano35.bin
|
|
187
|
+platform = ${common_stm32.platform}
|
|
188
|
+extends = stm32_variant
|
|
189
|
+board = genericSTM32F103VE
|
|
190
|
+board_build.variant = MARLIN_F103Vx
|
|
191
|
+board_build.encrypt = Robin_nano35.bin
|
|
192
|
+board_build.offset = 0x7000
|
218
|
193
|
board_upload.offset_address = 0x08007000
|
219
|
|
-build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
220
|
|
-debug_tool = jlink
|
221
|
|
-upload_protocol = jlink
|
222
|
|
-extra_scripts = ${stm32f1_variant.extra_scripts}
|
|
194
|
+build_flags = ${stm32_variant.build_flags}
|
|
195
|
+ -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
|
|
196
|
+ -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
|
|
197
|
+build_unflags = ${stm32_variant.build_unflags}
|
|
198
|
+ -DUSBCON -DUSBD_USE_CDC
|
|
199
|
+debug_tool = jlink
|
|
200
|
+upload_protocol = jlink
|
223
|
201
|
|
224
|
202
|
#
|
225
|
203
|
# Mingda MPX_ARM_MINI
|
226
|
204
|
#
|
227
|
205
|
[env:mingda_mpx_arm_mini]
|
228
|
206
|
platform = ${common_stm32.platform}
|
229
|
|
-extends = common_stm32
|
|
207
|
+extends = stm32_variant
|
230
|
208
|
board = genericSTM32F103ZE
|
231
|
|
-board_build.core = stm32
|
232
|
209
|
board_build.variant = MARLIN_F103Zx
|
233
|
210
|
board_build.offset = 0x10000
|
234
|
|
-build_flags = ${common_stm32.build_flags} -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
|
235
|
|
-build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
236
|
|
-extra_scripts = ${stm32f1_variant.extra_scripts}
|
|
211
|
+build_flags = ${stm32_variant.build_flags}
|
|
212
|
+ -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
|
|
213
|
+build_unflags = ${stm32_variant.build_unflags}
|
|
214
|
+ -DUSBCON -DUSBD_USE_CDC
|
237
|
215
|
|
238
|
216
|
#
|
239
|
217
|
# Malyan M200 (STM32F103CB)
|
|
@@ -243,67 +221,55 @@ platform = ${common_stm32.platform}
|
243
|
221
|
extends = common_stm32
|
244
|
222
|
board = malyanm200_f103cb
|
245
|
223
|
build_flags = ${common_stm32.build_flags}
|
246
|
|
- -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED
|
|
224
|
+ -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB
|
|
225
|
+ -DHAL_UART_MODULE_ENABLED
|
247
|
226
|
src_filter = ${common.default_src_filter} +<src/HAL/STM32>
|
248
|
227
|
|
249
|
228
|
#
|
250
|
229
|
# FLYmaker FLY Mini (STM32F103RCT6)
|
251
|
230
|
#
|
252
|
231
|
[env:FLY_MINI]
|
253
|
|
-platform = ${common_stm32.platform}
|
254
|
|
-extends = common_stm32
|
255
|
|
-build_flags = ${common_stm32.build_flags} -DSS_TIMER=4
|
256
|
|
-board = genericSTM32F103RC
|
257
|
|
-board_build.core = stm32
|
258
|
|
-board_build.variant = MARLIN_F103Rx
|
259
|
|
-board_build.offset = 0x5000
|
|
232
|
+platform = ${common_stm32.platform}
|
|
233
|
+extends = stm32_variant
|
|
234
|
+board = genericSTM32F103RC
|
|
235
|
+board_build.variant = MARLIN_F103Rx
|
|
236
|
+board_build.offset = 0x5000
|
260
|
237
|
board_upload.offset_address = 0x08005000
|
261
|
|
-extra_scripts = ${stm32f1_variant.extra_scripts}
|
|
238
|
+build_flags = ${stm32_variant.build_flags} -DSS_TIMER=4
|
262
|
239
|
|
263
|
240
|
#
|
264
|
241
|
# MKS Robin Mini (STM32F103VET6)
|
265
|
242
|
#
|
266
|
243
|
[env:mks_robin_mini]
|
267
|
|
-platform = ${common_stm32.platform}
|
268
|
|
-extends = common_stm32
|
269
|
|
-board = genericSTM32F103VE
|
270
|
|
-board_build.core = stm32
|
271
|
|
-board_build.variant = MARLIN_F103Vx
|
272
|
|
-board_build.offset = 0x7000
|
273
|
|
-board_build.encrypt = Robin_mini.bin
|
274
|
|
-build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
|
|
244
|
+platform = ${common_stm32.platform}
|
|
245
|
+extends = stm32_variant
|
|
246
|
+board = genericSTM32F103VE
|
|
247
|
+board_build.variant = MARLIN_F103Vx
|
|
248
|
+board_build.encrypt = Robin_mini.bin
|
|
249
|
+board_build.offset = 0x7000
|
275
|
250
|
board_upload.offset_address = 0x08007000
|
276
|
|
-extra_scripts = ${stm32f1_variant.extra_scripts}
|
|
251
|
+build_flags = ${stm32_variant.build_flags}
|
|
252
|
+ -DMCU_STM32F103VE -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
|
277
|
253
|
|
278
|
254
|
#
|
279
|
255
|
# MKS Robin Lite/Lite2 (STM32F103RCT6)
|
280
|
256
|
#
|
281
|
257
|
[env:mks_robin_lite]
|
282
|
|
-platform = ${common_stm32.platform}
|
283
|
|
-extends = common_stm32
|
284
|
|
-board = genericSTM32F103RC
|
285
|
|
-board_build.core = stm32
|
286
|
|
-board_build.variant = MARLIN_F103Rx
|
287
|
|
-board_build.offset = 0x5000
|
288
|
|
-board_build.encrypt = mksLite.bin
|
289
|
|
-build_flags = ${common_stm32.build_flags}
|
|
258
|
+platform = ${common_stm32.platform}
|
|
259
|
+extends = stm32_variant
|
|
260
|
+board = genericSTM32F103RC
|
|
261
|
+board_build.variant = MARLIN_F103Rx
|
|
262
|
+board_build.encrypt = mksLite.bin
|
|
263
|
+board_build.offset = 0x5000
|
290
|
264
|
board_upload.offset_address = 0x08005000
|
291
|
|
-extra_scripts = ${stm32f1_variant.extra_scripts}
|
292
|
265
|
|
293
|
266
|
#
|
294
|
267
|
# MKS ROBIN LITE3 (STM32F103RCT6)
|
295
|
268
|
#
|
296
|
269
|
[env:mks_robin_lite3]
|
297
|
|
-platform = ${common_stm32.platform}
|
298
|
|
-extends = common_stm32
|
299
|
|
-board = genericSTM32F103RC
|
300
|
|
-board_build.core = stm32
|
301
|
|
-board_build.variant = MARLIN_F103Rx
|
302
|
|
-board_build.offset = 0x5000
|
303
|
|
-board_build.encrypt = mksLite3.bin
|
304
|
|
-build_flags = ${common_stm32.build_flags}
|
305
|
|
-board_upload.offset_address = 0x08005000
|
306
|
|
-extra_scripts = ${stm32f1_variant.extra_scripts}
|
|
270
|
+platform = ${common_stm32.platform}
|
|
271
|
+extends = env:mks_robin_lite
|
|
272
|
+board_build.encrypt = mksLite3.bin
|
307
|
273
|
|
308
|
274
|
#
|
309
|
275
|
# MKS Robin Pro (STM32F103ZET6)
|
|
@@ -318,44 +284,43 @@ board_build.encrypt = Robin_pro.bin
|
318
|
284
|
# - LVGL UI
|
319
|
285
|
#
|
320
|
286
|
[env:mks_robin_e3p]
|
321
|
|
-platform = ${common_stm32.platform}
|
322
|
|
-extends = common_stm32
|
323
|
|
-board = genericSTM32F103VE
|
324
|
|
-board_build.core = stm32
|
325
|
|
-board_build.variant = MARLIN_F103Vx
|
326
|
|
-board_build.offset = 0x7000
|
327
|
|
-board_build.encrypt = Robin_e3p.bin
|
328
|
|
-build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
|
|
287
|
+platform = ${common_stm32.platform}
|
|
288
|
+extends = stm32_variant
|
|
289
|
+board = genericSTM32F103VE
|
|
290
|
+board_build.variant = MARLIN_F103Vx
|
|
291
|
+board_build.encrypt = Robin_e3p.bin
|
|
292
|
+board_build.offset = 0x7000
|
329
|
293
|
board_upload.offset_address = 0x08007000
|
330
|
|
-extra_scripts = ${stm32f1_variant.extra_scripts}
|
331
|
|
-debug_tool = jlink
|
332
|
|
-upload_protocol = jlink
|
|
294
|
+build_flags = ${stm32_variant.build_flags}
|
|
295
|
+ -DMCU_STM32F103VE -DSS_TIMER=4
|
|
296
|
+ -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
|
|
297
|
+debug_tool = jlink
|
|
298
|
+upload_protocol = jlink
|
333
|
299
|
|
334
|
300
|
#
|
335
|
301
|
# JGAurora A5S A1 (STM32F103ZET6)
|
336
|
302
|
#
|
337
|
303
|
[env:jgaurora_a5s_a1]
|
338
|
|
-platform = ${common_stm32.platform}
|
339
|
|
-extends = common_stm32
|
340
|
|
-board = genericSTM32F103ZE
|
341
|
|
-board_build.core = stm32
|
342
|
|
-board_build.variant = MARLIN_F103Zx
|
343
|
|
-board_build.offset = 0xA000
|
344
|
|
-board_build.rename = firmware_for_sd_upload.bin
|
345
|
|
-build_flags = ${common_stm32.build_flags} -DSTM32F1xx -DSTM32_XL_DENSITY
|
346
|
|
-board_build.address = 0x0800A000
|
347
|
|
-extra_scripts = ${stm32f1_variant.extra_scripts}
|
348
|
|
- buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
|
|
304
|
+platform = ${common_stm32.platform}
|
|
305
|
+extends = stm32_variant
|
|
306
|
+board = genericSTM32F103ZE
|
|
307
|
+board_build.variant = MARLIN_F103Zx
|
|
308
|
+board_build.offset = 0xA000
|
|
309
|
+board_build.rename = firmware_for_sd_upload.bin
|
|
310
|
+board_upload.offset_address = 0x0800A000
|
|
311
|
+build_flags = ${stm32_variant.build_flags}
|
|
312
|
+ -DSTM32F1xx -DSTM32_XL_DENSITY
|
|
313
|
+extra_scripts = ${stm32_variant.extra_scripts}
|
|
314
|
+ buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
|
349
|
315
|
|
350
|
316
|
#
|
351
|
317
|
# FYSETC STM32F103RC
|
352
|
318
|
#
|
353
|
319
|
[env:STM32F103RC_fysetc]
|
354
|
320
|
platform = ${common_stm32.platform}
|
355
|
|
-extends = common_STM32F103RC
|
356
|
|
-extra_scripts = ${stm32f1_variant.extra_scripts}
|
357
|
|
- buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
|
358
|
|
-build_flags = ${common_stm32.build_flags} -DDEBUG_LEVEL=0
|
|
321
|
+extends = common_STM32F103RC_variant
|
|
322
|
+extra_scripts = ${common_STM32F103RC_variant.extra_scripts}
|
|
323
|
+ buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
|
359
|
324
|
lib_ldf_mode = chain
|
360
|
325
|
debug_tool = stlink
|
361
|
326
|
upload_protocol = serial
|
|
@@ -364,20 +329,20 @@ upload_protocol = serial
|
364
|
329
|
# Longer 3D board in Alfawise U20 (STM32F103VET6)
|
365
|
330
|
#
|
366
|
331
|
[env:STM32F103VE_longer]
|
367
|
|
-platform = ${common_stm32.platform}
|
368
|
|
-extends = common_stm32
|
369
|
|
-board = genericSTM32F103VE
|
370
|
|
-board_build.core = stm32
|
371
|
|
-board_build.variant = MARLIN_F103Vx
|
372
|
|
-board_build.offset = 0x10000
|
373
|
|
-board_build.address = 0x08010000
|
374
|
|
-build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DU20 -DTS_V12
|
375
|
|
- -DLED_BUILTIN=PC2 -UPIN_WIRE_SDA -UPIN_WIRE_SCL -DPIN_WIRE_SDA=PB11 -DPIN_WIRE_SCL=PB10
|
376
|
|
- -DHAL_DAC_MODULE_DISABLED -DHAL_I2S_MODULE_DISABLED
|
377
|
|
-build_unflags = ${common_stm32.build_unflags}
|
378
|
|
- -DUSBCON -DUSBD_USE_CDC -DHAL_PCD_MODULE_ENABLED
|
379
|
|
-extra_scripts = ${stm32f1_variant.extra_scripts}
|
380
|
|
- buildroot/share/PlatformIO/scripts/STM32F103VE_longer.py
|
|
332
|
+platform = ${common_stm32.platform}
|
|
333
|
+extends = stm32_variant
|
|
334
|
+board = genericSTM32F103VE
|
|
335
|
+board_build.variant = MARLIN_F103Vx
|
|
336
|
+board_build.offset = 0x10000
|
|
337
|
+board_upload.offset_address = 0x08010000
|
|
338
|
+build_flags = ${stm32_variant.build_flags}
|
|
339
|
+ -DMCU_STM32F103VE -DU20 -DTS_V12 -DLED_BUILTIN=PC2 -UPIN_WIRE_SDA
|
|
340
|
+ -UPIN_WIRE_SCL -DPIN_WIRE_SDA=PB11 -DPIN_WIRE_SCL=PB10
|
|
341
|
+ -DHAL_DAC_MODULE_DISABLED -DHAL_I2S_MODULE_DISABLED
|
|
342
|
+build_unflags = ${stm32_variant.build_unflags}
|
|
343
|
+ -DUSBCON -DUSBD_USE_CDC -DHAL_PCD_MODULE_ENABLED
|
|
344
|
+extra_scripts = ${stm32_variant.extra_scripts}
|
|
345
|
+ buildroot/share/PlatformIO/scripts/STM32F103VE_longer.py
|
381
|
346
|
|
382
|
347
|
#
|
383
|
348
|
# TRIGORILLA PRO (STM32F103ZET6)
|
|
@@ -392,15 +357,16 @@ extra_scripts = ${common_stm32.extra_scripts}
|
392
|
357
|
#
|
393
|
358
|
[env:chitu_f103]
|
394
|
359
|
platform = ${common_stm32.platform}
|
395
|
|
-extends = common_stm32
|
|
360
|
+extends = stm32_variant
|
396
|
361
|
board = genericSTM32F103ZE
|
397
|
|
-board_build.core = stm32
|
398
|
362
|
board_build.variant = MARLIN_F103Zx
|
399
|
|
-extra_scripts = ${stm32f1_variant.extra_scripts}
|
400
|
|
- buildroot/share/PlatformIO/scripts/chitu_crypt.py
|
401
|
|
-build_flags = ${common_stm32.build_flags} -DSTM32_XL_DENSITY
|
402
|
|
-build_unflags = ${common_stm32.build_unflags}
|
403
|
|
- -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
|
|
363
|
+build_flags = ${stm32_variant.build_flags}
|
|
364
|
+ -DSTM32F1xx -DSTM32_XL_DENSITY
|
|
365
|
+build_unflags = ${stm32_variant.build_unflags}
|
|
366
|
+ -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=
|
|
367
|
+ -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
|
|
368
|
+extra_scripts = ${stm32_variant.extra_scripts}
|
|
369
|
+ buildroot/share/PlatformIO/scripts/chitu_crypt.py
|
404
|
370
|
|
405
|
371
|
#
|
406
|
372
|
# Some Chitu V5 boards have a problem with GPIO init.
|