forked from bigtreetech/BIGTREETECH-TouchScreenFirmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
719 lines (661 loc) · 24.1 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
;BIGTREE_TFT24_V1_1
;BIGTREE_TFT28_V1_0
;BIGTREE_TFT28_V3_0
;BIGTREE_TFT35_V1_0
;BIGTREE_TFT35_V1_1
;BIGTREE_TFT35_V1_2
;BIGTREE_TFT35_V2_0
;BIGTREE_TFT35_V3_0
;BIGTREE_TFT35_E3_V3_0
;BIGTREE_TFT35_B1_V3_0
;BIGTREE_TFT43_V3_0
;BIGTREE_TFT50_V3_0
;BIGTREE_TFT70_V3_0
;BIGTREE_GD_TFT24_V1_1
;BIGTREE_GD_TFT35_V2_0
;BIGTREE_GD_TFT35_V3_0
;BIGTREE_GD_TFT35_E3_V3_0
;BIGTREE_GD_TFT35_B1_V3_0
;BIGTREE_GD_TFT43_V3_0
;BIGTREE_GD_TFT50_V3_0
;BIGTREE_GD_TFT70_V3_0
;MKS_TFT28_V3_0
;MKS_TFT28_V4_0
;MKS_TFT28_NEW_GENIUS
;MKS_TFT32_V1_3
;MKS_TFT32_V1_4
;MKS_TFT32_V1_4_NOBL
;MKS_TFT32L_V3_0
;MKS_TFT35_V1_0
;MKS_GD_TFT28_V1_2_4
[platformio]
src_dir = TFT
boards_dir = buildroot/boards
;Build only Target - BIGTREE_TFT35_V3_0
default_envs = BIGTREE_TFT35_V3_0
;Build all Targets
;default_envs = BIGTREE_TFT24_V1_1, BIGTREE_TFT28_V1_0, BIGTREE_TFT28_V3_0, BIGTREE_TFT35_V1_0, BIGTREE_TFT35_V1_1, BIGTREE_TFT35_V1_2, BIGTREE_TFT35_V2_0, BIGTREE_TFT35_V3_0, BIGTREE_TFT35_E3_V3_0, BIGTREE_TFT35_B1_V3_0, BIGTREE_TFT43_V3_0, BIGTREE_TFT50_V3_0, BIGTREE_TFT70_V3_0, BIGTREE_GD_TFT24_V1_1, BIGTREE_GD_TFT35_V2_0, BIGTREE_GD_TFT35_V3_0, BIGTREE_GD_TFT35_E3_V3_0, BIGTREE_GD_TFT35_B1_V3_0, BIGTREE_GD_TFT43_V3_0, BIGTREE_GD_TFT50_V3_0, BIGTREE_GD_TFT70_V3_0, MKS_TFT28_V3_0, MKS_TFT28_V4_0, MKS_TFT28_NEW_GENIUS, MKS_TFT32_V1_3, MKS_TFT32_V1_4, MKS_TFT32_V1_4_NOBL, MKS_TFT32L_V3_0, MKS_TFT35_V1_0, MKS_GD_TFT28_V1_2_4
[common]
default_src_filter = +<src/*> -<src/Libraries>
-<src/User/Hal/stm32f10x> -<src/User/Hal/stm32f2_f4xx>
-<src/User/Hal/STM32_USB_HOST_Library> -<src/User/Hal/STM32_USB_OTG_Driver/>
-<src/User/Hal/gd32f20x> -<src/User/Hal/GD32F20x_usbfs_library>
-<src/User/Hal/gd32f30x> -<src/User/Hal/GD32F30x_usbfs_library>
${json.default_src_filter}
extra_scripts = pre:buildroot/scripts/pre_install_dependencies.py
pre:buildroot/scripts/custom_filename.py
post:buildroot/scripts/auto_gen_language_pack.py
; post:buildroot/scripts/auto_copy_firmware.py ; uncomment here when a new .bin firmware needs to be released
; post:buildroot/scripts/auto_copy_to_sd.py ; uncomment here to copy new .bin file to sd card
; post:buildroot/scripts/short_out_filename.py ; uncomment here to generate .bin file with short file name
build_flags = -fmax-errors=5
-g
-ggdb
-Wno-missing-braces
-ITFT/src/User/Fatfs
-ITFT/src/User/Hal
-ITFT/src/User/Menu
-ITFT/src/User/Variants
-ITFT/src/User
-ITFT/src/User/API
-ITFT/src/User/API/UI
-ITFT/src/User/API/Gcode
-ITFT/src/User/API/Language
-ITFT/src/User/API/Vfs
-ITFT/src/User/Hal
-DSOFTWARE_VERSION=27.x
-DSOFTWARE_VERSION_SHORT=27
; -DPORTRAIT_MODE="_portrait" ; uncomment here to enable Portrait Mode .bin firmware generation
${json.build_flags}
[stm32f10x]
default_src_filter = ${common.default_src_filter}
+<src/Libraries/cmsis/stm32f10x> +<src/Libraries/fwlib/stm32f10x> +<src/User/Hal/stm32f10x>
+<src/User/Hal/STM32_USB_HOST_Library> +<src/User/Hal/STM32_USB_OTG_Driver/>
build_flags = ${common.build_flags}
-DUSE_STDPERIPH_DRIVER=
-ITFT/src/Libraries/cmsis/Core-CM3
-ITFT/src/Libraries/cmsis/stm32f10x
-ITFT/src/Libraries/fwlib/stm32f10x
-ITFT/src/Libraries/fwlib/stm32f10x/inc
-ITFT/src/User/Hal/stm32f10x
-ITFT/src/User/Hal/STM32_USB_HOST_Library/Core/inc
-ITFT/src/User/Hal/STM32_USB_HOST_Library/Class/MSC/inc
-ITFT/src/User/Hal/STM32_USB_HOST_Library/Usr/inc
-ITFT/src/User/Hal/STM32_USB_OTG_Driver/inc
[stm32f2xx]
default_src_filter = ${common.default_src_filter}
+<src/Libraries/cmsis/stm32f2xx> +<src/Libraries/fwlib/stm32f2xx> +<src/User/Hal/stm32f2_f4xx>
+<src/User/Hal/STM32_USB_HOST_Library> +<src/User/Hal/STM32_USB_OTG_Driver/>
build_flags = ${common.build_flags}
-DUSE_STDPERIPH_DRIVER=
-ITFT/src/Libraries/cmsis/Core-CM3
-ITFT/src/Libraries/cmsis/stm32f2xx
-ITFT/src/Libraries/fwlib/stm32f2xx
-ITFT/src/Libraries/fwlib/stm32f2xx/inc
-ITFT/src/User/Hal/stm32f2_f4xx
-ITFT/src/User/Hal/STM32_USB_HOST_Library/Core/inc
-ITFT/src/User/Hal/STM32_USB_HOST_Library/Class/MSC/inc
-ITFT/src/User/Hal/STM32_USB_HOST_Library/Usr/inc
-ITFT/src/User/Hal/STM32_USB_OTG_Driver/inc
[stm32f4xx]
default_src_filter = ${common.default_src_filter}
+<src/Libraries/cmsis/stm32f4xx> +<src/Libraries/fwlib/stm32f4xx> +<src/User/Hal/stm32f2_f4xx>
+<src/User/Hal/STM32_USB_HOST_Library> +<src/User/Hal/STM32_USB_OTG_Driver/>
build_flags = ${common.build_flags}
-DUSE_STDPERIPH_DRIVER=
-ITFT/src/Libraries/cmsis/Core-CM4
-ITFT/src/Libraries/cmsis/stm32f4xx
-ITFT/src/Libraries/fwlib/stm32f4xx
-ITFT/src/Libraries/fwlib/stm32f4xx/inc
-ITFT/src/User/Hal/stm32f2_f4xx
-ITFT/src/User/Hal/STM32_USB_HOST_Library/Core/inc
-ITFT/src/User/Hal/STM32_USB_HOST_Library/Class/MSC/inc
-ITFT/src/User/Hal/STM32_USB_HOST_Library/Usr/inc
-ITFT/src/User/Hal/STM32_USB_OTG_Driver/inc
[gd32f20x]
default_src_filter = ${common.default_src_filter}
+<src/Libraries/cmsis/gd32f20x> +<src/Libraries/fwlib/gd32f20x> +<src/User/Hal/gd32f20x>
+<src/User/Hal/STM32_USB_HOST_Library> +<src/User/Hal/STM32_USB_OTG_Driver/>
build_flags = ${common.build_flags}
-ITFT/src/Libraries/cmsis/Core-CM3
-ITFT/src/Libraries/cmsis/gd32f20x
-ITFT/src/Libraries/fwlib/gd32f20x
-ITFT/src/Libraries/fwlib/gd32f20x/inc
-ITFT/src/User/Hal/gd32f20x
-ITFT/src/User/Hal/STM32_USB_HOST_Library/Core/inc
-ITFT/src/User/Hal/STM32_USB_HOST_Library/Class/MSC/inc
-ITFT/src/User/Hal/STM32_USB_HOST_Library/Usr/inc
-ITFT/src/User/Hal/STM32_USB_OTG_Driver/inc
[gd32f30x]
default_src_filter = ${common.default_src_filter}
+<src/Libraries/cmsis/gd32f30x> +<src/Libraries/fwlib/gd32f30x> +<src/User/Hal/gd32f30x>
+<src/User/Hal/STM32_USB_HOST_Library> +<src/User/Hal/STM32_USB_OTG_Driver/>
build_flags = ${common.build_flags}
-ITFT/src/Libraries/cmsis/Core-CM4
-ITFT/src/Libraries/cmsis/gd32f30x
-ITFT/src/Libraries/fwlib/gd32f30x
-ITFT/src/Libraries/fwlib/gd32f30x/inc
-ITFT/src/User/Hal/gd32f30x
-ITFT/src/User/Hal/STM32_USB_HOST_Library/Core/inc
-ITFT/src/User/Hal/STM32_USB_HOST_Library/Class/MSC/inc
-ITFT/src/User/Hal/STM32_USB_HOST_Library/Usr/inc
-ITFT/src/User/Hal/STM32_USB_OTG_Driver/inc
[json]
default_src_filter = +<src/Libraries/json>
build_flags = -ITFT/src/Libraries/json
[base64_png]
default_src_filter = +<src/Libraries/pngle> +<src/Libraries/base64>
build_flags = -ITFT/src/Libraries/pngle
-ITFT/src/Libraries/base64
#
# stm32
#
[common_stm32]
platform = ststm32
framework = cmsis
upload_protocol = cmsis-dap
#
# gd32
#
[common_gd32]
platform = https://github.com/CommunityGD32Cores/platform-gd32.git
platform_packages = framework-spl-gd32@https://github.com/bigtreetech/gd32-pio-spl-package
framework = spl
upload_protocol = cmsis-dap
#
# BIGTREE-TECH STM32 Series
#
#
# BIGTREE TFT24 V1.1
#
[env:BIGTREE_TFT24_V1_1]
extends = common_stm32
board = STM32F105RC_0x6000
build_src_filter = ${stm32f10x.default_src_filter} +<src/Libraries/Startup/stm32f10x_cl>
extra_scripts = ${common.extra_scripts}
buildroot/scripts/stm32f105xC_0x6000_iap.py
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_CL=
-DHSE_VALUE=8000000ul
-DVECT_TAB_FLASH=0x08006000
-DRAM_SIZE=64 ; Available RAM size in kbytes
-DHARDWARE="BIGTREE_TFT24_V1.1"
-DHARDWARE_SHORT="B24V11"
-DTFT24_V1_1=
#
# BIGTREE TFT28 V1.0
#
[env:BIGTREE_TFT28_V1_0]
extends = env:BIGTREE_TFT35_V1_0
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_HD=
-DHSE_VALUE=16000000ul
-DVECT_TAB_FLASH=0x08006000
-DRAM_SIZE=48 ; Available RAM size in kbytes
-DHARDWARE="BIQU_TFT28_V1.0"
-DHARDWARE_SHORT="B28V10"
-DTFT28_V1_0=
#
# BIGTREE TFT28 V3.0
#
[env:BIGTREE_TFT28_V3_0]
extends = env:BIGTREE_TFT35_V3_0
build_flags = ${stm32f2xx.build_flags} ${base64_png.build_flags}
-DSTM32F2XX=
-DHSE_VALUE=8000000ul
-DVECT_TAB_FLASH=0x08008000
-DRAM_SIZE=96 ; Available RAM size in kbytes
-DHARDWARE="BIGTREE_TFT28_V3.0"
-DHARDWARE_SHORT="B28V30"
-DTFT28_V3_0=
#
# BIGTREE TFT35 V1.0
#
[env:BIGTREE_TFT35_V1_0]
extends = common_stm32
board = STM32F103VC_0x6000
build_src_filter = ${stm32f10x.default_src_filter} +<src/Libraries/Startup/stm32f10x_hd>
extra_scripts = ${common.extra_scripts}
buildroot/scripts/stm32f103xC_0x6000_iap.py
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_HD=
-DHSE_VALUE=16000000ul
-DVECT_TAB_FLASH=0x08006000
-DRAM_SIZE=48 ; Available RAM size in kbytes
-DHARDWARE="BIQU_TFT35_V1.0"
-DHARDWARE_SHORT="B35V10"
-DTFT35_V1_0=
#
# BIGTREE TFT35 V1.1
#
[env:BIGTREE_TFT35_V1_1]
extends = env:BIGTREE_TFT35_V1_0
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_HD=
-DHSE_VALUE=16000000ul
-DVECT_TAB_FLASH=0x08006000
-DRAM_SIZE=48 ; Available RAM size in kbytes
-DHARDWARE="BIQU_TFT35_V1.1"
-DHARDWARE_SHORT="B35V11"
-DTFT35_V1_1=
#
# BIGTREE TFT35 V1.2
#
[env:BIGTREE_TFT35_V1_2]
extends = env:BIGTREE_TFT35_V1_0
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_HD=
-DHSE_VALUE=16000000ul
-DVECT_TAB_FLASH=0x08006000
-DRAM_SIZE=48 ; Available RAM size in kbytes
-DHARDWARE="BIQU_TFT35_V1.2"
-DHARDWARE_SHORT="B35V12"
-DTFT35_V1_2=
#
# BIGTREE TFT35 V2.0
#
[env:BIGTREE_TFT35_V2_0]
extends = env:BIGTREE_TFT35_V1_0
board = STM32F103VC_0x3000
extra_scripts = ${common.extra_scripts}
buildroot/scripts/stm32f103xC_0x3000_iap.py
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_HD=
-DHSE_VALUE=16000000ul
-DVECT_TAB_FLASH=0x08003000
-DRAM_SIZE=48 ; Available RAM size in kbytes
-DHARDWARE="BIQU_TFT35_APP1_V2.0"
-DHARDWARE_SHORT="B35V20"
-DTFT35_V2_0=
monitor_speed = 250000
#
# BIGTREE TFT35 V3.0
#
[env:BIGTREE_TFT35_V3_0]
extends = common_stm32
board = STM32F207VC_0x8000
build_src_filter = ${stm32f2xx.default_src_filter} ${base64_png.default_src_filter} +<src/Libraries/Startup/stm32f2xx>
extra_scripts = ${common.extra_scripts}
buildroot/scripts/stm32f2xxxC_0x8000_iap.py
build_flags = ${stm32f2xx.build_flags} ${base64_png.build_flags}
-DSTM32F2XX=
-DHSE_VALUE=8000000ul
-DVECT_TAB_FLASH=0x08008000
-DRAM_SIZE=96 ; Available RAM size in kbytes
-DHARDWARE="BIGTREE_TFT35_V3.0"
-DHARDWARE_SHORT="B35V30"
-DTFT35_V3_0=
#
# BIGTREE TFT35 B1 V3.0
#
[env:BIGTREE_TFT35_B1_V3_0]
extends = env:BIGTREE_TFT35_V3_0
build_flags = ${stm32f2xx.build_flags} ${base64_png.build_flags}
-DSTM32F2XX=
-DHSE_VALUE=8000000ul
-DVECT_TAB_FLASH=0x08008000
-DRAM_SIZE=96 ; Available RAM size in kbytes
-DHARDWARE="BIGTREE_TFT35_V3.0_B1"
-DHARDWARE_SHORT="35V3B1"
-DTFT35_B1_V3_0=
#
# BIGTREE TFT35 E3 V3.0
#
[env:BIGTREE_TFT35_E3_V3_0]
extends = env:BIGTREE_TFT35_V3_0
build_flags = ${stm32f2xx.build_flags} ${base64_png.build_flags}
-DSTM32F2XX=
-DHSE_VALUE=8000000ul
-DVECT_TAB_FLASH=0x08008000
-DRAM_SIZE=96 ; Available RAM size in kbytes
-DHARDWARE="BIGTREE_TFT35_V3.0_E3"
-DHARDWARE_SHORT="35V3E3"
-DTFT35_E3_V3_0=
#
# BIGTREE TFT43 V3.0
#
[env:BIGTREE_TFT43_V3_0]
extends = env:BIGTREE_TFT35_V3_0
build_flags = ${stm32f2xx.build_flags} ${base64_png.build_flags}
-DSTM32F2XX=
-DHSE_VALUE=8000000ul
-DVECT_TAB_FLASH=0x08008000
-DRAM_SIZE=96 ; Available RAM size in kbytes
-DHARDWARE="BIGTREE_TFT43_V3.0"
-DHARDWARE_SHORT="B43V30"
-DTFT43_V3_0=
#
# BIGTREE TFT50 V3.0
#
[env:BIGTREE_TFT50_V3_0]
extends = env:BIGTREE_TFT35_V3_0
build_flags = ${stm32f2xx.build_flags} ${base64_png.build_flags}
-DSTM32F2XX=
-DHSE_VALUE=8000000ul
-DVECT_TAB_FLASH=0x08008000
-DRAM_SIZE=96 ; Available RAM size in kbytes
-DHARDWARE="BIGTREE_TFT50_V3.0"
-DHARDWARE_SHORT="B50V30"
-DTFT50_V3_0=
#
# BIGTREE TFT70 V3.0
#
[env:BIGTREE_TFT70_V3_0]
extends = common_stm32
board = STM32F407VG_0x8000
build_src_filter = ${stm32f4xx.default_src_filter} ${base64_png.default_src_filter} +<src/Libraries/Startup/stm32f40_41x>
extra_scripts = ${common.extra_scripts}
buildroot/scripts/stm32f4xxxG_0x8000_iap.py
build_flags = ${stm32f4xx.build_flags} ${base64_png.build_flags}
-DSTM32F40_41xxx=
-DHSE_VALUE=8000000ul
-DVECT_TAB_FLASH=0x08008000
-DRAM_SIZE=192 ; Available RAM size in kbytes
-DHARDWARE="BIGTREE_TFT70_V3.0"
-DHARDWARE_SHORT="B70V30"
-DTFT70_V3_0=
#
# BIGTREE-TECH GD32 Series
#
#
# BIGTREE TFT24 V1.1
#
[env:BIGTREE_GD_TFT24_V1_1]
extends = common_stm32
board = STM32F105RC_0x6000
build_src_filter = ${stm32f10x.default_src_filter} +<src/Libraries/Startup/stm32f10x_cl>
extra_scripts = ${common.extra_scripts}
buildroot/scripts/stm32f105xC_0x6000_iap.py
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_CL=
-DHSE_VALUE=8000000ul
-DVECT_TAB_FLASH=0x08006000
-DRAM_SIZE=64 ; Available RAM size in kbytes
-DHARDWARE="BIGTREE_GD_TFT24_V1.1"
-DHARDWARE_SHORT="G24V11"
-DTFT24_V1_1=
#
# BIGTREE GD TFT35 V2.0
#
[env:BIGTREE_GD_TFT35_V2_0]
extends = env:BIGTREE_TFT35_V1_0
board = STM32F103VC_0x6000
extra_scripts = ${common.extra_scripts}
buildroot/scripts/stm32f103xC_0x6000_iap.py
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_HD=
-DHSE_VALUE=16000000ul
-DVECT_TAB_FLASH=0x08006000
-DRAM_SIZE=48 ; Available RAM size in kbytes
-DHARDWARE="BIGTREE_GD_TFT35_V2.0"
-DHARDWARE_SHORT="G35V20"
-DTFT35_V2_0=
monitor_speed = 250000
#
# BIGTREE GD TFT35 V3.0
#
[env:BIGTREE_GD_TFT35_V3_0]
extends = common_gd32
board = GD32F205VC_0x3000
build_src_filter = ${gd32f20x.default_src_filter} ${base64_png.default_src_filter}
extra_scripts = ${common.extra_scripts}
buildroot/scripts/gd32f20xxC_0x3000_iap.py
build_flags = ${gd32f20x.build_flags} ${base64_png.build_flags}
-DGD32F2XX=
-DHXTAL_VALUE=8000000ul
-DVECT_TAB_FLASH=0x08003000
-DRAM_SIZE=128 ; Available RAM size in kbytes
-DHARDWARE="BIGTREE_GD_TFT35_V3.0"
-DHARDWARE_SHORT="B35V30"
-DGD_TFT35_V3_0=
#
# BIGTREE GD TFT35 E3 V3.0
#
[env:BIGTREE_GD_TFT35_E3_V3_0]
extends = env:BIGTREE_GD_TFT35_V3_0
build_flags = ${gd32f20x.build_flags} ${base64_png.build_flags}
-DGD32F2XX=
-DHXTAL_VALUE=8000000ul
-DVECT_TAB_FLASH=0x08003000
-DRAM_SIZE=128 ; Available RAM size in kbytes
-DHARDWARE="BIGTREE_GD_TFT35_V3.0_E3"
-DHARDWARE_SHORT="35V3E3"
-DGD_TFT35_E3_V3_0=
#
# BIGTREE GD TFT35 B1 V3.0
#
[env:BIGTREE_GD_TFT35_B1_V3_0]
extends = env:BIGTREE_GD_TFT35_V3_0
build_flags = ${gd32f20x.build_flags} ${base64_png.build_flags}
-DGD32F2XX=
-DHXTAL_VALUE=8000000ul
-DVECT_TAB_FLASH=0x08003000
-DRAM_SIZE=128 ; Available RAM size in kbytes
-DHARDWARE="BIGTREE_GD_TFT35_V3.0_B1"
-DHARDWARE_SHORT="35V3B1"
-DGD_TFT35_B1_V3_0=
#
# BIGTREE GD TFT43 V3.0
#
[env:BIGTREE_GD_TFT43_V3_0]
extends = env:BIGTREE_GD_TFT35_V3_0
build_flags = ${gd32f20x.build_flags} ${base64_png.build_flags}
-DGD32F2XX=
-DHXTAL_VALUE=8000000ul
-DVECT_TAB_FLASH=0x08003000
-DRAM_SIZE=128 ; Available RAM size in kbytes
-DHARDWARE="BIGTREE_GD_TFT43_V3.0"
-DHARDWARE_SHORT="B43V30"
-DGD_TFT43_V3_0=
#
# BIGTREE GD TFT50 V3.0
#
[env:BIGTREE_GD_TFT50_V3_0]
extends = env:BIGTREE_GD_TFT35_V3_0
build_flags = ${gd32f20x.build_flags} ${base64_png.build_flags}
-DGD32F2XX=
-DHXTAL_VALUE=8000000ul
-DVECT_TAB_FLASH=0x08003000
-DRAM_SIZE=128 ; Available RAM size in kbytes
-DHARDWARE="BIGTREE_GD_TFT50_V3.0"
-DHARDWARE_SHORT="B50V30"
-DGD_TFT50_V3_0=
#
# BIGTREE GD TFT70 V3.0
#
[env:BIGTREE_GD_TFT70_V3_0]
extends = common_stm32
board = STM32F407VG_0x8000
build_src_filter = ${stm32f4xx.default_src_filter} ${base64_png.default_src_filter} +<src/Libraries/Startup/stm32f40_41x>
extra_scripts = ${common.extra_scripts}
buildroot/scripts/stm32f4xxxG_0x8000_iap.py
build_flags = ${stm32f4xx.build_flags} ${base64_png.build_flags}
-DSTM32F40_41xxx=
-DHSE_VALUE=8000000ul
-DVECT_TAB_FLASH=0x08008000
-DRAM_SIZE=192 ; Available RAM size in kbytes
-DHARDWARE="BIGTREE_GD_TFT70_V3.0"
-DHARDWARE_SHORT="B70V30"
-DTFT70_V3_0=
#
# MKS STM32 Series. Maintained by open source contributors
#
#
# MKS TFT28 V3.0
#
[env:MKS_TFT28_V3_0]
extends = env:MKS_TFT32_V1_3
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_CL=
-DHSE_VALUE=25000000ul
-DVECT_TAB_FLASH=0x08007000
-DRAM_SIZE=64 ; Available RAM size in kbytes
; -DBINARY_FILENAME="MKSTFT28" ; To override the default binary filename provided by -DHARDWARE
; -DBINARY_DIRECTORY="Copy to SD Card - MKS" ; To override the default release directory
-DHARDWARE="MKS_TFT28_V3.0"
-DHARDWARE_SHORT="M28V30"
-DMKS_TFT28_V3_0=
-DMKS_TFT=
#
# MKS TFT28 V4.0
#
[env:MKS_TFT28_V4_0]
extends = env:MKS_TFT32_V1_3
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_CL=
-DHSE_VALUE=25000000ul
-DVECT_TAB_FLASH=0x08007000
-DRAM_SIZE=64 ; Available RAM size in kbytes
; -DBINARY_FILENAME="MKSTFT28" ; To override the default binary filename provided by -DHARDWARE
; -DBINARY_DIRECTORY="Copy to SD Card - MKS" ; To override the default release directory
-DHARDWARE="MKS_TFT28_V4.0"
-DHARDWARE_SHORT="M28V40"
-DMKS_TFT28_V4_0=
-DMKS_TFT=
#
# MKS TFT28 New Artillery Genius (with new bicolor filament sensor LED)
#
[env:MKS_TFT28_NEW_GENIUS]
extends = env:MKS_TFT32_V1_3
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_CL=
-DHSE_VALUE=25000000ul
-DVECT_TAB_FLASH=0x08007000
-DRAM_SIZE=64 ; Available RAM size in kbytes
; -DBINARY_FILENAME="MKSTFT28" ; To override the default binary filename provided by -DHARDWARE
; -DBINARY_DIRECTORY="Copy to SD Card - MKS" ; To override the default release directory
-DHARDWARE="MKS_TFT28_NEW_GENIUS"
-DHARDWARE_SHORT="M28NG"
-DMKS_TFT28_NEW_GENIUS=
-DMKS_TFT=
#
# MKS TFT32 V1.3
#
[env:MKS_TFT32_V1_3]
extends = common_stm32
board = STM32F107VC_0x7000
upload_protocol = stlink
debug_tool = stlink
build_src_filter = ${stm32f10x.default_src_filter} +<src/Libraries/Startup/stm32f10x_cl>
extra_scripts = ${common.extra_scripts}
buildroot/scripts/stm32f107xC_0x7000_iap.py
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_CL=
-DHSE_VALUE=25000000ul
-DVECT_TAB_FLASH=0x08007000
-DRAM_SIZE=64 ; Available RAM size in kbytes
; -DBINARY_FILENAME="MKSTFT28" ; To override the default binary filename provided by -DHARDWARE
; -DBINARY_DIRECTORY="Copy to SD Card - MKS" ; To override the default release directory
-DHARDWARE="MKS_TFT32_V1.3"
-DHARDWARE_SHORT="M32V13"
-DMKS_TFT32_V1_3=
-DMKS_TFT=
#
# MKS TFT32 V1.4
#
[env:MKS_TFT32_V1_4]
extends = env:MKS_TFT32_V1_3
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_CL=
-DHSE_VALUE=25000000ul
-DVECT_TAB_FLASH=0x08007000
-DRAM_SIZE=64 ; Available RAM size in kbytes
; -DBINARY_FILENAME="MKSTFT28" ; To override the default binary filename provided by -DHARDWARE
; -DBINARY_DIRECTORY="Copy to SD Card - MKS" ; To override the default release directory
-DHARDWARE="MKS_TFT32_V1.4"
-DHARDWARE_SHORT="M32V14"
-DMKS_TFT32_V1_4=
-DMKS_TFT=
#
# MKS TFT32 V1.4 No Bootloader
#
[env:MKS_TFT32_V1_4_NOBL]
extends = env:MKS_TFT32_V1_3
board = STM32F107VC_0x0000
extra_scripts = ${common.extra_scripts}
buildroot/scripts/stm32f107xC_0x0000_iap.py
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_CL=
-DHSE_VALUE=25000000ul
-DVECT_TAB_FLASH=0x08000000
-DRAM_SIZE=64 ; Available RAM size in kbytes
; -DBINARY_FILENAME="MKSTFT28" ; To override the default binary filename provided by -DHARDWARE
; -DBINARY_DIRECTORY="Copy to SD Card - MKS" ; To override the default release directory
-DHARDWARE="MKS_TFT32_V1.4"
-DHARDWARE_SHORT="M32V14"
-DMKS_TFT32_V1_4=
-DMKS_TFT32_V1_4_NOBL=
-DMKS_TFT=
#
# MKS TFT32L V3.0
#
[env:MKS_TFT32L_V3_0]
extends = env:MKS_TFT32_V1_3
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_CL=
-DHSE_VALUE=25000000ul
-DVECT_TAB_FLASH=0x08007000
-DRAM_SIZE=64 ; Available RAM size in kbytes
; -DBINARY_FILENAME="MKSTFT28" ; To override the default binary filename provided by -DHARDWARE
; -DBINARY_DIRECTORY="Copy to SD Card - MKS" ; To override the default release directory
-DHARDWARE="MKS_TFT32L_V3_0"
-DHARDWARE_SHORT="M32LV30"
-DMKS_TFT32L_V3_0=
-DMKS_TFT=
#
# MKS TFT35 V1.0 (bootloader requires MKS-Robin encryption)
#
[env:MKS_TFT35_V1_0]
extends = env:MKS_TFT32_V1_3
board = STM32F407VE_0xC000
upload_protocol = stlink
debug_port = stlink
build_src_filter = ${stm32f4xx.default_src_filter} ${base64_png.default_src_filter} +<src/Libraries/Startup/stm32f40_41x>
extra_scripts = post:buildroot/scripts/mks_encrypt.py ; put before ${common.extra_scripts}
${common.extra_scripts}
buildroot/scripts/stm32f4xxxE_0xC000_iap.py
build_flags = ${stm32f4xx.build_flags} ${base64_png.build_flags}
-DSTM32F40_41xxx=
-DHSE_VALUE=8000000ul
-DVECT_TAB_FLASH=0x0000C000
-DRAM_SIZE=192 ; Available RAM size in kbytes
; -DBINARY_FILENAME="MKSTFT35" ; To override the default binary filename provided by -DHARDWARE
; -DBINARY_DIRECTORY="Copy to SD Card - MKS" ; To override the default release directory
-DHARDWARE="MKS_TFT35_V1_0"
-DHARDWARE_SHORT="M35V10"
-DMKS_TFT35_V1_0=
-DMKS_TFT=
#
# MKS GD32 Series. Maintained by open source contributors
#
#
# MKS GD TFT28 V1.2-4
#
[env:MKS_GD_TFT28_V1_2_4]
extends = common_gd32
board = GD32F305VC_0x7000
upload_protocol = stlink
debug_tool = stlink
build_src_filter = ${gd32f30x.default_src_filter} ${base64_png.default_src_filter}
extra_scripts = ${common.extra_scripts}
buildroot/scripts/gd32f30xxC_0x7000_iap.py
build_flags = ${gd32f30x.build_flags} ${base64_png.build_flags}
-DGD32F3XX=
-DHXTAL_VALUE=25000000ul
-DVECT_TAB_FLASH=0x08007000
-DRAM_SIZE=64 ; Available RAM size in kbytes
; -DBINARY_FILENAME="MKSTFT28EVO" ; To override the default binary filename provided by -DHARDWARE
; -DBINARY_DIRECTORY="Copy to SD Card - MKS" ; To override the default release directory
-DHARDWARE="MKS_GD_TFT28_V1_2_4"
-DHARDWARE_SHORT="M28GDV2"
-DMKS_GD_TFT28_V1_2_4=
-DMKS_TFT=