Browse Source

⬆️ Assert newer GCC in PIO via atmelavr@~3.4 (#23432)

Jason Smith 2 years ago
parent
commit
554a2fc84a
No account linked to committer's email address
13 changed files with 49 additions and 177 deletions
  1. 1
    14
      ini/avr.ini
  2. 0
    3
      ini/due.ini
  3. 0
    3
      ini/esp32.ini
  4. 0
    2
      ini/lpc176x.ini
  5. 0
    5
      ini/native.ini
  6. 0
    3
      ini/stm32f0.ini
  7. 0
    30
      ini/stm32f1-maple.ini
  8. 1
    31
      ini/stm32f1.ini
  9. 0
    47
      ini/stm32f4.ini
  10. 0
    2
      ini/stm32f7.ini
  11. 12
    12
      ini/stm32g0.ini
  12. 0
    1
      ini/stm32h7.ini
  13. 35
    24
      ini/teensy.ini

+ 1
- 14
ini/avr.ini View File

@@ -13,6 +13,7 @@
13 13
 # AVR (8-bit) Common Environment values
14 14
 #
15 15
 [common_avr8]
16
+platform          = atmelavr@~3.4
16 17
 build_flags       = ${common.build_flags} -Wl,--relax
17 18
 board_build.f_cpu = 16000000L
18 19
 src_filter        = ${common.default_src_filter} +<src/HAL/AVR>
@@ -21,7 +22,6 @@ src_filter        = ${common.default_src_filter} +<src/HAL/AVR>
21 22
 # ATmega2560
22 23
 #
23 24
 [env:mega2560]
24
-platform = atmelavr
25 25
 extends  = common_avr8
26 26
 board    = megaatmega2560
27 27
 
@@ -33,7 +33,6 @@ board    = megaatmega2560
33 33
 # BOARD_EINSTART_S
34 34
 #
35 35
 [env:mega2560ext]
36
-platform            = atmelavr
37 36
 extends             = env:mega2560
38 37
 board_build.variant = MARLIN_MEGA_EXTENDED
39 38
 extra_scripts       = ${common.extra_scripts}
@@ -43,7 +42,6 @@ extra_scripts       = ${common.extra_scripts}
43 42
 # ATmega1280
44 43
 #
45 44
 [env:mega1280]
46
-platform = atmelavr
47 45
 extends  = common_avr8
48 46
 board    = megaatmega1280
49 47
 
@@ -61,7 +59,6 @@ build_flags         = ${common.build_flags} -fno-tree-scev-cprop -fno-split-wide
61 59
 # MightyBoard ATmega1280
62 60
 #
63 61
 [env:MightyBoard1280]
64
-platform = atmelavr
65 62
 extends  = mega_extended_optimized
66 63
 board    = megaatmega1280
67 64
 
@@ -69,7 +66,6 @@ board    = megaatmega1280
69 66
 # MightyBoard ATmega2560
70 67
 #
71 68
 [env:MightyBoard2560]
72
-platform = atmelavr
73 69
 extends  = mega_extended_optimized
74 70
 board    = megaatmega2560
75 71
 
@@ -77,7 +73,6 @@ board    = megaatmega2560
77 73
 # RAMBo
78 74
 #
79 75
 [env:rambo]
80
-platform = atmelavr
81 76
 extends  = common_avr8
82 77
 board    = reprap_rambo
83 78
 
@@ -85,7 +80,6 @@ board    = reprap_rambo
85 80
 # FYSETC F6 V1.3 / V1.4
86 81
 #
87 82
 [env:FYSETC_F6]
88
-platform = atmelavr
89 83
 extends  = common_avr8
90 84
 board    = fysetc_f6_13
91 85
 
@@ -93,7 +87,6 @@ board    = fysetc_f6_13
93 87
 # Sanguinololu (ATmega644p)
94 88
 #
95 89
 [env:sanguino644p]
96
-platform = atmelavr
97 90
 extends  = common_avr8
98 91
 board    = sanguino_atmega644p
99 92
 
@@ -101,7 +94,6 @@ board    = sanguino_atmega644p
101 94
 # Sanguinololu (ATmega1284p)
102 95
 #
103 96
 [env:sanguino1284p]
104
-platform                  = atmelavr
105 97
 extends                   = common_avr8
106 98
 board                     = sanguino_atmega1284p
107 99
 board_upload.maximum_size = 126976
@@ -114,7 +106,6 @@ board_upload.maximum_size = 126976
114 106
 build_flags = ${common.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -Wl,--relax -mcall-prologues
115 107
 
116 108
 [env:sanguino1284p_optimized]
117
-platform    = atmelavr
118 109
 extends     = env:sanguino1284p
119 110
 build_flags = ${tuned_1284p.build_flags}
120 111
 
@@ -122,12 +113,10 @@ build_flags = ${tuned_1284p.build_flags}
122 113
 # Melzi and clones (ATmega1284p)
123 114
 #
124 115
 [env:melzi]
125
-platform     = atmelavr
126 116
 extends      = env:sanguino1284p
127 117
 upload_speed = 57600
128 118
 
129 119
 [env:melzi_optimized]
130
-platform     = atmelavr
131 120
 extends      = env:sanguino1284p_optimized
132 121
 upload_speed = 57600
133 122
 
@@ -135,7 +124,6 @@ upload_speed = 57600
135 124
 # Melzi and clones (Optiboot bootloader)
136 125
 #
137 126
 [env:melzi_optiboot]
138
-platform     = atmelavr
139 127
 extends      = common_avr8
140 128
 board        = sanguino_atmega1284p
141 129
 upload_speed = 115200
@@ -145,6 +133,5 @@ board_upload.maximum_size = 130048
145 133
 # Melzi and clones (Zonestar Melzi2 with tuned flags)
146 134
 #
147 135
 [env:melzi_optiboot_optimized]
148
-platform    = atmelavr
149 136
 extends     = env:melzi_optiboot
150 137
 build_flags = ${tuned_1284p.build_flags}

+ 0
- 3
ini/due.ini View File

@@ -21,7 +21,6 @@ board      = due
21 21
 src_filter = ${common.default_src_filter} +<src/HAL/DUE> +<src/HAL/shared/backtrace>
22 22
 
23 23
 [env:DUE_USB]
24
-platform = atmelsam
25 24
 extends  = env:DUE
26 25
 board    = dueUSB
27 26
 
@@ -29,7 +28,6 @@ board    = dueUSB
29 28
 # Archim SAM
30 29
 #
31 30
 [common_DUE_archim]
32
-platform                 = atmelsam
33 31
 extends                  = env:DUE
34 32
 board                    = marlin_archim
35 33
 build_flags              = ${common.build_flags}
@@ -39,5 +37,4 @@ extra_scripts            = ${common.extra_scripts}
39 37
   Marlin/src/HAL/DUE/upload_extra_script.py
40 38
 
41 39
 [env:DUE_archim]
42
-platform = ${common_DUE_archim.platform}
43 40
 extends  = common_DUE_archim

+ 0
- 3
ini/esp32.ini View File

@@ -24,12 +24,10 @@ monitor_speed = 250000
24 24
 #board_build.flash_mode = qio
25 25
 
26 26
 [env:FYSETC_E4]
27
-platform               = espressif32@2.1.0
28 27
 extends                = env:esp32
29 28
 board_build.partitions = default_16MB.csv
30 29
 
31 30
 [env:PANDA]
32
-platform      = espressif32@2.1.0
33 31
 extends       = env:esp32
34 32
 build_flags   = ${env:esp32.build_flags} -DUSE_ESP32_EXIO -DUSE_ESP32_TASK_WDT
35 33
 lib_deps      = ${common.lib_deps}
@@ -40,5 +38,4 @@ monitor_speed = 115200
40 38
 
41 39
 [env:mks_tinybee]
42 40
 extends                = env:esp32
43
-platform               = espressif32@2.1.0
44 41
 board_build.partitions = default_8MB.csv

+ 0
- 2
ini/lpc176x.ini View File

@@ -34,11 +34,9 @@ build_flags       = ${common.build_flags} -DU8G_HAL_LINKS -IMarlin/src/HAL/LPC17
34 34
 # NXP LPC176x ARM Cortex-M3
35 35
 #
36 36
 [env:LPC1768]
37
-platform = ${common_LPC.platform}
38 37
 extends  = common_LPC
39 38
 board    = nxp_lpc1768
40 39
 
41 40
 [env:LPC1769]
42
-platform = ${common_LPC.platform}
43 41
 extends  = common_LPC
44 42
 board    = nxp_lpc1769

+ 0
- 5
ini/native.ini View File

@@ -52,12 +52,10 @@ extends     = simulator_common
52 52
 build_flags = ${simulator_common.build_flags} -ldl -lpthread -lSDL2 -lSDL2_net -lGL
53 53
 
54 54
 [env:simulator_linux_debug]
55
-platform   = ${simulator_linux.platform}
56 55
 extends    = simulator_linux
57 56
 build_type = debug
58 57
 
59 58
 [env:simulator_linux_release]
60
-platform    = ${simulator_linux.platform}
61 59
 extends     = simulator_linux
62 60
 build_type  = release
63 61
 build_flags = ${simulator_linux.build_flags} ${simulator_linux.release_flags}
@@ -92,13 +90,11 @@ build_flags       =
92 90
   -lSDL2
93 91
 
94 92
 [env:simulator_macos_debug]
95
-platform        = ${env:simulator_linux_release.platform}
96 93
 extends         = env:simulator_linux_debug
97 94
 build_flags     = ${env:simulator_linux_debug.build_flags} ${simulator_macos.build_flags} -ggdb -Og -D_THREAD_SAFE
98 95
 build_unflags   = ${simulator_macos.build_unflags}
99 96
 
100 97
 [env:simulator_macos_release]
101
-platform        = ${env:simulator_linux_release.platform}
102 98
 extends         = env:simulator_linux_release
103 99
 build_flags     = ${env:simulator_linux_release.build_flags} ${simulator_macos.build_flags}
104 100
 build_unflags   = ${simulator_macos.build_unflags}
@@ -110,7 +106,6 @@ build_unflags   = ${simulator_macos.build_unflags}
110 106
 #  pacman -S --needed base-devel mingw-w64-x86_64-toolchain mingw64/mingw-w64-x86_64-glm mingw64/mingw-w64-x86_64-SDL2 mingw64/mingw-w64-x86_64-SDL2_net mingw-w64-x86_64-dlfcn
111 107
 #
112 108
 [env:simulator_windows]
113
-platform    = ${simulator_common.platform}
114 109
 extends     = simulator_common
115 110
 src_build_flags = ${simulator_common.src_build_flags} -fpermissive
116 111
 build_flags = ${simulator_common.build_flags} ${simulator_common.debug_build_flags} -IC:\\msys64\\mingw64\\include\\SDL2 -fno-stack-protector -Wl,-subsystem,windows -ldl -lmingw32 -lSDL2main -lSDL2 -lSDL2_net -lopengl32 -lssp

+ 0
- 3
ini/stm32f0.ini View File

@@ -23,7 +23,6 @@
23 23
 # Malyan M200 v2 (STM32F070RB)
24 24
 #
25 25
 [env:STM32F070RB_malyan]
26
-platform    = ${common_stm32.platform}
27 26
 extends     = common_stm32
28 27
 board       = marlin_malyanM200v2
29 28
 build_flags = ${common_stm32.build_flags} -DHAL_PCD_MODULE_ENABLED
@@ -34,7 +33,6 @@ build_flags = ${common_stm32.build_flags} -DHAL_PCD_MODULE_ENABLED
34 33
 # Malyan M200 v2 (STM32F070CB)
35 34
 #
36 35
 [env:STM32F070CB_malyan]
37
-platform    = ${common_stm32.platform}
38 36
 extends     = common_stm32
39 37
 board       = malyanm200_f070cb
40 38
 build_flags = ${common_stm32.build_flags}
@@ -45,7 +43,6 @@ build_flags = ${common_stm32.build_flags}
45 43
 # Malyan M300 (STM32F070CB)
46 44
 #
47 45
 [env:malyan_M300]
48
-platform    = ${common_stm32.platform}
49 46
 extends     = common_stm32
50 47
 board       = malyanm300_f070cb
51 48
 build_flags = ${common_stm32.build_flags}

+ 0
- 30
ini/stm32f1-maple.ini View File

@@ -42,7 +42,6 @@ extra_scripts     = ${common.extra_scripts}
42 42
 # STM32F103RC
43 43
 #
44 44
 [common_STM32F103RC_maple]
45
-platform          = ${common_stm32f1.platform}
46 45
 extends           = common_stm32f1
47 46
 board             = genericSTM32F103RC
48 47
 monitor_speed     = 115200
@@ -51,7 +50,6 @@ monitor_speed     = 115200
51 50
 # MEEB_3DP (STM32F103RCT6 with 512K)
52 51
 #
53 52
 [env:STM32F103RC_meeb]
54
-platform          = ${common_stm32f1.platform}
55 53
 extends           = common_STM32F103RC_maple
56 54
 board             = marlin_MEEB_3DP
57 55
 build_flags       = ${common_stm32f1.build_flags}
@@ -75,7 +73,6 @@ upload_protocol   = dfu
75 73
 # FYSETC STM32F103RC
76 74
 #
77 75
 [env:STM32F103RC_fysetc_maple]
78
-platform          = ${common_stm32f1.platform}
79 76
 extends           = common_STM32F103RC_maple
80 77
 extra_scripts     = ${common_stm32f1.extra_scripts}
81 78
   buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
@@ -91,7 +88,6 @@ upload_protocol   = serial
91 88
 #   STM32F103RC_btt_USB_maple ......... RCT6 with 256K (USB mass storage)
92 89
 #
93 90
 [env:STM32F103RC_btt_maple]
94
-platform             = ${common_stm32f1.platform}
95 91
 extends              = common_STM32F103RC_maple
96 92
 board_build.address  = 0x08007000
97 93
 board_build.ldscript = STM32F103RC_SKR_MINI_256K.ld
@@ -102,7 +98,6 @@ build_flags          = ${common_stm32f1.build_flags}
102 98
 monitor_speed        = 115200
103 99
 
104 100
 [env:STM32F103RC_btt_USB_maple]
105
-platform          = ${common_stm32f1.platform}
106 101
 extends           = env:STM32F103RC_btt_maple
107 102
 build_flags       = ${env:STM32F103RC_btt_maple.build_flags} -DUSE_USB_COMPOSITE
108 103
 lib_deps          = ${env:STM32F103RC_btt_maple.lib_deps}
@@ -112,7 +107,6 @@ lib_deps          = ${env:STM32F103RC_btt_maple.lib_deps}
112 107
 # Generic STM32F103RE environment
113 108
 #
114 109
 [env:STM32F103RE_maple]
115
-platform          = ${common_stm32f1.platform}
116 110
 extends           = common_stm32f1
117 111
 board             = genericSTM32F103RE
118 112
 monitor_speed     = 115200
@@ -121,7 +115,6 @@ monitor_speed     = 115200
121 115
 # Creality (STM32F103RET6)
122 116
 #
123 117
 [env:STM32F103RET6_creality_maple]
124
-platform             = ${common_stm32f1.platform}
125 118
 extends              = env:STM32F103RE_maple
126 119
 build_flags          = ${common_stm32f1.build_flags} -DTEMP_TIMER_CHAN=4
127 120
 board_build.address  = 0x08007000
@@ -139,7 +132,6 @@ upload_protocol      = jlink
139 132
 #   STM32F103RE_btt_USB_maple ......... RET6 (USB mass storage)
140 133
 #
141 134
 [env:STM32F103RE_btt_maple]
142
-platform          = ${common_stm32f1.platform}
143 135
 extends           = env:STM32F103RE_maple
144 136
 board_build.address  = 0x08007000
145 137
 board_build.ldscript = STM32F103RE_SKR_MINI_512K.ld
@@ -150,7 +142,6 @@ debug_tool        = stlink
150 142
 upload_protocol   = stlink
151 143
 
152 144
 [env:STM32F103RE_btt_USB_maple]
153
-platform          = ${common_stm32f1.platform}
154 145
 extends           = env:STM32F103RE_btt_maple
155 146
 build_flags       = ${env:STM32F103RE_btt_maple.build_flags} -DUSE_USB_COMPOSITE
156 147
 lib_deps          = ${common_stm32f1.lib_deps}
@@ -160,7 +151,6 @@ lib_deps          = ${common_stm32f1.lib_deps}
160 151
 # Geeetech GTM32 (STM32F103VET6)
161 152
 #
162 153
 [env:STM32F103VE_GTM32]
163
-platform        = ${common_stm32f1.platform}
164 154
 extends         = common_stm32f1
165 155
 board           = genericSTM32F103VE
166 156
 build_flags     = ${common_stm32f1.build_flags}
@@ -174,7 +164,6 @@ upload_protocol = serial
174 164
 # Longer 3D board in Alfawise U20 (STM32F103VET6)
175 165
 #
176 166
 [env:STM32F103VE_longer_maple]
177
-platform      = ${common_stm32f1.platform}
178 167
 extends       = common_stm32f1
179 168
 board         = genericSTM32F103VE
180 169
 board_build.address  = 0x08010000
@@ -191,7 +180,6 @@ build_unflags = ${common_stm32f1.build_unflags}
191 180
 # MKS Robin Mini (STM32F103VET6)
192 181
 #
193 182
 [env:mks_robin_mini_maple]
194
-platform      = ${common_stm32f1.platform}
195 183
 extends       = common_stm32f1
196 184
 board         = genericSTM32F103VE
197 185
 extra_scripts = ${common_stm32f1.extra_scripts}
@@ -203,7 +191,6 @@ build_flags   = ${common_stm32f1.build_flags}
203 191
 # MKS Robin Nano (STM32F103VET6)
204 192
 #
205 193
 [env:mks_robin_nano35_maple]
206
-platform        = ${common_stm32f1.platform}
207 194
 extends         = common_stm32f1
208 195
 board           = genericSTM32F103VE
209 196
 extra_scripts   = ${common_stm32f1.extra_scripts}
@@ -217,7 +204,6 @@ upload_protocol = jlink
217 204
 # MKS Robin (STM32F103ZET6)
218 205
 #
219 206
 [env:mks_robin_maple]
220
-platform      = ${common_stm32f1.platform}
221 207
 extends       = common_stm32f1
222 208
 board         = genericSTM32F103ZE
223 209
 extra_scripts = ${common_stm32f1.extra_scripts}
@@ -229,7 +215,6 @@ build_flags   = ${common_stm32f1.build_flags}
229 215
 # MKS Robin Pro (STM32F103ZET6)
230 216
 #
231 217
 [env:mks_robin_pro_maple]
232
-platform      = ${common_stm32f1.platform}
233 218
 extends       = env:mks_robin_maple
234 219
 extra_scripts = ${common_stm32f1.extra_scripts}
235 220
   buildroot/share/PlatformIO/scripts/mks_robin_pro.py
@@ -238,7 +223,6 @@ extra_scripts = ${common_stm32f1.extra_scripts}
238 223
 # TRIGORILLA PRO (STM32F103ZET6)
239 224
 #
240 225
 [env:trigorilla_pro_maple]
241
-platform      = ${common_stm32f1.platform}
242 226
 extends       = env:mks_robin_maple
243 227
 extra_scripts = ${common_stm32f1.extra_scripts}
244 228
 
@@ -247,7 +231,6 @@ extra_scripts = ${common_stm32f1.extra_scripts}
247 231
 # MKS Robin E3 with TMC2209
248 232
 #
249 233
 [env:mks_robin_e3_maple]
250
-platform      = ${common_stm32f1.platform}
251 234
 extends       = common_stm32f1
252 235
 board         = genericSTM32F103RC
253 236
 extra_scripts = ${common_stm32f1.extra_scripts}
@@ -260,7 +243,6 @@ build_flags   = ${common_stm32f1.build_flags}
260 243
 #  - LVGL UI
261 244
 #
262 245
 [env:mks_robin_e3p_maple]
263
-platform        = ${common_stm32f1.platform}
264 246
 extends         = common_stm32f1
265 247
 board           = genericSTM32F103VE
266 248
 extra_scripts   = ${common_stm32f1.extra_scripts}
@@ -274,7 +256,6 @@ upload_protocol = jlink
274 256
 # MKS Robin Lite/Lite2 (STM32F103RCT6)
275 257
 #
276 258
 [env:mks_robin_lite_maple]
277
-platform      = ${common_stm32f1.platform}
278 259
 extends       = common_stm32f1
279 260
 board         = genericSTM32F103RC
280 261
 extra_scripts = ${common_stm32f1.extra_scripts}
@@ -284,7 +265,6 @@ extra_scripts = ${common_stm32f1.extra_scripts}
284 265
 # MKS ROBIN LITE3 (STM32F103RCT6)
285 266
 #
286 267
 [env:mks_robin_lite3_maple]
287
-platform      = ${common_stm32f1.platform}
288 268
 extends       = common_stm32f1
289 269
 board         = genericSTM32F103RC
290 270
 extra_scripts = ${common_stm32f1.extra_scripts}
@@ -294,7 +274,6 @@ extra_scripts = ${common_stm32f1.extra_scripts}
294 274
 # JGAurora A5S A1 (STM32F103ZET6)
295 275
 #
296 276
 [env:jgaurora_a5s_a1_maple]
297
-platform      = ${common_stm32f1.platform}
298 277
 extends       = common_stm32f1
299 278
 board         = genericSTM32F103ZE
300 279
 board_build.address  = 0x0800A000
@@ -309,7 +288,6 @@ build_flags   = ${common_stm32f1.build_flags}
309 288
 # Malyan M200 (STM32F103CB)
310 289
 #
311 290
 [env:STM32F103CB_malyan_maple]
312
-platform      = ${common_stm32f1.platform}
313 291
 extends       = common_stm32f1
314 292
 board         = marlin_malyanM200
315 293
 build_flags   = ${common_stm32f1.build_flags}
@@ -322,7 +300,6 @@ lib_ignore    = ${common_stm32f1.lib_ignore}
322 300
 # Chitu boards like Tronxy X5s (STM32F103ZET6)
323 301
 #
324 302
 [env:chitu_f103_maple]
325
-platform      = ${common_stm32f1.platform}
326 303
 extends       = common_stm32f1
327 304
 board         = marlin_CHITU_F103
328 305
 extra_scripts = ${common_stm32f1.extra_scripts}
@@ -338,7 +315,6 @@ build_unflags = ${common_stm32f1.build_unflags}
338 315
 # Use this target if G28 or G29 are always failing.
339 316
 #
340 317
 [env:chitu_v5_gpio_init_maple]
341
-platform      = ${common_stm32f1.platform}
342 318
 extends       = env:chitu_f103_maple
343 319
 build_flags   = ${env:chitu_f103_maple.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
344 320
 
@@ -346,7 +322,6 @@ build_flags   = ${env:chitu_f103_maple.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
346 322
 # FLYmaker FLY Mini (STM32F103RCT6)
347 323
 #
348 324
 [env:FLY_MINI_maple]
349
-platform          = ${common_stm32f1.platform}
350 325
 extends           = common_stm32f1
351 326
 board             = genericSTM32F103RC
352 327
 board_build.address  = 0x08005000
@@ -364,7 +339,6 @@ build_flags       = ${common_stm32f1.build_flags}
364 339
 #  STM32F103VE_ZM3E4V2_USB_maple ......... VET6 with 512K
365 340
 #
366 341
 [ZONESTAR_ZM3E_maple]
367
-platform                  = ${common_stm32f1.platform}
368 342
 extends                   = common_stm32f1
369 343
 platform_packages         = tool-stm32duino
370 344
 board_build.address       = 0x08005000
@@ -380,20 +354,17 @@ lib_deps                  = ${common_stm32f1.lib_deps}
380 354
 lib_ignore                = Adafruit NeoPixel, SPI, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster, TMCStepper
381 355
 
382 356
 [env:STM32F103RC_ZM3E2_USB_maple]
383
-platform             = ${ZONESTAR_ZM3E_maple.platform}
384 357
 extends              = ZONESTAR_ZM3E_maple
385 358
 board                = genericSTM32F103RC
386 359
 board_build.ldscript = ZONESTAR_ZM3E_256K.ld
387 360
 
388 361
 [env:STM32F103VC_ZM3E4_USB_maple]
389
-platform             = ${ZONESTAR_ZM3E_maple.platform}
390 362
 extends              = ZONESTAR_ZM3E_maple
391 363
 board                = genericSTM32F103VC
392 364
 board_build.ldscript = ZONESTAR_ZM3E_256K.ld
393 365
 build_flags          = ${ZONESTAR_ZM3E_maple.build_flags} -DTONE_TIMER=1 -DTONE_CHANNEL=2
394 366
 
395 367
 [env:STM32F103VE_ZM3E4V2_USB_maple]
396
-platform             = ${ZONESTAR_ZM3E_maple.platform}
397 368
 extends              = ZONESTAR_ZM3E_maple
398 369
 board                = genericSTM32F103VE
399 370
 board_build.ldscript = ZONESTAR_ZM3E_512K.ld
@@ -404,7 +375,6 @@ board_upload.maximum_size = 499712
404 375
 # ERYONE ERY32 Mini (STM32F103VET6)
405 376
 #
406 377
 [env:ERYONE_ERY32_MINI_maple]
407
-platform             = ${common_stm32f1.platform}
408 378
 extends              = common_stm32f1
409 379
 board                = genericSTM32F103VE
410 380
 build_flags          = ${common_stm32f1.build_flags}

+ 1
- 31
ini/stm32f1.ini View File

@@ -30,7 +30,6 @@ monitor_speed        = 115200
30 30
 # STM32F103RE
31 31
 #
32 32
 [env:STM32F103RE]
33
-platform      = ${common_stm32.platform}
34 33
 extends       = common_stm32
35 34
 board         = genericSTM32F103RE
36 35
 monitor_speed = 115200
@@ -39,7 +38,6 @@ monitor_speed = 115200
39 38
 # STM32F103VE
40 39
 #
41 40
 [env:STM32F103VE]
42
-platform      = ${common_stm32.platform}
43 41
 extends       = common_stm32
44 42
 board         = genericSTM32F103VE
45 43
 monitor_speed = 115200
@@ -48,7 +46,6 @@ monitor_speed = 115200
48 46
 # STM32F103ZE
49 47
 #
50 48
 [env:STM32F103ZE]
51
-platform      = ${common_stm32.platform}
52 49
 extends       = common_stm32
53 50
 board         = genericSTM32F103ZE
54 51
 monitor_speed = 115200
@@ -60,7 +57,6 @@ monitor_speed = 115200
60 57
 #   STM32F103RC_btt_USB ......... RCT6 with 256K (USB mass storage)
61 58
 #
62 59
 [env:STM32F103RC_btt]
63
-platform                    = ${common_stm32.platform}
64 60
 extends                     = common_STM32F103RC_variant
65 61
 build_flags                 = ${common_STM32F103RC_variant.build_flags}
66 62
                               -DTIMER_SERVO=TIM5
@@ -68,7 +64,6 @@ board_build.offset          = 0x7000
68 64
 board_upload.offset_address = 0x08007000
69 65
 
70 66
 [env:STM32F103RC_btt_USB]
71
-platform          = ${common_stm32.platform}
72 67
 extends           = env:STM32F103RC_btt
73 68
 platform_packages = ${stm_flash_drive.platform_packages}
74 69
 build_flags       = ${env:STM32F103RC_btt.build_flags}
@@ -83,7 +78,6 @@ build_unflags     = ${common_stm32.build_unflags} -DUSBD_USE_CDC
83 78
 # Uses HAL STM32 to support Marlin UI for TFT screen with optional touch panel
84 79
 #
85 80
 [env:mks_robin]
86
-platform             = ${common_stm32.platform}
87 81
 extends              = stm32_variant
88 82
 board                = genericSTM32F103ZE
89 83
 board_build.variant  = MARLIN_F103Zx
@@ -98,7 +92,6 @@ build_unflags        = ${stm32_variant.build_unflags}
98 92
 # MKS Robin E3/E3D (STM32F103RCT6) with TMC2209
99 93
 #
100 94
 [env:mks_robin_e3]
101
-platform                    = ${common_stm32.platform}
102 95
 extends                     = common_STM32F103RC_variant
103 96
 board_build.encrypt         = Robin_e3.bin
104 97
 board_build.offset          = 0x5000
@@ -114,7 +107,6 @@ debug_tool                  = stlink
114 107
 # Creality (STM32F103RET6)
115 108
 #
116 109
 [env:STM32F103RET6_creality]
117
-platform                    = ${common_stm32.platform}
118 110
 extends                     = stm32_variant
119 111
 board                       = genericSTM32F103RE
120 112
 board_build.variant         = MARLIN_F103Rx
@@ -139,7 +131,6 @@ upload_protocol             = jlink
139 131
 #   STM32F103RE_btt_USB ......... RET6 (USB mass storage)
140 132
 #
141 133
 [env:STM32F103RE_btt]
142
-platform                    = ${common_stm32.platform}
143 134
 extends                     = stm32_variant
144 135
 board                       = genericSTM32F103RE
145 136
 board_build.variant         = MARLIN_F103Rx
@@ -154,7 +145,6 @@ debug_tool                  = jlink
154 145
 upload_protocol             = jlink
155 146
 
156 147
 [env:STM32F103RE_btt_USB]
157
-platform          = ${common_stm32.platform}
158 148
 extends           = env:STM32F103RE_btt
159 149
 platform_packages = ${stm_flash_drive.platform_packages}
160 150
 build_flags       = ${env:STM32F103RE_btt.build_flags}
@@ -167,7 +157,6 @@ build_unflags     = ${stm32_variant.build_unflags} -DUSBD_USE_CDC
167 157
 # board Hispeedv1
168 158
 #
169 159
 [env:flsun_hispeedv1]
170
-platform                    = ${common_stm32.platform}
171 160
 extends                     = stm32_variant
172 161
 board                       = genericSTM32F103VE
173 162
 board_build.variant         = MARLIN_F103Vx
@@ -184,7 +173,6 @@ build_unflags               = ${stm32_variant.build_unflags}
184 173
 # MKS Robin Nano V1.2 and V2
185 174
 #
186 175
 [env:mks_robin_nano35]
187
-platform                    = ${common_stm32.platform}
188 176
 extends                     = stm32_variant
189 177
 board                       = genericSTM32F103VE
190 178
 board_build.variant         = MARLIN_F103Vx
@@ -203,7 +191,6 @@ upload_protocol             = jlink
203 191
 # Mingda MPX_ARM_MINI
204 192
 #
205 193
 [env:mingda_mpx_arm_mini]
206
-platform             = ${common_stm32.platform}
207 194
 extends              = stm32_variant
208 195
 board                = genericSTM32F103ZE
209 196
 board_build.variant  = MARLIN_F103Zx
@@ -217,7 +204,6 @@ build_unflags        = ${stm32_variant.build_unflags}
217 204
 # Malyan M200 (STM32F103CB)
218 205
 #
219 206
 [env:STM32F103CB_malyan]
220
-platform    = ${common_stm32.platform}
221 207
 extends     = common_stm32
222 208
 board       = malyanm200_f103cb
223 209
 build_flags = ${common_stm32.build_flags}
@@ -229,7 +215,6 @@ src_filter  = ${common.default_src_filter} +<src/HAL/STM32>
229 215
 # FLYmaker FLY Mini (STM32F103RCT6)
230 216
 #
231 217
 [env:FLY_MINI]
232
-platform                    = ${common_stm32.platform}
233 218
 extends                     = stm32_variant
234 219
 board                       = genericSTM32F103RC
235 220
 board_build.variant         = MARLIN_F103Rx
@@ -241,7 +226,6 @@ build_flags                 = ${stm32_variant.build_flags} -DSS_TIMER=4
241 226
 # MKS Robin Mini (STM32F103VET6)
242 227
 #
243 228
 [env:mks_robin_mini]
244
-platform                    = ${common_stm32.platform}
245 229
 extends                     = stm32_variant
246 230
 board                       = genericSTM32F103VE
247 231
 board_build.variant         = MARLIN_F103Vx
@@ -255,7 +239,6 @@ build_flags                 = ${stm32_variant.build_flags}
255 239
 # MKS Robin Lite/Lite2 (STM32F103RCT6)
256 240
 #
257 241
 [env:mks_robin_lite]
258
-platform                    = ${common_stm32.platform}
259 242
 extends                     = stm32_variant
260 243
 board                       = genericSTM32F103RC
261 244
 board_build.variant         = MARLIN_F103Rx
@@ -267,7 +250,6 @@ board_upload.offset_address = 0x08005000
267 250
 # MKS ROBIN LITE3 (STM32F103RCT6)
268 251
 #
269 252
 [env:mks_robin_lite3]
270
-platform                    = ${common_stm32.platform}
271 253
 extends                     = env:mks_robin_lite
272 254
 board_build.encrypt         = mksLite3.bin
273 255
 
@@ -275,7 +257,6 @@ board_build.encrypt         = mksLite3.bin
275 257
 # MKS Robin Pro (STM32F103ZET6)
276 258
 #
277 259
 [env:mks_robin_pro]
278
-platform            = ${common_stm32.platform}
279 260
 extends             = env:mks_robin
280 261
 board_build.encrypt = Robin_pro.bin
281 262
 
@@ -284,7 +265,6 @@ board_build.encrypt = Robin_pro.bin
284 265
 #  - LVGL UI
285 266
 #
286 267
 [env:mks_robin_e3p]
287
-platform                    = ${common_stm32.platform}
288 268
 extends                     = stm32_variant
289 269
 board                       = genericSTM32F103VE
290 270
 board_build.variant         = MARLIN_F103Vx
@@ -301,7 +281,6 @@ upload_protocol             = jlink
301 281
 # JGAurora A5S A1 (STM32F103ZET6)
302 282
 #
303 283
 [env:jgaurora_a5s_a1]
304
-platform                    = ${common_stm32.platform}
305 284
 extends                     = stm32_variant
306 285
 board                       = genericSTM32F103ZE
307 286
 board_build.variant         = MARLIN_F103Zx
@@ -317,7 +296,6 @@ extra_scripts               = ${stm32_variant.extra_scripts}
317 296
 # FYSETC STM32F103RC
318 297
 #
319 298
 [env:STM32F103RC_fysetc]
320
-platform        = ${common_stm32.platform}
321 299
 extends         = common_STM32F103RC_variant
322 300
 extra_scripts   = ${common_STM32F103RC_variant.extra_scripts}
323 301
                   buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
@@ -329,10 +307,9 @@ upload_protocol = serial
329 307
 # Longer 3D board in Alfawise U20 (STM32F103VET6)
330 308
 #
331 309
 [env:STM32F103VE_longer]
332
-platform                    = ${common_stm32.platform}
310
+extends                     = stm32_variant
333 311
 lib_deps                    = ${common.lib_deps}
334 312
   https://github.com/tpruvot/STM32_Servo_OpenDrain/archive/2.0.zip
335
-extends                     = stm32_variant
336 313
 board                       = genericSTM32F103VE
337 314
 board_build.variant         = MARLIN_F103VE_LONGER
338 315
 board_build.rename          = project.bin
@@ -348,7 +325,6 @@ debug_tool                  = stlink
348 325
 # TRIGORILLA PRO (STM32F103ZET6)
349 326
 #
350 327
 [env:trigorilla_pro]
351
-platform             = ${stm32_variant.platform}
352 328
 extends              = stm32_variant
353 329
 board                = genericSTM32F103ZE
354 330
 board_build.variant  = MARLIN_F103Zx
@@ -361,7 +337,6 @@ build_unflags        = ${stm32_variant.build_unflags}
361 337
 # Chitu boards like Tronxy X5s (STM32F103ZET6)
362 338
 #
363 339
 [env:chitu_f103]
364
-platform             = ${common_stm32.platform}
365 340
 extends              = stm32_variant
366 341
 board                = genericSTM32F103ZE
367 342
 board_build.variant  = MARLIN_F103Zx
@@ -377,7 +352,6 @@ extra_scripts        = ${stm32_variant.extra_scripts}
377 352
 # Use this target if G28 or G29 are always failing.
378 353
 #
379 354
 [env:chitu_v5_gpio_init]
380
-platform      = ${common_stm32.platform}
381 355
 extends       = env:chitu_f103
382 356
 build_flags   = ${env:chitu_f103.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
383 357
 
@@ -389,7 +363,6 @@ build_flags   = ${env:chitu_f103.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
389 363
 #  STM32F103VE_ZM3E4V2_USB ......... VET6 with 512K
390 364
 #
391 365
 [ZONESTAR_ZM3E]
392
-platform                  = ${common_stm32.platform}
393 366
 extends                   = stm32_variant
394 367
 platform_packages         = ${stm_flash_drive.platform_packages}
395 368
 board_upload.offset_address = 0x08005000
@@ -401,20 +374,17 @@ build_flags               = ${common_stm32.build_flags}
401 374
 build_unflags             = ${stm32_variant.build_unflags} -DUSBD_USE_CDC
402 375
 
403 376
 [env:STM32F103RC_ZM3E2_USB]
404
-platform             = ${ZONESTAR_ZM3E.platform}
405 377
 extends              = ZONESTAR_ZM3E
406 378
 board                = genericSTM32F103RC
407 379
 board_build.variant  = MARLIN_F103Rx
408 380
 
409 381
 [env:STM32F103VC_ZM3E4_USB]
410
-platform             = ${ZONESTAR_ZM3E.platform}
411 382
 extends              = ZONESTAR_ZM3E
412 383
 board                = genericSTM32F103VC
413 384
 board_build.variant  = MARLIN_F103Vx
414 385
 build_flags          = ${ZONESTAR_ZM3E.build_flags} -DTIMER_TONE=TIM1
415 386
 
416 387
 [env:STM32F103VE_ZM3E4V2_USB]
417
-platform             = ${ZONESTAR_ZM3E.platform}
418 388
 extends              = ZONESTAR_ZM3E
419 389
 board                = genericSTM32F103VE
420 390
 board_build.variant  = MARLIN_F103Vx

+ 0
- 47
ini/stm32f4.ini View File

@@ -23,7 +23,6 @@
23 23
 # ARMED (STM32)
24 24
 #
25 25
 [env:ARMED]
26
-platform      = ${common_stm32.platform}
27 26
 extends       = common_stm32
28 27
 board         = armed_v1
29 28
 build_flags   = ${common_stm32.build_flags}
@@ -34,7 +33,6 @@ build_flags   = ${common_stm32.build_flags}
34 33
 # 'STEVAL-3DP001V1' STM32F401VE board - https://www.st.com/en/evaluation-tools/steval-3dp001v1.html
35 34
 #
36 35
 [env:STM32F401VE_STEVAL]
37
-platform          = ${common_stm32.platform}
38 36
 extends           = stm32_variant
39 37
 board             = marlin_STEVAL_STM32F401VE
40 38
 build_flags       = ${stm32_variant.build_flags}
@@ -45,7 +43,6 @@ build_flags       = ${stm32_variant.build_flags}
45 43
 # STM32F401RC
46 44
 #
47 45
 [env:FYSETC_CHEETAH_V20]
48
-platform           = ${common_stm32.platform}
49 46
 extends            = stm32_variant
50 47
 board              = marlin_FYSETC_CHEETAH_V20
51 48
 board_build.offset = 0x8000
@@ -55,7 +52,6 @@ build_flags        = ${stm32_variant.build_flags} -DSTM32F401xC
55 52
 # FLYF407ZG
56 53
 #
57 54
 [env:FLYF407ZG]
58
-platform            = ${common_stm32.platform}
59 55
 extends             = stm32_variant
60 56
 board               = marlin_STM32F407ZGT6
61 57
 board_build.variant = MARLIN_FLY_F407ZG
@@ -66,7 +62,6 @@ upload_protocol     = dfu
66 62
 # FYSETC S6 (STM32F446RET6 ARM Cortex-M4)
67 63
 #
68 64
 [env:FYSETC_S6]
69
-platform                    = ${common_stm32.platform}
70 65
 extends                     = stm32_variant
71 66
 board                       = marlin_fysetc_s6
72 67
 board_build.offset          = 0x10000
@@ -80,7 +75,6 @@ upload_command              = dfu-util -a 0 -s 0x08010000:leave -D "$SOURCE"
80 75
 # FYSETC S6 new bootloader
81 76
 #
82 77
 [env:FYSETC_S6_8000]
83
-platform                    = ${common_stm32.platform}
84 78
 extends                     = env:FYSETC_S6
85 79
 board                       = marlin_fysetc_s6
86 80
 board_build.offset          = 0x8000
@@ -93,7 +87,6 @@ upload_command              = dfu-util -a 0 -s 0x08008000:leave -D "$SOURCE"
93 87
 # Shield - https://github.com/jmz52/Hardware
94 88
 #
95 89
 [env:STM32F407VE_black]
96
-platform          = ${common_stm32.platform}
97 90
 extends           = stm32_variant
98 91
 board             = marlin_blackSTM32F407VET6
99 92
 build_flags       = ${stm32_variant.build_flags}
@@ -103,7 +96,6 @@ build_flags       = ${stm32_variant.build_flags}
103 96
 # STM32F407VET6 Index Mobo Rev 03
104 97
 #
105 98
 [env:Index_Mobo_Rev03]
106
-platform          = ${common_stm32.platform}
107 99
 extends           = stm32_variant
108 100
 board             = marlin_index_mobo_rev03
109 101
 build_flags       = ${stm32_variant.build_flags}
@@ -117,7 +109,6 @@ extra_scripts     = ${stm32_variant.extra_scripts}
117 109
 # Comment out board_build.offset = 0x10000 if you don't plan to use OpenBLT/flashing directly to 0x08000000.
118 110
 #
119 111
 [env:Anet_ET4_OpenBLT]
120
-platform                    = ${common_stm32.platform}
121 112
 extends                     = stm32_variant
122 113
 board                       = marlin_STM32F407VGT6_CCM
123 114
 board_build.variant         = MARLIN_F4x7Vx
@@ -137,7 +128,6 @@ upload_protocol             = jlink
137 128
 # BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
138 129
 #
139 130
 [env:BIGTREE_SKR_PRO]
140
-platform           = ${common_stm32.platform}
141 131
 extends            = stm32_variant
142 132
 board              = marlin_BigTree_SKR_Pro
143 133
 board_build.offset = 0x8000
@@ -149,7 +139,6 @@ upload_protocol    = stlink
149 139
 # BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4) with USB Flash Drive Support
150 140
 #
151 141
 [env:BIGTREE_SKR_PRO_usb_flash_drive]
152
-platform          = ${common_stm32.platform}
153 142
 extends           = env:BIGTREE_SKR_PRO
154 143
 platform_packages = ${stm_flash_drive.platform_packages}
155 144
 build_flags       = ${stm_flash_drive.build_flags} -DSTM32F407_5ZX
@@ -159,7 +148,6 @@ build_unflags     = ${env:BIGTREE_SKR_PRO.build_unflags} -DUSBCON -DUSBD_USE_CDC
159 148
 # BigTreeTech E3 RRF (STM32F407VGT6 ARM Cortex-M4)
160 149
 #
161 150
 [env:BIGTREE_E3_RRF]
162
-platform            = ${common_stm32.platform}
163 151
 extends             = stm32_variant
164 152
 board               = marlin_STM32F407VGT6_CCM
165 153
 board_build.variant = MARLIN_BIGTREE_E3_RRF
@@ -173,7 +161,6 @@ build_flags         = ${stm32_variant.build_flags}
173 161
 # Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
174 162
 #
175 163
 [env:BIGTREE_GTR_V1_0]
176
-platform           = ${common_stm32.platform}
177 164
 extends            = stm32_variant
178 165
 board              = marlin_BigTree_GTR_v1
179 166
 board_build.offset = 0x8000
@@ -183,7 +170,6 @@ build_flags        = ${stm32_variant.build_flags} -DSTM32F407IX
183 170
 # Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4) with USB Flash Drive Support
184 171
 #
185 172
 [env:BIGTREE_GTR_V1_0_usb_flash_drive]
186
-platform          = ${common_stm32.platform}
187 173
 extends           = env:BIGTREE_GTR_V1_0
188 174
 platform_packages = ${stm_flash_drive.platform_packages}
189 175
 build_flags       = ${stm_flash_drive.build_flags} -DSTM32F407IX
@@ -193,7 +179,6 @@ build_unflags     = ${env:BIGTREE_GTR_V1_0.build_unflags} -DUSBCON -DUSBD_USE_CD
193 179
 # BigTreeTech BTT002 V1.0 (STM32F407VGT6 ARM Cortex-M4)
194 180
 #
195 181
 [env:BIGTREE_BTT002]
196
-platform           = ${common_stm32.platform}
197 182
 extends            = stm32_variant
198 183
 board              = marlin_BigTree_BTT002
199 184
 board_build.offset = 0x8000
@@ -208,7 +193,6 @@ build_flags        = ${stm32_variant.build_flags}
208 193
 # BigTreeTech BTT002 V1.x with 512k of flash (STM32F407VET6 ARM Cortex-M4)
209 194
 #
210 195
 [env:BIGTREE_BTT002_VET6]
211
-platform          = ${env:BIGTREE_BTT002.platform}
212 196
 extends           = env:BIGTREE_BTT002
213 197
 board             = marlin_BigTree_BTT002_VET6
214 198
 
@@ -216,7 +200,6 @@ board             = marlin_BigTree_BTT002_VET6
216 200
 # BigTreeTech SKR V2.0 (STM32F407VGT6 ARM Cortex-M4) with USB Flash Drive Support
217 201
 #
218 202
 [env:BIGTREE_SKR_2]
219
-platform                    = ${common_stm32.platform}
220 203
 extends                     = stm32_variant
221 204
 platform_packages           = ${stm_flash_drive.platform_packages}
222 205
 board                       = marlin_STM32F407VGT6_CCM
@@ -234,13 +217,11 @@ upload_protocol             = stlink
234 217
 # BigTreeTech SKR V2.0 (STM32F407VGT6 ARM Cortex-M4) with USB Media Share Support
235 218
 #
236 219
 [env:BIGTREE_SKR_2_USB]
237
-platform          = ${common_stm32.platform}
238 220
 extends           = env:BIGTREE_SKR_2
239 221
 build_flags       = ${env:BIGTREE_SKR_2.build_flags} -DUSBD_USE_CDC_MSC
240 222
 build_unflags     = ${env:BIGTREE_SKR_2.build_unflags} -DUSBD_USE_CDC
241 223
 
242 224
 [env:BIGTREE_SKR_2_USB_debug]
243
-platform          = ${common_stm32.platform}
244 225
 extends           = env:BIGTREE_SKR_2_USB
245 226
 build_flags       = ${env:BIGTREE_SKR_2_USB.build_flags} -O0
246 227
 build_unflags     = ${env:BIGTREE_SKR_2_USB.build_unflags} -Os -NDEBUG
@@ -249,7 +230,6 @@ build_unflags     = ${env:BIGTREE_SKR_2_USB.build_unflags} -Os -NDEBUG
249 230
 # Bigtreetech SKR V2.0 F429 (STM32F429VGT6 ARM Cortex-M4) with USB Flash Drive Support
250 231
 #
251 232
 [env:BIGTREE_SKR_2_F429]
252
-platform                    = ${common_stm32.platform}
253 233
 extends                     = stm32_variant
254 234
 platform_packages           = ${stm_flash_drive.platform_packages}
255 235
 board                       = marlin_STM32F429VGT6
@@ -267,13 +247,11 @@ upload_protocol             = stlink
267 247
 # BigTreeTech SKR V2.0 F429 (STM32F429VGT6 ARM Cortex-M4) with USB Media Share Support
268 248
 #
269 249
 [env:BIGTREE_SKR_2_F429_USB]
270
-platform          = ${common_stm32.platform}
271 250
 extends           = env:BIGTREE_SKR_2_F429
272 251
 build_flags       = ${env:BIGTREE_SKR_2_F429.build_flags} -DUSBD_USE_CDC_MSC
273 252
 build_unflags     = ${env:BIGTREE_SKR_2_F429.build_unflags} -DUSBD_USE_CDC
274 253
 
275 254
 [env:BIGTREE_SKR_2_F429_USB_debug]
276
-platform          = ${common_stm32.platform}
277 255
 extends           = env:BIGTREE_SKR_2_F429_USB
278 256
 build_flags       = ${env:BIGTREE_SKR_2_F429_USB.build_flags} -O0
279 257
 build_unflags     = ${env:BIGTREE_SKR_2_F429_USB.build_unflags} -Os -NDEBUG
@@ -282,7 +260,6 @@ build_unflags     = ${env:BIGTREE_SKR_2_F429_USB.build_unflags} -Os -NDEBUG
282 260
 # BigTreeTech Octopus V1.0/1.1 / Octopus Pro V1.0 (STM32F446ZET6 ARM Cortex-M4)
283 261
 #
284 262
 [env:BIGTREE_OCTOPUS_V1]
285
-platform           = ${common_stm32.platform}
286 263
 extends            = stm32_variant
287 264
 board              = marlin_BigTree_Octopus_v1
288 265
 board_build.offset = 0x8000
@@ -293,7 +270,6 @@ build_flags        = ${stm32_variant.build_flags}
293 270
 # BigTreeTech Octopus V1.0/1.1 / Octopus Pro V1.0 (STM32F446ZET6 ARM Cortex-M4) with USB Flash Drive Support
294 271
 #
295 272
 [env:BIGTREE_OCTOPUS_V1_USB]
296
-platform          = ${common_stm32.platform}
297 273
 extends           = env:BIGTREE_OCTOPUS_V1
298 274
 platform_packages = ${stm_flash_drive.platform_packages}
299 275
 build_unflags     = -DUSBD_USE_CDC
@@ -307,7 +283,6 @@ build_flags       = ${stm_flash_drive.build_flags}
307 283
 # BigTreeTech Octopus Pro V1.0 (STM32F429ZGT6 ARM Cortex-M4)
308 284
 #
309 285
 [env:BIGTREE_OCTOPUS_PRO_V1_F429]
310
-platform           = ${common_stm32.platform}
311 286
 extends            = stm32_variant
312 287
 board              = marlin_BigTree_Octopus_Pro_v1_F429
313 288
 board_build.offset = 0x8000
@@ -318,7 +293,6 @@ build_flags        = ${stm32_variant.build_flags}
318 293
 # BigTreeTech Octopus Pro V1.0 (STM32F429ZGT6 ARM Cortex-M4) with USB Flash Drive Support
319 294
 #
320 295
 [env:BIGTREE_OCTOPUS_PRO_V1_F429_USB]
321
-platform          = ${common_stm32.platform}
322 296
 extends           = env:BIGTREE_OCTOPUS_PRO_V1_F429
323 297
 platform_packages = ${stm_flash_drive.platform_packages}
324 298
 build_unflags     = -DUSBD_USE_CDC
@@ -332,7 +306,6 @@ build_flags       = ${stm_flash_drive.build_flags}
332 306
 # Lerdge base
333 307
 #
334 308
 [lerdge_common]
335
-platform            = ${common_stm32.platform}
336 309
 extends             = stm32_variant
337 310
 board               = marlin_STM32F407ZGT6
338 311
 board_build.variant = MARLIN_LERDGE
@@ -349,7 +322,6 @@ extra_scripts       = ${common_stm32.extra_scripts}
349 322
 # Lerdge X (STM32F407VE)
350 323
 #
351 324
 [env:LERDGEX]
352
-platform            = ${lerdge_common.platform}
353 325
 extends             = lerdge_common
354 326
 board_build.encrypt = Lerdge_X_firmware_force.bin
355 327
 
@@ -357,7 +329,6 @@ board_build.encrypt = Lerdge_X_firmware_force.bin
357 329
 # Lerdge X with USB Flash Drive Support
358 330
 #
359 331
 [env:LERDGEX_usb_flash_drive]
360
-platform          = ${env:LERDGEX.platform}
361 332
 extends           = env:LERDGEX
362 333
 platform_packages = ${stm_flash_drive.platform_packages}
363 334
 build_flags       = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
@@ -366,7 +337,6 @@ build_flags       = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
366 337
 # Lerdge S (STM32F407ZG)
367 338
 #
368 339
 [env:LERDGES]
369
-platform            = ${lerdge_common.platform}
370 340
 extends             = lerdge_common
371 341
 board_build.encrypt = Lerdge_firmware_force.bin
372 342
 
@@ -374,7 +344,6 @@ board_build.encrypt = Lerdge_firmware_force.bin
374 344
 # Lerdge S with USB Flash Drive Support
375 345
 #
376 346
 [env:LERDGES_usb_flash_drive]
377
-platform          = ${env:LERDGES.platform}
378 347
 extends           = env:LERDGES
379 348
 platform_packages = ${stm_flash_drive.platform_packages}
380 349
 build_flags       = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
@@ -383,7 +352,6 @@ build_flags       = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
383 352
 # Lerdge K (STM32F407ZG)
384 353
 #
385 354
 [env:LERDGEK]
386
-platform            = ${lerdge_common.platform}
387 355
 extends             = lerdge_common
388 356
 board_build.encrypt = Lerdge_K_firmware_force.bin
389 357
 build_flags         = ${lerdge_common.build_flags} -DLERDGEK
@@ -392,7 +360,6 @@ build_flags         = ${lerdge_common.build_flags} -DLERDGEK
392 360
 # Lerdge K with USB Flash Drive Support
393 361
 #
394 362
 [env:LERDGEK_usb_flash_drive]
395
-platform          = ${env:LERDGEK.platform}
396 363
 extends           = env:LERDGEK
397 364
 platform_packages = ${stm_flash_drive.platform_packages}
398 365
 build_flags       = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
@@ -401,7 +368,6 @@ build_flags       = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
401 368
 # RUMBA32
402 369
 #
403 370
 [env:rumba32]
404
-platform             = ${common_stm32.platform}
405 371
 extends              = stm32_variant
406 372
 board                = rumba32_f446ve
407 373
 board_build.variant  = MARLIN_F446VE
@@ -418,7 +384,6 @@ upload_protocol      = dfu
418 384
 # MKS Robin Pro V2
419 385
 #
420 386
 [env:mks_robin_pro2]
421
-platform                    = ${common_stm32.platform}
422 387
 extends                     = stm32_variant
423 388
 platform_packages           = ${stm_flash_drive.platform_packages}
424 389
 board                       = genericSTM32F407VET6
@@ -440,7 +405,6 @@ build_flags = -DPIN_WIRE_SCL=PB6 -DPIN_WIRE_SDA=PB7
440 405
 # MKS Robin Nano V3
441 406
 #
442 407
 [env:mks_robin_nano_v3]
443
-platform                    = ${common_stm32.platform}
444 408
 extends                     = stm32_variant
445 409
 board                       = marlin_STM32F407VGT6_CCM
446 410
 board_build.variant         = MARLIN_F4x7Vx
@@ -457,7 +421,6 @@ upload_protocol             = jlink
457 421
 # Currently, using a STM32duino fork, until USB Host get merged
458 422
 #
459 423
 [env:mks_robin_nano_v3_usb_flash_drive]
460
-platform          = ${common_stm32.platform}
461 424
 extends           = env:mks_robin_nano_v3
462 425
 platform_packages = ${stm_flash_drive.platform_packages}
463 426
 build_flags       = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
@@ -471,7 +434,6 @@ build_flags       = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
471 434
 # Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
472 435
 #
473 436
 [env:mks_robin_nano_v3_usb_flash_drive_msc]
474
-platform          = ${common_stm32.platform}
475 437
 extends           = env:mks_robin_nano_v3_usb_flash_drive
476 438
 build_flags       = ${env:mks_robin_nano_v3_usb_flash_drive.build_flags}
477 439
                     -DUSBD_USE_CDC_MSC
@@ -482,7 +444,6 @@ build_unflags     = -DUSBD_USE_CDC
482 444
 # 5 TMC2209 uart mode on board
483 445
 #
484 446
 [env:mks_eagle]
485
-platform                    = ${common_stm32.platform}
486 447
 extends                     = stm32_variant
487 448
 board                       = marlin_STM32F407VGT6_CCM
488 449
 board_build.variant         = MARLIN_F4x7Vx
@@ -500,7 +461,6 @@ upload_protocol             = jlink
500 461
 # Currently, using a STM32duino fork, until USB Host get merged
501 462
 #
502 463
 [env:mks_eagle_usb_flash_drive]
503
-platform          = ${common_stm32.platform}
504 464
 extends           = env:mks_eagle
505 465
 platform_packages = ${stm_flash_drive.platform_packages}
506 466
 build_flags       = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
@@ -514,7 +474,6 @@ build_flags       = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
514 474
 # Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
515 475
 #
516 476
 [env:mks_eagle_usb_flash_drive_msc]
517
-platform          = ${common_stm32.platform}
518 477
 extends           = env:mks_eagle_usb_flash_drive
519 478
 build_flags       = ${env:mks_eagle_usb_flash_drive.build_flags}
520 479
                     -DUSBD_USE_CDC_MSC
@@ -530,7 +489,6 @@ build_flags = -DPIN_WIRE_SCL=PB8 -DPIN_WIRE_SDA=PB9
530 489
 # MKS Monster8
531 490
 #
532 491
 [env:mks_monster8]
533
-platform                    = ${common_stm32.platform}
534 492
 extends                     = stm32_variant
535 493
 board                       = marlin_STM32F407VGT6_CCM
536 494
 board_build.variant         = MARLIN_F4x7Vx
@@ -548,7 +506,6 @@ upload_protocol             = jlink
548 506
 # Currently, using a STM32duino fork, until USB Host get merged
549 507
 #
550 508
 [env:mks_monster8_usb_flash_drive]
551
-platform          = ${common_stm32.platform}
552 509
 extends           = env:mks_monster8
553 510
 platform_packages = ${stm_flash_drive.platform_packages}
554 511
 build_flags       = ${stm_flash_drive.build_flags} ${stm32f4_I2C1_CAN.build_flags}
@@ -562,7 +519,6 @@ build_flags       = ${stm_flash_drive.build_flags} ${stm32f4_I2C1_CAN.build_flag
562 519
 # Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
563 520
 #
564 521
 [env:mks_monster8_usb_flash_drive_msc]
565
-platform          = ${common_stm32.platform}
566 522
 extends           = env:mks_monster8_usb_flash_drive
567 523
 build_flags       = ${env:mks_monster8_usb_flash_drive.build_flags}
568 524
                     -DUSBD_USE_CDC_MSC
@@ -572,7 +528,6 @@ build_unflags     = -DUSBD_USE_CDC
572 528
 # TH3D EZBoard v2.0 (STM32F405RGT6 ARM Cortex-M4)
573 529
 #
574 530
 [env:TH3D_EZBoard_V2]
575
-platform            = ${common_stm32.platform}
576 531
 extends             = stm32_variant
577 532
 board               = genericSTM32F405RG
578 533
 board_build.variant = MARLIN_TH3D_EZBOARD_V2
@@ -588,7 +543,6 @@ upload_protocol     = stlink
588 543
 #  - MKS Robin Nano-S V1.3 (STM32F407VET6) 4 TMC2225 + 1 Pololu Plug
589 544
 #
590 545
 [env:mks_robin_nano_v1_3_f4]
591
-platform                    = ${common_stm32.platform}
592 546
 extends                     = stm32_variant
593 547
 board                       = marlin_STM32F407VGT6_CCM
594 548
 board_build.variant         = MARLIN_F4x7Vx
@@ -610,7 +564,6 @@ upload_protocol             = jlink
610 564
 # Artillery Ruby
611 565
 #
612 566
 [env:Artillery_Ruby]
613
-platform          = ${common_stm32.platform}
614 567
 extends           = common_stm32
615 568
 board             = marlin_Artillery_Ruby
616 569
 build_flags       = ${common_stm32.build_flags}

+ 0
- 2
ini/stm32f7.ini View File

@@ -25,7 +25,6 @@
25 25
 # being readily available based on STM32F7 MCUs
26 26
 #
27 27
 [env:NUCLEO_F767ZI]
28
-platform      = ${common_stm32.platform}
29 28
 extends       = common_stm32
30 29
 board         = nucleo_f767zi
31 30
 build_flags   = ${common_stm32.build_flags} -DTIMER_SERIAL=TIM9
@@ -34,6 +33,5 @@ build_flags   = ${common_stm32.build_flags} -DTIMER_SERIAL=TIM9
34 33
 # REMRAM_V1
35 34
 #
36 35
 [env:REMRAM_V1]
37
-platform      = ${common_stm32.platform}
38 36
 extends       = common_stm32
39 37
 board         = remram_v1

+ 12
- 12
ini/stm32g0.ini View File

@@ -23,17 +23,17 @@
23 23
 # BigTree SKR mini E3 V3.0 (STM32G0B1RET6 ARM Cortex-M0+)
24 24
 #
25 25
 [env:STM32G0B1RE_btt]
26
-platform          = ststm32@~14.1.0
27
-platform_packages = framework-arduinoststm32@https://github.com/stm32duino/Arduino_Core_STM32/archive/main.zip
28
-extends            = stm32_variant
29
-board              = marlin_STM32G0B1RE
26
+extends                     = stm32_variant
27
+platform                    = ststm32@~14.1.0
28
+platform_packages           = framework-arduinoststm32@https://github.com/stm32duino/Arduino_Core_STM32/archive/main.zip
29
+board                       = marlin_STM32G0B1RE
30 30
 board_build.offset          = 0x2000
31 31
 board_upload.offset_address = 0x08002000
32
-build_flags        = ${stm32_variant.build_flags}
33
-                   -DADC_RESOLUTION=12
34
-                   -DPIN_SERIAL4_RX=PC_11 -DPIN_SERIAL4_TX=PC_10
35
-                   -DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
36
-                   -DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
37
-                   -DSTEP_TIMER_IRQ_PRIO=0
38
-upload_protocol   = stlink
39
-debug_tool        = stlink
32
+build_flags                 = ${stm32_variant.build_flags}
33
+                            -DADC_RESOLUTION=12
34
+                            -DPIN_SERIAL4_RX=PC_11 -DPIN_SERIAL4_TX=PC_10
35
+                            -DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
36
+                            -DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
37
+                            -DSTEP_TIMER_IRQ_PRIO=0
38
+upload_protocol             = stlink
39
+debug_tool                  = stlink

+ 0
- 1
ini/stm32h7.ini View File

@@ -23,7 +23,6 @@
23 23
 # BigTreeTech SKR SE BX (STM32H743IIT6 ARM Cortex-M7)
24 24
 #
25 25
 [env:BTT_SKR_SE_BX]
26
-platform           = ${common_stm32.platform}
27 26
 extends            = stm32_variant
28 27
 platform_packages  = framework-arduinoststm32@https://github.com/thisiskeithb/Arduino_Core_STM32/archive/biqu-bx-workaround.zip
29 28
 board              = marlin_BTT_SKR_SE_BX

+ 35
- 24
ini/teensy.ini View File

@@ -10,60 +10,71 @@
10 10
 #################################
11 11
 
12 12
 #
13
+# Teensy AVR
14
+#
15
+[teensy_avr]
16
+platform          = teensy
17
+platform_packages = toolchain-atmelavr@~1.70300.0
18
+extends           = common_avr8
19
+lib_ignore        = ${env:common_avr8.lib_ignore}, NativeEthernet
20
+
21
+#
13 22
 # AT90USB1286 boards using CDC bootloader
14 23
 # e.g., BRAINWAVE, BRAINWAVE_PRO, SAV_MKI, TEENSYLU
15 24
 #
16 25
 [env:at90usb1286_cdc]
17
-platform   = teensy
18
-extends    = common_avr8
26
+extends    = teensy_avr
19 27
 board      = marlin_at90usb1286
20
-lib_ignore = ${env:common_avr8.lib_ignore}, Teensy_ADC, NativeEthernet
28
+lib_ignore = ${teensy_avr.lib_ignore}, Teensy_ADC
21 29
 
22 30
 #
23 31
 # AT90USB1286 boards using DFU bootloader
24 32
 # e.g., Printrboard, Printrboard Rev.F, 5DPRINT
25 33
 #
26 34
 [env:at90usb1286_dfu]
27
-platform = teensy
28
-extends  = env:at90usb1286_cdc
35
+extends = env:at90usb1286_cdc
29 36
 
30 37
 #
31 38
 # Teensy++ 2.0
32 39
 #
33 40
 [env:teensy20]
34
-platform   = teensy
35
-extends    = common_avr8
36
-board      = teensy2pp
37
-lib_ignore = ${env:common_avr8.lib_ignore}, NativeEthernet
41
+extends = teensy_avr
42
+board   = teensy2pp
43
+
44
+#
45
+# Teensy 3.x - 4.x
46
+#
47
+[teensy_arm]
48
+platform   = teensy@~4.12.0
49
+src_filter = ${common.default_src_filter}
50
+lib_ignore = NativeEthernet
38 51
 
39 52
 #
40 53
 # Teensy 3.1 / 3.2 (ARM Cortex-M4)
41 54
 #
42 55
 [env:teensy31]
43
-platform      = teensy@~4.12.0
44
-board         = teensy31
45
-src_filter    = ${common.default_src_filter} +<src/HAL/TEENSY31_32>
46
-lib_ignore    = NativeEthernet
56
+extends    = teensy_arm
57
+board      = teensy31
58
+src_filter = ${teensy_arm.src_filter} +<src/HAL/TEENSY31_32>
47 59
 
48 60
 #
49 61
 # Teensy 3.5 / 3.6 (ARM Cortex-M4)
50 62
 #
51 63
 [env:teensy35]
52
-platform      = teensy@~4.12.0
53
-board         = teensy35
54
-src_filter    = ${common.default_src_filter} +<src/HAL/TEENSY35_36>
55
-lib_ignore    = NativeEthernet
64
+extends    = teensy_arm
65
+board      = teensy35
66
+src_filter = ${teensy_arm.src_filter} +<src/HAL/TEENSY35_36>
56 67
 
57 68
 [env:teensy36]
58
-platform      = teensy@~4.12.0
59
-board         = teensy36
60
-src_filter    = ${common.default_src_filter} +<src/HAL/TEENSY35_36>
61
-lib_ignore    = NativeEthernet
69
+extends    = teensy_arm
70
+board      = teensy36
71
+src_filter = ${teensy_arm.src_filter} +<src/HAL/TEENSY35_36>
62 72
 
63 73
 #
64 74
 # Teensy 4.0 / 4.1 (ARM Cortex-M7)
65 75
 #
66 76
 [env:teensy41]
67
-platform      = teensy@~4.12.0
68
-board         = teensy41
69
-src_filter    = ${common.default_src_filter} +<src/HAL/TEENSY40_41>
77
+extends    = teensy_arm
78
+board      = teensy41
79
+src_filter = ${teensy_arm.src_filter} +<src/HAL/TEENSY40_41>
80
+lib_ignore =

Loading…
Cancel
Save