Browse Source

Expand environments in platformio.ini

Scott Lahteine 5 years ago
parent
commit
6134bff81b
3 changed files with 223 additions and 78 deletions
  1. 1
    1
      .travis.yml
  2. 1
    1
      Marlin/src/pins/pins.h
  3. 221
    76
      platformio.ini

+ 1
- 1
.travis.yml View File

18
   - TEST_PLATFORM="teensy35"
18
   - TEST_PLATFORM="teensy35"
19
 
19
 
20
   # Extended AVR Environments
20
   # Extended AVR Environments
21
-  - TEST_PLATFORM="fysetc_f6_13"
21
+  - TEST_PLATFORM="FYSETC_F6_13"
22
   - TEST_PLATFORM="megaatmega1280"
22
   - TEST_PLATFORM="megaatmega1280"
23
   - TEST_PLATFORM="rambo"
23
   - TEST_PLATFORM="rambo"
24
   - TEST_PLATFORM="sanguino_atmega1284p"
24
   - TEST_PLATFORM="sanguino_atmega1284p"

+ 1
- 1
Marlin/src/pins/pins.h View File

169
 #elif MB(RAMPS_DAGOMA)
169
 #elif MB(RAMPS_DAGOMA)
170
   #include "ramps/pins_RAMPS_DAGOMA.h"          // ATmega2560                             env:megaatmega2560
170
   #include "ramps/pins_RAMPS_DAGOMA.h"          // ATmega2560                             env:megaatmega2560
171
 #elif MB(FYSETC_F6_13)
171
 #elif MB(FYSETC_F6_13)
172
-  #include "ramps/pins_FYSETC_F6_13.h"          // ATmega2560                             env:fysetc_f6_13
172
+  #include "ramps/pins_FYSETC_F6_13.h"          // ATmega2560                             env:FYSETC_F6_13
173
 #elif MB(DUPLICATOR_I3_PLUS)
173
 #elif MB(DUPLICATOR_I3_PLUS)
174
   #include "ramps/pins_DUPLICATOR_I3_PLUS.h"    // ATmega2560                             env:megaatmega2560
174
   #include "ramps/pins_DUPLICATOR_I3_PLUS.h"    // ATmega2560                             env:megaatmega2560
175
 #elif MB(VORON)
175
 #elif MB(VORON)

+ 221
- 76
platformio.ini View File

69
 # ATmega1280
69
 # ATmega1280
70
 #
70
 #
71
 [env:megaatmega1280]
71
 [env:megaatmega1280]
72
-extends           = env:megaatmega2560
72
+platform          = atmelavr
73
 board             = megaatmega1280
73
 board             = megaatmega1280
74
+board_build.f_cpu = 16000000L
75
+lib_deps          = ${common.lib_deps}
76
+  TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
77
+src_filter        = ${common.default_src_filter} +<src/HAL/HAL_AVR>
78
+monitor_speed     = 250000
74
 
79
 
75
 #
80
 #
76
 # RAMBo
81
 # RAMBo
77
 #
82
 #
78
 [env:rambo]
83
 [env:rambo]
79
-extends           = env:megaatmega2560
84
+platform          = atmelavr
80
 board             = reprap_rambo
85
 board             = reprap_rambo
86
+board_build.f_cpu = 16000000L
87
+lib_deps          = ${common.lib_deps}
88
+  TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
89
+src_filter        = ${common.default_src_filter} +<src/HAL/HAL_AVR>
90
+monitor_speed     = 250000
81
 
91
 
82
 #
92
 #
83
 # FYSETC F6 V1.3
93
 # FYSETC F6 V1.3
84
 #
94
 #
85
-[env:fysetc_f6_13]
86
-extends           = env:megaatmega2560
95
+[env:FYSETC_F6_13]
96
+platform          = atmelavr
87
 board             = fysetc_f6_13
97
 board             = fysetc_f6_13
98
+board_build.f_cpu = 16000000L
99
+lib_deps          = ${common.lib_deps}
100
+  TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
101
+src_filter        = ${common.default_src_filter} +<src/HAL/HAL_AVR>
102
+monitor_speed     = 250000
88
 
103
 
89
 #
104
 #
90
 # Sanguinololu (ATmega644p)
105
 # Sanguinololu (ATmega644p)
101
 # Sanguinololu (ATmega1284p)
116
 # Sanguinololu (ATmega1284p)
102
 #
117
 #
103
 [env:sanguino_atmega1284p]
118
 [env:sanguino_atmega1284p]
104
-extends       = env:sanguino_atmega644p
119
+platform      = atmelavr
105
 board         = sanguino_atmega1284p
120
 board         = sanguino_atmega1284p
121
+lib_deps      = ${common.lib_deps}
122
+  TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
123
+src_filter    = ${common.default_src_filter} +<src/HAL/HAL_AVR>
124
+monitor_speed = 250000
106
 
125
 
107
 #
126
 #
108
 # Melzi and clones (ATmega1284p)
127
 # Melzi and clones (ATmega1284p)
109
 #
128
 #
110
 [env:melzi]
129
 [env:melzi]
111
-extends       = env:sanguino_atmega1284p
130
+platform      = atmelavr
131
+board         = sanguino_atmega644p
132
+lib_deps      = ${common.lib_deps}
133
+  TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
134
+src_filter    = ${common.default_src_filter} +<src/HAL/HAL_AVR>
135
+monitor_speed = 250000
112
 build_flags   = ${common.build_flags}
136
 build_flags   = ${common.build_flags}
113
 lib_ignore    = TMCStepper
137
 lib_ignore    = TMCStepper
114
 upload_speed  = 57600
138
 upload_speed  = 57600
117
 # Melzi and clones (Optiboot bootloader)
141
 # Melzi and clones (Optiboot bootloader)
118
 #
142
 #
119
 [env:melzi_optiboot]
143
 [env:melzi_optiboot]
120
-extends       = env:melzi
144
+platform      = atmelavr
145
+board         = sanguino_atmega644p
146
+lib_deps      = ${common.lib_deps}
147
+  TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
148
+src_filter    = ${common.default_src_filter} +<src/HAL/HAL_AVR>
149
+monitor_speed = 250000
150
+build_flags   = ${common.build_flags}
151
+lib_ignore    = TMCStepper
121
 upload_speed  = 115200
152
 upload_speed  = 115200
122
 
153
 
123
 #
154
 #
142
 # - ? 5DPRINT ?
173
 # - ? 5DPRINT ?
143
 #
174
 #
144
 [env:at90usb1286_dfu]
175
 [env:at90usb1286_dfu]
145
-extends       = env:at90usb1286_cdc
176
+platform      = teensy
177
+board         = at90usb1286
178
+lib_deps      = ${common.lib_deps}
179
+  TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
180
+src_filter    = ${common.default_src_filter} +<src/HAL/HAL_AVR>
181
+monitor_speed = 250000
146
 
182
 
147
 #
183
 #
148
 # Due (Atmel SAM3X8E ARM Cortex-M3)
184
 # Due (Atmel SAM3X8E ARM Cortex-M3)
157
 monitor_speed = 250000
193
 monitor_speed = 250000
158
 
194
 
159
 [env:DUE_USB]
195
 [env:DUE_USB]
160
-extends       = env:DUE
196
+platform      = atmelsam
161
 board         = dueUSB
197
 board         = dueUSB
198
+src_filter    = ${common.default_src_filter} +<src/HAL/HAL_DUE>
199
+monitor_speed = 250000
162
 
200
 
163
 [env:DUE_debug]
201
 [env:DUE_debug]
164
 # Used when WATCHDOG_RESET_MANUAL is enabled
202
 # Used when WATCHDOG_RESET_MANUAL is enabled
165
-extends       = env:DUE
203
+platform      = atmelsam
204
+board         = due
205
+src_filter    = ${common.default_src_filter} +<src/HAL/HAL_DUE>
206
+monitor_speed = 250000
166
 build_flags   = ${common.build_flags}
207
 build_flags   = ${common.build_flags}
167
   -funwind-tables
208
   -funwind-tables
168
   -mpoke-function-name
209
   -mpoke-function-name
190
   SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
231
   SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
191
 
232
 
192
 [env:LPC1769]
233
 [env:LPC1769]
193
-extends           = env:LPC1768
234
+platform          = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.2.zip
194
 board             = nxp_lpc1769
235
 board             = nxp_lpc1769
195
-
196
-#
197
-# STM32F1 base
198
-#
199
-[env:STM32F1_base]
200
-platform      = ststm32
201
-build_flags   = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
202
-  ${common.build_flags} -std=gnu++14
203
-build_unflags = -std=gnu++11
204
-src_filter    = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
205
-lib_ignore    = Adafruit NeoPixel, SPI
206
-monitor_speed = 250000
236
+build_flags       = -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
237
+# debug options for backtrace
238
+#  -funwind-tables
239
+#  -mpoke-function-name
240
+lib_ldf_mode      = off
241
+lib_compat_mode   = strict
242
+extra_scripts     = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
243
+src_filter        = ${common.default_src_filter} +<src/HAL/HAL_LPC1768>
244
+monitor_speed     = 250000
245
+lib_deps          = Servo
246
+  LiquidCrystal
247
+  U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip
248
+  TMCStepper@>=0.6.1,<1.0.0
249
+  Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/release.zip
250
+  SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
207
 
251
 
208
 #
252
 #
209
 # STM32F103RC
253
 # STM32F103RC
210
 #
254
 #
211
-[env:STM32F103RC_base]
212
-extends           = env:STM32F1_base
255
+[env:STM32F103RC]
256
+platform          = ststm32
213
 board             = genericSTM32F103RC
257
 board             = genericSTM32F103RC
214
 platform_packages = tool-stm32duino
258
 platform_packages = tool-stm32duino
259
+build_flags       = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
260
+  ${common.build_flags} -std=gnu++14
261
+build_unflags     = -std=gnu++11
262
+src_filter        = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
215
 lib_deps          = ${common.lib_deps}
263
 lib_deps          = ${common.lib_deps}
216
   SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
264
   SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
265
+lib_ignore        = Adafruit NeoPixel, SPI
217
 monitor_speed     = 115200
266
 monitor_speed     = 115200
218
 
267
 
219
 #
268
 #
220
 # STM32F103RC_fysetc
269
 # STM32F103RC_fysetc
221
 #
270
 #
222
 [env:STM32F103RC_fysetc]
271
 [env:STM32F103RC_fysetc]
223
-extends           = env:STM32F103RC_base
272
+platform          = ststm32
273
+board             = genericSTM32F103RC
224
 #board_build.core = maple
274
 #board_build.core = maple
225
-extra_scripts     = buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
275
+platform_packages = tool-stm32duino
226
 build_flags       = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
276
 build_flags       = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
227
   ${common.build_flags} -std=gnu++14 -DDEBUG_LEVEL=0 -DHAVE_SW_SERIAL
277
   ${common.build_flags} -std=gnu++14 -DDEBUG_LEVEL=0 -DHAVE_SW_SERIAL
278
+build_unflags     = -std=gnu++11
279
+extra_scripts     = buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
280
+src_filter        = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
281
+lib_deps          = ${common.lib_deps}
282
+  SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
283
+lib_ignore        = Adafruit NeoPixel, SPI
228
 lib_ldf_mode      = chain
284
 lib_ldf_mode      = chain
229
 debug_tool        = stlink
285
 debug_tool        = stlink
230
 upload_protocol   = serial
286
 upload_protocol   = serial
240
 #
296
 #
241
 
297
 
242
 [env:STM32F103RC_bigtree]
298
 [env:STM32F103RC_bigtree]
243
-extends           = env:STM32F103RC_base
244
-extra_scripts     = buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
299
+platform          = ststm32
300
+board             = genericSTM32F103RC
301
+platform_packages = tool-stm32duino
245
 build_flags       = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
302
 build_flags       = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
246
   ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4
303
   ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4
304
+build_unflags     = -std=gnu++11
305
+extra_scripts     = buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
306
+src_filter        = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
307
+lib_deps          = ${common.lib_deps}
308
+  SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
309
+lib_ignore        = Adafruit NeoPixel, SPI
310
+monitor_speed     = 115200
247
 
311
 
248
 [env:STM32F103RC_bigtree_USB]
312
 [env:STM32F103RC_bigtree_USB]
249
-extends           = env:STM32F103RC_bigtree
313
+platform          = ststm32
314
+board             = genericSTM32F103RC
315
+platform_packages = tool-stm32duino
250
 build_flags       = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
316
 build_flags       = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
251
   ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4 -DUSE_USB_COMPOSITE
317
   ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4 -DUSE_USB_COMPOSITE
318
+build_unflags     = -std=gnu++11
319
+extra_scripts     = buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
320
+src_filter        = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
321
+lib_deps          = ${common.lib_deps}
322
+  SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
323
+lib_ignore        = Adafruit NeoPixel, SPI
324
+monitor_speed     = 115200
252
 
325
 
253
 [env:STM32F103RC_bigtree_512K]
326
 [env:STM32F103RC_bigtree_512K]
254
-extends           = env:STM32F103RC_bigtree
327
+platform          = ststm32
328
+board             = genericSTM32F103RC
255
 board_upload.maximum_size=524288
329
 board_upload.maximum_size=524288
330
+platform_packages = tool-stm32duino
256
 build_flags       = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
331
 build_flags       = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
257
   ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4 -DSTM32_FLASH_SIZE=512
332
   ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4 -DSTM32_FLASH_SIZE=512
333
+build_unflags     = -std=gnu++11
334
+extra_scripts     = buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
335
+src_filter        = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
336
+lib_deps          = ${common.lib_deps}
337
+  SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
338
+lib_ignore        = Adafruit NeoPixel, SPI
339
+monitor_speed     = 115200
258
 
340
 
259
 [env:STM32F103RC_bigtree_512K_USB]
341
 [env:STM32F103RC_bigtree_512K_USB]
260
-extends           = env:STM32F103RC_bigtree_512K
342
+platform          = ststm32
343
+board             = genericSTM32F103RC
261
 board_upload.maximum_size=524288
344
 board_upload.maximum_size=524288
345
+platform_packages = tool-stm32duino
262
 build_flags       = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
346
 build_flags       = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
263
   ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4 -DSTM32_FLASH_SIZE=512 -DUSE_USB_COMPOSITE
347
   ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4 -DSTM32_FLASH_SIZE=512 -DUSE_USB_COMPOSITE
264
-
265
-#
266
-# STM32F103RE_base
267
-#
268
-[env:STM32F103RE_base]
269
-extends           = env:STM32F1_base
270
-board             = genericSTM32F103RE
271
-platform_packages = tool-stm32duino
348
+build_unflags     = -std=gnu++11
349
+extra_scripts     = buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
350
+src_filter        = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
272
 lib_deps          = ${common.lib_deps}
351
 lib_deps          = ${common.lib_deps}
273
   SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
352
   SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
353
+lib_ignore        = Adafruit NeoPixel, SPI
274
 monitor_speed     = 115200
354
 monitor_speed     = 115200
275
 
355
 
276
 #
356
 #
277
 # STM32F103RE
357
 # STM32F103RE
278
 #
358
 #
279
 [env:STM32F103RE]
359
 [env:STM32F103RE]
280
-extends           = env:STM32F103RE_base
360
+platform          = ststm32
361
+board             = genericSTM32F103RE
362
+platform_packages = tool-stm32duino
363
+build_flags       = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
364
+  ${common.build_flags} -std=gnu++14
365
+build_unflags     = -std=gnu++11
366
+src_filter        = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
367
+lib_deps          = ${common.lib_deps}
368
+  SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
369
+lib_ignore        = Adafruit NeoPixel, SPI
370
+monitor_speed     = 115200
281
 
371
 
282
 #
372
 #
283
 #   STM32F103RE_bigtree ............. RET6
373
 #   STM32F103RE_bigtree ............. RET6
284
 #   STM32F103RE_bigtree_USB ......... RET6 (USB)
374
 #   STM32F103RE_bigtree_USB ......... RET6 (USB)
285
 #
375
 #
286
 [env:STM32F103RE_bigtree]
376
 [env:STM32F103RE_bigtree]
287
-extends           = env:STM32F103RE_base
288
-extra_scripts     = buildroot/share/PlatformIO/scripts/STM32F103RE_SKR_E3_DIP.py
377
+platform          = ststm32
378
+board             = genericSTM32F103RE
379
+platform_packages = tool-stm32duino
289
 build_flags       = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
380
 build_flags       = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
290
   ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4
381
   ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4
382
+build_unflags     = -std=gnu++11
383
+extra_scripts     = buildroot/share/PlatformIO/scripts/STM32F103RE_SKR_E3_DIP.py
384
+src_filter        = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
385
+lib_deps          = ${common.lib_deps}
386
+  SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
387
+lib_ignore        = Adafruit NeoPixel, SPI
291
 debug_tool        = stlink
388
 debug_tool        = stlink
292
 upload_protocol   = stlink
389
 upload_protocol   = stlink
390
+monitor_speed     = 115200
293
 
391
 
294
 [env:STM32F103RE_bigtree_USB]
392
 [env:STM32F103RE_bigtree_USB]
295
-extends           = env:STM32F103RE_bigtree
393
+platform          = ststm32
394
+board             = genericSTM32F103RE
395
+platform_packages = tool-stm32duino
296
 build_flags       = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
396
 build_flags       = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
297
   ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4 -DUSE_USB_COMPOSITE
397
   ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4 -DUSE_USB_COMPOSITE
398
+build_unflags     = -std=gnu++11
399
+extra_scripts     = buildroot/share/PlatformIO/scripts/STM32F103RE_SKR_E3_DIP.py
400
+src_filter        = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
401
+lib_deps          = ${common.lib_deps}
402
+  SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
403
+lib_ignore        = Adafruit NeoPixel, SPI
404
+debug_tool        = stlink
405
+upload_protocol   = stlink
406
+monitor_speed     = 115200
298
 
407
 
299
 #
408
 #
300
 # STM32F4 with STM32GENERIC
409
 # STM32F4 with STM32GENERIC
336
 # Longer 3D board in Alfawise U20 (STM32F103VET6)
445
 # Longer 3D board in Alfawise U20 (STM32F103VET6)
337
 #
446
 #
338
 [env:STM32F103VE_longer]
447
 [env:STM32F103VE_longer]
339
-extends       = env:STM32F1_base
448
+platform      = ststm32
340
 board         = genericSTM32F103VE
449
 board         = genericSTM32F103VE
341
-extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103VE_longer.py
342
 build_flags   = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
450
 build_flags   = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
343
   ${common.build_flags} -std=gnu++14 -USERIAL_USB
451
   ${common.build_flags} -std=gnu++14 -USERIAL_USB
344
   -DSTM32F1xx -DU20 -DTS_V12
452
   -DSTM32F1xx -DU20 -DTS_V12
345
 build_unflags = -std=gnu++11 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
453
 build_unflags = -std=gnu++11 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
454
+extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103VE_longer.py
455
+src_filter    = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
346
 lib_ignore    = Adafruit NeoPixel, LiquidTWI2, SPI
456
 lib_ignore    = Adafruit NeoPixel, LiquidTWI2, SPI
457
+monitor_speed = 250000
347
 
458
 
348
 #
459
 #
349
 # MKS Robin (STM32F103ZET6)
460
 # MKS Robin (STM32F103ZET6)
350
 #
461
 #
351
 [env:mks_robin]
462
 [env:mks_robin]
352
-extends       = env:STM32F1_base
463
+platform      = ststm32
353
 board         = genericSTM32F103ZE
464
 board         = genericSTM32F103ZE
354
-extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin.py
355
 build_flags   = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
465
 build_flags   = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
356
   ${common.build_flags} -std=gnu++14 -DSTM32_XL_DENSITY
466
   ${common.build_flags} -std=gnu++14 -DSTM32_XL_DENSITY
467
+build_unflags = -std=gnu++11
468
+extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin.py
469
+src_filter    = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
470
+lib_ignore    = Adafruit NeoPixel, SPI
471
+monitor_speed = 250000
357
 
472
 
358
 #
473
 #
359
 # MKS Robin Lite/Lite2 (STM32F103RCT6)
474
 # MKS Robin Lite/Lite2 (STM32F103RCT6)
360
 #
475
 #
361
 [env:mks_robin_lite]
476
 [env:mks_robin_lite]
362
-extends       = env:STM32F1_base
477
+platform      = ststm32
363
 board         = genericSTM32F103RC
478
 board         = genericSTM32F103RC
479
+build_flags   = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
480
+  ${common.build_flags} -std=gnu++14
481
+build_unflags = -std=gnu++11
364
 extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_lite.py
482
 extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_lite.py
483
+src_filter    = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
484
+lib_ignore    = Adafruit NeoPixel, SPI
485
+monitor_speed = 250000
365
 
486
 
366
 #
487
 #
367
 # MKS Robin Mini (STM32F103VET6)
488
 # MKS Robin Mini (STM32F103VET6)
368
 #
489
 #
369
 [env:mks_robin_mini]
490
 [env:mks_robin_mini]
370
-extends       = env:STM32F1_base
491
+platform      = ststm32
371
 board         = genericSTM32F103VE
492
 board         = genericSTM32F103VE
493
+build_flags   = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
494
+  ${common.build_flags} -std=gnu++14
495
+build_unflags = -std=gnu++11
372
 extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_mini.py
496
 extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_mini.py
497
+src_filter    = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
498
+lib_ignore    = Adafruit NeoPixel, SPI
499
+monitor_speed = 250000
373
 
500
 
374
 #
501
 #
375
 # MKS Robin Nano (STM32F103VET6)
502
 # MKS Robin Nano (STM32F103VET6)
376
 #
503
 #
377
 [env:mks_robin_nano]
504
 [env:mks_robin_nano]
378
-extends       = env:STM32F1_base
505
+platform      = ststm32
379
 board         = genericSTM32F103VE
506
 board         = genericSTM32F103VE
507
+build_flags   = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
508
+  ${common.build_flags} -std=gnu++14
509
+build_unflags = -std=gnu++11
380
 extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_nano.py
510
 extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_nano.py
511
+src_filter    = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
512
+lib_ignore    = Adafruit NeoPixel, SPI
513
+monitor_speed = 250000
381
 
514
 
382
 #
515
 #
383
 # JGAurora A5S A1 (STM32F103ZET6)
516
 # JGAurora A5S A1 (STM32F103ZET6)
384
 #
517
 #
385
 [env:jgaurora_a5s_a1]
518
 [env:jgaurora_a5s_a1]
386
-extends       = env:STM32F1_base
519
+platform      = ststm32
387
 board         = genericSTM32F103ZE
520
 board         = genericSTM32F103ZE
388
-extra_scripts = buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
389
 build_flags   = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
521
 build_flags   = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
390
   ${common.build_flags} -DSTM32F1xx -std=gnu++14 -DSTM32_XL_DENSITY
522
   ${common.build_flags} -DSTM32F1xx -std=gnu++14 -DSTM32_XL_DENSITY
523
+build_unflags = -std=gnu++11
524
+extra_scripts = buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
525
+src_filter    = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
526
+lib_ignore    = Adafruit NeoPixel, SPI
527
+monitor_speed = 250000
391
 
528
 
392
 #
529
 #
393
 # Malyan M200 (STM32F103CB)
530
 # Malyan M200 (STM32F103CB)
404
 # Chitu boards like Tronxy X5s (STM32F103ZET6)
541
 # Chitu boards like Tronxy X5s (STM32F103ZET6)
405
 #
542
 #
406
 [env:chitu_f103]
543
 [env:chitu_f103]
407
-extends       = env:STM32F1_base
544
+platform      = ststm32
408
 board         = genericSTM32F103ZE
545
 board         = genericSTM32F103ZE
409
-extra_scripts = buildroot/share/PlatformIO/scripts/chitu_crypt.py
410
 build_flags   = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
546
 build_flags   = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
411
   ${common.build_flags} -DSTM32F1xx -std=gnu++14 -DSTM32_XL_DENSITY
547
   ${common.build_flags} -DSTM32F1xx -std=gnu++14 -DSTM32_XL_DENSITY
412
 build_unflags = -std=gnu++11 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
548
 build_unflags = -std=gnu++11 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
549
+extra_scripts = buildroot/share/PlatformIO/scripts/chitu_crypt.py
550
+src_filter    = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
413
 lib_ignore    = Adafruit NeoPixel
551
 lib_ignore    = Adafruit NeoPixel
414
-
415
-#
416
-# STM32 HAL environments
417
-#
418
-[env:STM32_hal]
419
-platform      = ststm32
420
-build_unflags = -std=gnu++11
421
-src_filter    = ${common.default_src_filter} +<src/HAL/HAL_STM32>
422
 monitor_speed = 250000
552
 monitor_speed = 250000
423
 
553
 
424
 #
554
 #
425
 # FYSETC S6 (STM32F446VET6 ARM Cortex-M4)
555
 # FYSETC S6 (STM32F446VET6 ARM Cortex-M4)
426
 #
556
 #
427
 [env:FYSETC_S6]
557
 [env:FYSETC_S6]
428
-extends           = env:STM32_hal
558
+platform          = ststm32
429
 board             = fysetc_s6
559
 board             = fysetc_s6
430
-extra_scripts     = buildroot/share/PlatformIO/scripts/fysetc_STM32S6.py
560
+platform_packages = tool-stm32duino
431
 build_flags       = ${common.build_flags}
561
 build_flags       = ${common.build_flags}
432
   -DTARGET_STM32F4 -std=gnu++14
562
   -DTARGET_STM32F4 -std=gnu++14
433
   -DVECT_TAB_OFFSET=0x10000
563
   -DVECT_TAB_OFFSET=0x10000
434
   -DUSBCON -DUSBD_USE_CDC -DHAL_PCD_MODULE_ENABLED -DUSBD_VID=0x0483 '-DUSB_PRODUCT="FYSETC_S6"'
564
   -DUSBCON -DUSBD_USE_CDC -DHAL_PCD_MODULE_ENABLED -DUSBD_VID=0x0483 '-DUSB_PRODUCT="FYSETC_S6"'
565
+build_unflags     = -std=gnu++11
566
+extra_scripts     = buildroot/share/PlatformIO/scripts/fysetc_STM32S6.py
567
+src_filter        = ${common.default_src_filter} +<src/HAL/HAL_STM32>
435
 lib_ignore        = Arduino-L6470
568
 lib_ignore        = Arduino-L6470
436
-platform_packages = tool-stm32duino
437
 debug_tool        = stlink
569
 debug_tool        = stlink
438
 #upload_protocol   = stlink
570
 #upload_protocol   = stlink
439
 upload_protocol   = serial
571
 upload_protocol   = serial
572
+monitor_speed     = 250000
440
 
573
 
441
 #
574
 #
442
 # STM32F407VET6 with RAMPS-like shield
575
 # STM32F407VET6 with RAMPS-like shield
444
 # Shield - https://github.com/jmz52/Hardware
577
 # Shield - https://github.com/jmz52/Hardware
445
 #
578
 #
446
 [env:STM32F407VE_black]
579
 [env:STM32F407VE_black]
447
-extends           = env:STM32_hal
448
-platform_packages = framework-arduinoststm32@>=3.10700.191028
580
+platform          = ststm32
449
 board             = blackSTM32F407VET6
581
 board             = blackSTM32F407VET6
450
-extra_scripts     = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
582
+platform_packages = framework-arduinoststm32@>=3.10700.191028
451
 build_flags       = ${common.build_flags}
583
 build_flags       = ${common.build_flags}
452
  -DTARGET_STM32F4 -DARDUINO_BLACK_F407VE
584
  -DTARGET_STM32F4 -DARDUINO_BLACK_F407VE
453
  -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"BLACK_F407VE\"
585
  -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"BLACK_F407VE\"
454
   -IMarlin/src/HAL/HAL_STM32
586
   -IMarlin/src/HAL/HAL_STM32
587
+build_unflags     = -std=gnu++11
588
+extra_scripts     = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
455
 lib_ignore        = Adafruit NeoPixel, TMCStepper, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster, SoftwareSerial
589
 lib_ignore        = Adafruit NeoPixel, TMCStepper, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster, SoftwareSerial
590
+src_filter        = ${common.default_src_filter} +<src/HAL/HAL_STM32>
591
+monitor_speed     = 250000
456
 
592
 
457
 #
593
 #
458
 # Bigtreetech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
594
 # Bigtreetech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
459
 #
595
 #
460
 [env:BIGTREE_SKR_PRO]
596
 [env:BIGTREE_SKR_PRO]
461
-extends           = env:STM32_hal
462
-platform_packages = framework-arduinoststm32@>=3.10700.191028
597
+platform          = ststm32
463
 board             = BigTree_SKR_Pro
598
 board             = BigTree_SKR_Pro
464
-extra_scripts     = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
599
+platform_packages = framework-arduinoststm32@>=3.10700.191028
465
 build_flags       = ${common.build_flags}
600
 build_flags       = ${common.build_flags}
466
   -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407ZG\"
601
   -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407ZG\"
467
   -DTARGET_STM32F4 -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
602
   -DTARGET_STM32F4 -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
468
   -DHAVE_HWSERIAL6
603
   -DHAVE_HWSERIAL6
469
   -IMarlin/src/HAL/HAL_STM32
604
   -IMarlin/src/HAL/HAL_STM32
605
+build_unflags     = -std=gnu++11
606
+extra_scripts     = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
470
 lib_deps          =
607
 lib_deps          =
471
   U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip
608
   U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip
472
   LiquidCrystal
609
   LiquidCrystal
475
   LiquidTWI2=https://github.com/lincomatic/LiquidTWI2/archive/master.zip
612
   LiquidTWI2=https://github.com/lincomatic/LiquidTWI2/archive/master.zip
476
   Arduino-L6470=https://github.com/ameyer/Arduino-L6470/archive/dev.zip
613
   Arduino-L6470=https://github.com/ameyer/Arduino-L6470/archive/dev.zip
477
 lib_ignore        = SoftwareSerial, SoftwareSerialM
614
 lib_ignore        = SoftwareSerial, SoftwareSerialM
615
+src_filter        = ${common.default_src_filter} +<src/HAL/HAL_STM32>
616
+monitor_speed     = 250000
478
 
617
 
479
 #
618
 #
480
 # Bigtreetech SKR BTT002 (STM32F407VET6 ARM Cortex-M4)
619
 # Bigtreetech SKR BTT002 (STM32F407VET6 ARM Cortex-M4)
481
 #
620
 #
482
 [env:BIGTREE_BTT002]
621
 [env:BIGTREE_BTT002]
483
-extends       = env:STM32_hal
484
-platform      = ststm32@5.6.0
622
+platform          = ststm32@5.6.0
485
 board         = BigTree_Btt002
623
 board         = BigTree_Btt002
486
-extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
487
 build_flags   = ${common.build_flags}
624
 build_flags   = ${common.build_flags}
488
   -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407VE\"
625
   -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407VE\"
489
   -DTARGET_STM32F4 -DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
626
   -DTARGET_STM32F4 -DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
491
   -DHAVE_HWSERIAL3
628
   -DHAVE_HWSERIAL3
492
   -DPIN_SERIAL2_RX=PD_6
629
   -DPIN_SERIAL2_RX=PD_6
493
   -DPIN_SERIAL2_TX=PD_5
630
   -DPIN_SERIAL2_TX=PD_5
631
+build_unflags     = -std=gnu++11
632
+extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
494
 lib_ignore    = Adafruit NeoPixel, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster
633
 lib_ignore    = Adafruit NeoPixel, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster
634
+src_filter        = ${common.default_src_filter} +<src/HAL/HAL_STM32>
635
+monitor_speed     = 250000
495
 
636
 
496
 #
637
 #
497
 # Teensy 3.1 / 3.2 (ARM Cortex-M4)
638
 # Teensy 3.1 / 3.2 (ARM Cortex-M4)
509
 # Teensy 3.5 / 3.6 (ARM Cortex-M4)
650
 # Teensy 3.5 / 3.6 (ARM Cortex-M4)
510
 #
651
 #
511
 [env:teensy35]
652
 [env:teensy35]
512
-extends       = env:teensy31
653
+platform      = teensy
513
 board         = teensy35
654
 board         = teensy35
655
+lib_deps      = ${common.lib_deps}
656
+  TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
657
+lib_ignore    = Adafruit NeoPixel
514
 src_filter    = ${common.default_src_filter} +<src/HAL/HAL_TEENSY35_36>
658
 src_filter    = ${common.default_src_filter} +<src/HAL/HAL_TEENSY35_36>
659
+monitor_speed = 250000
515
 
660
 
516
 #
661
 #
517
 # Espressif ESP32
662
 # Espressif ESP32

Loading…
Cancel
Save