Pārlūkot izejas kodu

Split up platformio.ini (#21507)

Scott Lahteine 3 gadus atpakaļ
vecāks
revīzija
3229100025
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
14 mainītis faili ar 1504 papildinājumiem un 1441 dzēšanām
  1. 9
    28
      buildroot/share/PlatformIO/scripts/common-dependencies.py
  2. 174
    0
      ini/avr.ini
  3. 43
    0
      ini/due.ini
  4. 29
    0
      ini/esp32.ini
  5. 218
    0
      ini/features.ini
  6. 44
    0
      ini/lpc176x.ini
  7. 23
    0
      ini/native.ini
  8. 27
    0
      ini/samd51.ini
  9. 42
    0
      ini/stm32f0.ini
  10. 439
    0
      ini/stm32f1.ini
  11. 371
    0
      ini/stm32f4.ini
  12. 30
    0
      ini/stm32f7.ini
  13. 42
    0
      ini/teensy.ini
  14. 13
    1413
      platformio.ini

+ 9
- 28
buildroot/share/PlatformIO/scripts/common-dependencies.py Parādīt failu

@@ -3,16 +3,6 @@
3 3
 # Convenience script to check dependencies and add libs and sources for Marlin Enabled Features
4 4
 #
5 5
 import subprocess,os,re
6
-try:
7
-	import configparser
8
-except ImportError:
9
-	import ConfigParser as configparser
10
-try:
11
-	# PIO < 4.4
12
-	from platformio.managers.package import PackageManager
13
-except ImportError:
14
-	# PIO >= 4.4
15
-	from platformio.package.meta import PackageSpec as PackageManager
16 6
 
17 7
 PIO_VERSION_MIN = (5, 0, 3)
18 8
 try:
@@ -38,6 +28,9 @@ except SystemExit:
38 28
 except:
39 29
 	print("Can't detect PlatformIO Version")
40 30
 
31
+from platformio.package.meta import PackageSpec
32
+from platformio.project.config import ProjectConfig
33
+
41 34
 Import("env")
42 35
 
43 36
 #print(env.Dump())
@@ -51,13 +44,6 @@ def blab(str):
51 44
 	if verbose:
52 45
 		print(str)
53 46
 
54
-def parse_pkg_uri(spec):
55
-	if PackageManager.__name__ == 'PackageSpec':
56
-		return PackageManager(spec).name
57
-	else:
58
-		name, _, _ = PackageManager.parse_pkg_uri(spec)
59
-		return name
60
-
61 47
 FEATURE_CONFIG = {}
62 48
 
63 49
 def add_to_feat_cnf(feature, flines):
@@ -86,9 +72,7 @@ def add_to_feat_cnf(feature, flines):
86 72
 				feat['lib_deps'] = list(filter(lib_re.match, feat['lib_deps'])) + [dep]
87 73
 
88 74
 def load_config():
89
-	config = configparser.ConfigParser()
90
-	config.read("platformio.ini")
91
-	items = config.items('features')
75
+	items = ProjectConfig().items('features')
92 76
 	for key in items:
93 77
 		feature = key[0].upper()
94 78
 		if not feature in FEATURE_CONFIG:
@@ -114,16 +98,14 @@ def get_all_known_libs():
114 98
 		if not 'lib_deps' in feat:
115 99
 			continue
116 100
 		for dep in feat['lib_deps']:
117
-			name = parse_pkg_uri(dep)
118
-			known_libs.append(name)
101
+			known_libs.append(PackageSpec(dep).name)
119 102
 	return known_libs
120 103
 
121 104
 def get_all_env_libs():
122 105
 	env_libs = []
123 106
 	lib_deps = env.GetProjectOption('lib_deps')
124 107
 	for dep in lib_deps:
125
-		name = parse_pkg_uri(dep)
126
-		env_libs.append(name)
108
+		env_libs.append(PackageSpec(dep).name)
127 109
 	return env_libs
128 110
 
129 111
 def set_env_field(field, value):
@@ -154,20 +136,19 @@ def apply_features_config():
154 136
 			# feat to add
155 137
 			deps_to_add = {}
156 138
 			for dep in feat['lib_deps']:
157
-				name = parse_pkg_uri(dep)
158
-				deps_to_add[name] = dep
139
+				deps_to_add[PackageSpec(dep).name] = dep
159 140
 
160 141
 			# Does the env already have the dependency?
161 142
 			deps = env.GetProjectOption('lib_deps')
162 143
 			for dep in deps:
163
-				name = parse_pkg_uri(dep)
144
+				name = PackageSpec(dep).name
164 145
 				if name in deps_to_add:
165 146
 					del deps_to_add[name]
166 147
 
167 148
 			# Are there any libraries that should be ignored?
168 149
 			lib_ignore = env.GetProjectOption('lib_ignore')
169 150
 			for dep in deps:
170
-				name = parse_pkg_uri(dep)
151
+				name = PackageSpec(dep).name
171 152
 				if name in deps_to_add:
172 153
 					del deps_to_add[name]
173 154
 

+ 174
- 0
ini/avr.ini Parādīt failu

@@ -0,0 +1,174 @@
1
+#
2
+# Marlin Firmware
3
+# PlatformIO Configuration File
4
+#
5
+
6
+#################################
7
+#                               #
8
+#       AVR Architecture        #
9
+#                               #
10
+#################################
11
+
12
+#
13
+# AVR (8-bit) Common Environment values
14
+#
15
+[common_avr8]
16
+board_build.f_cpu = 16000000L
17
+src_filter        = ${common.default_src_filter} +<src/HAL/AVR>
18
+
19
+#
20
+# ATmega2560
21
+#
22
+[env:mega2560]
23
+platform = atmelavr
24
+extends  = common_avr8
25
+board    = megaatmega2560
26
+
27
+#
28
+# ATmega2560 with extended pins 70-85 defined
29
+# BOARD_BQ_ZUM_MEGA_3D
30
+# BOARD_ULTIMAIN_2
31
+# BOARD_MIGHTYBOARD_REVE
32
+# BOARD_EINSTART_S
33
+#
34
+[env:mega2560ext]
35
+platform            = atmelavr
36
+extends             = env:mega2560
37
+board_build.variant = megaextendedpins
38
+extra_scripts       = ${common.extra_scripts}
39
+                      pre:buildroot/share/PlatformIO/scripts/copy_marlin_variant_to_framework.py
40
+
41
+#
42
+# ATmega1280
43
+#
44
+[env:mega1280]
45
+platform = atmelavr
46
+extends  = common_avr8
47
+board    = megaatmega1280
48
+
49
+#
50
+# MightyBoard AVR with extended pins
51
+#
52
+[mega_extended_optimized]
53
+extends             = common_avr8
54
+board_build.variant = megaextendedpins
55
+extra_scripts       = ${common.extra_scripts}
56
+                      pre:buildroot/share/PlatformIO/scripts/copy_marlin_variant_to_framework.py
57
+upload_speed        = 57600
58
+build_flags         = ${common.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -Wl,--relax -mcall-prologues
59
+
60
+#
61
+# MightyBoard ATmega1280
62
+#
63
+[env:MightyBoard1280]
64
+platform = atmelavr
65
+extends  = mega_extended_optimized
66
+board    = megaatmega1280
67
+
68
+#
69
+# MightyBoard ATmega2560
70
+#
71
+[env:MightyBoard2560]
72
+platform = atmelavr
73
+extends  = mega_extended_optimized
74
+board    = megaatmega2560
75
+
76
+#
77
+# RAMBo
78
+#
79
+[env:rambo]
80
+platform = atmelavr
81
+extends  = common_avr8
82
+board    = reprap_rambo
83
+
84
+#
85
+# FYSETC F6 V1.3 / V1.4
86
+#
87
+[env:FYSETC_F6]
88
+platform = atmelavr
89
+extends  = common_avr8
90
+board    = fysetc_f6
91
+
92
+#
93
+# Sanguinololu (ATmega644p)
94
+#
95
+[env:sanguino644p]
96
+platform = atmelavr
97
+extends  = common_avr8
98
+board    = sanguino_atmega644p
99
+
100
+#
101
+# Sanguinololu (ATmega1284p)
102
+#
103
+[env:sanguino1284p]
104
+platform                  = atmelavr
105
+extends                   = common_avr8
106
+board                     = sanguino_atmega1284p
107
+board_upload.maximum_size = 126976
108
+
109
+#
110
+# Melzi and clones (ATmega1284p)
111
+#
112
+[env:melzi]
113
+platform     = atmelavr
114
+extends      = env:sanguino1284p
115
+upload_speed = 57600
116
+
117
+#
118
+# Sanguinololu (ATmega1284p stock bootloader with tuned flags)
119
+#
120
+
121
+[tuned_1284p]
122
+build_flags = ${common.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -Wl,--relax -mcall-prologues
123
+
124
+[env:sanguino1284p_optimized]
125
+platform    = atmelavr
126
+extends     = env:melzi
127
+build_flags = ${tuned_1284p.build_flags}
128
+
129
+#
130
+# Melzi and clones (alias for sanguino1284p_optimized)
131
+#
132
+[env:melzi_optimized]
133
+platform = atmelavr
134
+extends  = env:sanguino1284p_optimized
135
+
136
+#
137
+# Melzi and clones (Optiboot bootloader)
138
+#
139
+[env:melzi_optiboot]
140
+platform     = atmelavr
141
+extends      = common_avr8
142
+board        = sanguino_atmega1284p
143
+upload_speed = 115200
144
+
145
+#
146
+# Melzi and clones (Zonestar Melzi2 with tuned flags)
147
+#
148
+[env:melzi_optiboot_optimized]
149
+platform    = atmelavr
150
+extends     = env:melzi_optiboot
151
+build_flags = ${tuned_1284p.build_flags}
152
+
153
+#
154
+# AT90USB1286 boards using CDC bootloader
155
+# - BRAINWAVE
156
+# - BRAINWAVE_PRO
157
+# - SAV_MKI
158
+# - TEENSYLU
159
+#
160
+[env:at90usb1286_cdc]
161
+platform   = teensy
162
+extends    = common_avr8
163
+board      = at90usb1286
164
+lib_ignore = ${env:common_avr8.lib_ignore}, Teensy_ADC, NativeEthernet
165
+
166
+#
167
+# AT90USB1286 boards using DFU bootloader
168
+# - Printrboard
169
+# - Printrboard Rev.F
170
+# - ? 5DPRINT ?
171
+#
172
+[env:at90usb1286_dfu]
173
+platform = teensy
174
+extends  = env:at90usb1286_cdc

+ 43
- 0
ini/due.ini Parādīt failu

@@ -0,0 +1,43 @@
1
+#
2
+# Marlin Firmware
3
+# PlatformIO Configuration File
4
+#
5
+
6
+#################################
7
+#                               #
8
+#       DUE Architecture        #
9
+#                               #
10
+#################################
11
+
12
+#
13
+# Due (Atmel SAM3X8E ARM Cortex-M3)
14
+#
15
+#  - RAMPS4DUE
16
+#  - RADDS
17
+#
18
+[env:DUE]
19
+platform   = atmelsam
20
+board      = due
21
+src_filter = ${common.default_src_filter} +<src/HAL/DUE> +<src/HAL/shared/backtrace>
22
+
23
+[env:DUE_USB]
24
+platform = atmelsam
25
+extends  = env:DUE
26
+board    = dueUSB
27
+
28
+#
29
+# Archim SAM
30
+#
31
+[common_DUE_archim]
32
+platform                 = atmelsam
33
+extends                  = env:DUE
34
+board                    = archim
35
+build_flags              = ${common.build_flags}
36
+  -DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON
37
+board_build.variants_dir = buildroot/share/PlatformIO/variants/
38
+extra_scripts            = ${common.extra_scripts}
39
+  Marlin/src/HAL/DUE/upload_extra_script.py
40
+
41
+[env:DUE_archim]
42
+platform = ${common_DUE_archim.platform}
43
+extends  = common_DUE_archim

+ 29
- 0
ini/esp32.ini Parādīt failu

@@ -0,0 +1,29 @@
1
+#
2
+# Marlin Firmware
3
+# PlatformIO Configuration File
4
+#
5
+
6
+#################################
7
+#                               #
8
+#      ESP32 Architecture       #
9
+#                               #
10
+#################################
11
+
12
+#
13
+# Espressif ESP32
14
+#
15
+[env:esp32]
16
+platform      = espressif32@2.1.0
17
+board         = esp32dev
18
+build_flags   = ${common.build_flags} -DCORE_DEBUG_LEVEL=0
19
+src_filter    = ${common.default_src_filter} +<src/HAL/ESP32>
20
+lib_ignore    = NativeEthernet
21
+upload_speed  = 500000
22
+monitor_speed = 250000
23
+#upload_port   = marlinesp.local
24
+#board_build.flash_mode = qio
25
+
26
+[env:FYSETC_E4]
27
+platform               = espressif32@1.11.2
28
+extends                = env:esp32
29
+board_build.partitions = default_16MB.csv

+ 218
- 0
ini/features.ini Parādīt failu

@@ -0,0 +1,218 @@
1
+#
2
+# Marlin Firmware
3
+# PlatformIO Configuration File
4
+#
5
+
6
+#################################
7
+#                               #
8
+#     Features Dependencies     #
9
+#                               #
10
+#################################
11
+
12
+[features]
13
+YHCB2004                = red-scorp/LiquidCrystal_AIP31068@^1.0.4, red-scorp/SoftSPIB@^1.1.1
14
+HAS_TFT_LVGL_UI         = lvgl=https://github.com/makerbase-mks/LVGL-6.1.1-MKS/archive/master.zip
15
+                          src_filter=+<src/lcd/extui/lib/mks_ui>
16
+                          extra_scripts=download_mks_assets.py
17
+POSTMORTEM_DEBUGGING    = src_filter=+<src/HAL/shared/cpu_exception> +<src/HAL/shared/backtrace>
18
+                          build_flags=-funwind-tables
19
+MKS_WIFI_MODULE         = QRCode=https://github.com/makerbase-mks/QRCode/archive/master.zip
20
+HAS_TRINAMIC_CONFIG     = TMCStepper@~0.7.1
21
+                          src_filter=+<src/feature/tmc_util.cpp> +<src/module/stepper/trinamic.cpp> +<src/gcode/feature/trinamic/M122.cpp> +<src/gcode/feature/trinamic/M906.cpp> +<src/gcode/feature/trinamic/M911-M914.cpp>
22
+HAS_STEALTHCHOP         = src_filter=+<src/gcode/feature/trinamic/M569.cpp>
23
+SR_LCD_3W_NL            = SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
24
+HAS_MOTOR_CURRENT_I2C   = SlowSoftI2CMaster
25
+                          src_filter=+<src/feature/digipot>
26
+HAS_TMC26X              = TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
27
+                          src_filter=+<src/module/TMC26X.cpp>
28
+HAS_L64XX               = Arduino-L6470@0.8.0
29
+                          src_filter=+<src/libs/L64XX> +<src/module/stepper/L64xx.cpp> +<src/gcode/feature/L6470> +<src/HAL/shared/HAL_spi_L6470.cpp>
30
+NEOPIXEL_LED            = Adafruit NeoPixel@1.5.0
31
+                          src_filter=+<src/feature/leds/neopixel.cpp>
32
+TEMP_.+_IS_MAX31865     = Adafruit MAX31865 library@~1.1.0
33
+USES_LIQUIDCRYSTAL      = bitbucket-fmalpartida/LiquidCrystal@1.5.0
34
+USES_LIQUIDCRYSTAL_I2C  = marcoschwartz/LiquidCrystal_I2C@1.1.4
35
+USES_LIQUIDTWI2         = LiquidTWI2@1.2.7
36
+HAS_WIRED_LCD           = src_filter=+<src/lcd/lcdprint.cpp>
37
+HAS_MARLINUI_HD44780    = src_filter=+<src/lcd/HD44780>
38
+HAS_MARLINUI_U8GLIB     = U8glib-HAL@~0.4.1
39
+                          src_filter=+<src/lcd/dogm>
40
+HAS_(FSMC|SPI)_TFT      = src_filter=+<src/HAL/STM32/tft> +<src/HAL/STM32F1/tft> +<src/lcd/tft_io>
41
+HAS_FSMC_TFT            = src_filter=+<src/HAL/STM32/tft/tft_fsmc.cpp> +<src/HAL/STM32F1/tft/tft_fsmc.cpp>
42
+HAS_SPI_TFT             = src_filter=+<src/HAL/STM32/tft/tft_spi.cpp> +<src/HAL/STM32F1/tft/tft_spi.cpp>
43
+I2C_EEPROM              = src_filter=+<src/HAL/shared/eeprom_if_i2c.cpp>
44
+SPI_EEPROM              = src_filter=+<src/HAL/shared/eeprom_if_spi.cpp>
45
+HAS_GRAPHICAL_TFT       = src_filter=+<src/lcd/tft>
46
+DWIN_CREALITY_LCD       = src_filter=+<src/lcd/dwin>
47
+IS_TFTGLCD_PANEL        = src_filter=+<src/lcd/TFTGLCD>
48
+HAS_TOUCH_BUTTONS       = src_filter=+<src/lcd/touch/touch_buttons.cpp>
49
+HAS_LCD_MENU            = src_filter=+<src/lcd/menu>
50
+HAS_GAMES               = src_filter=+<src/lcd/menu/game/game.cpp>
51
+MARLIN_BRICKOUT         = src_filter=+<src/lcd/menu/game/brickout.cpp>
52
+MARLIN_INVADERS         = src_filter=+<src/lcd/menu/game/invaders.cpp>
53
+MARLIN_MAZE             = src_filter=+<src/lcd/menu/game/maze.cpp>
54
+MARLIN_SNAKE            = src_filter=+<src/lcd/menu/game/snake.cpp>
55
+HAS_MENU_BACKLASH       = src_filter=+<src/lcd/menu/menu_backlash.cpp>
56
+HAS_MENU_BED_CORNERS    = src_filter=+<src/lcd/menu/menu_bed_corners.cpp>
57
+LCD_BED_LEVELING        = src_filter=+<src/lcd/menu/menu_bed_leveling.cpp>
58
+HAS_MENU_CANCELOBJECT   = src_filter=+<src/lcd/menu/menu_cancelobject.cpp>
59
+HAS_MENU_DELTA_CALIBRATE = src_filter=+<src/lcd/menu/menu_delta_calibrate.cpp>
60
+HAS_MENU_FILAMENT       = src_filter=+<src/lcd/menu/menu_filament.cpp>
61
+LCD_INFO_MENU           = src_filter=+<src/lcd/menu/menu_info.cpp>
62
+HAS_MENU_JOB_RECOVERY   = src_filter=+<src/lcd/menu/menu_job_recovery.cpp>
63
+HAS_MULTI_LANGUAGE      = src_filter=+<src/lcd/menu/menu_language.cpp>
64
+HAS_MENU_LED            = src_filter=+<src/lcd/menu/menu_led.cpp>
65
+HAS_MENU_MEDIA          = src_filter=+<src/lcd/menu/menu_media.cpp>
66
+HAS_MENU_MIXER          = src_filter=+<src/lcd/menu/menu_mixer.cpp>
67
+HAS_MENU_MMU2           = src_filter=+<src/lcd/menu/menu_mmu2.cpp>
68
+HAS_MENU_PASSWORD       = src_filter=+<src/lcd/menu/menu_password.cpp>
69
+HAS_MENU_POWER_MONITOR  = src_filter=+<src/lcd/menu/menu_power_monitor.cpp>
70
+HAS_MENU_CUTTER         = src_filter=+<src/lcd/menu/menu_spindle_laser.cpp>
71
+HAS_MENU_TEMPERATURE    = src_filter=+<src/lcd/menu/menu_temperature.cpp>
72
+HAS_MENU_TMC            = src_filter=+<src/lcd/menu/menu_tmc.cpp>
73
+HAS_MENU_TOUCH_SCREEN   = src_filter=+<src/lcd/menu/menu_touch_screen.cpp>
74
+HAS_MENU_TRAMMING       = src_filter=+<src/lcd/menu/menu_tramming.cpp>
75
+HAS_MENU_UBL            = src_filter=+<src/lcd/menu/menu_ubl.cpp>
76
+ANYCUBIC_LCD_CHIRON     = src_filter=+<src/lcd/extui/anycubic_chiron_lcd.cpp> +<src/lcd/extui/lib/anycubic_chiron>
77
+ANYCUBIC_LCD_I3MEGA     = src_filter=+<src/lcd/extui/anycubic_i3mega_lcd.cpp> +<src/lcd/extui/lib/anycubic_i3mega>
78
+NEXTION_TFT             = src_filter=+<src/lcd/extui/nextion_lcd.cpp> +<src/lcd/extui/lib/nextion>
79
+HAS_DGUS_LCD            = src_filter=+<src/lcd/extui/lib/dgus> +<src/lcd/extui/dgus_lcd.cpp>
80
+DGUS_LCD_UI_FYSETC      = src_filter=+<src/lcd/extui/lib/dgus/fysetc>
81
+DGUS_LCD_UI_HIPRECY     = src_filter=+<src/lcd/extui/lib/dgus/hiprecy>
82
+DGUS_LCD_UI_MKS         = src_filter=+<src/lcd/extui/lib/dgus/mks>
83
+DGUS_LCD_UI_ORIGIN      = src_filter=+<src/lcd/extui/lib/dgus/origin>
84
+TOUCH_UI_FTDI_EVE       = src_filter=+<src/lcd/extui/lib/ftdi_eve_touch_ui>
85
+EXTUI_EXAMPLE           = src_filter=+<src/lcd/extui/example.cpp>
86
+MALYAN_LCD              = src_filter=+<src/lcd/extui/malyan_lcd.cpp>
87
+USE_UHS2_USB            = src_filter=+<src/sd/usb_flashdrive/lib-uhs2>
88
+USE_UHS3_USB            = src_filter=+<src/sd/usb_flashdrive/lib-uhs3>
89
+USB_FLASH_DRIVE_SUPPORT = src_filter=+<src/sd/usb_flashdrive/Sd2Card_FlashDrive.cpp>
90
+AUTO_BED_LEVELING_BILINEAR = src_filter=+<src/feature/bedlevel/abl>
91
+AUTO_BED_LEVELING_(3POINT|(BI)?LINEAR) = src_filter=+<src/gcode/bedlevel/abl>
92
+MESH_BED_LEVELING       = src_filter=+<src/feature/bedlevel/mbl> +<src/gcode/bedlevel/mbl>
93
+AUTO_BED_LEVELING_UBL   = src_filter=+<src/feature/bedlevel/ubl> +<src/gcode/bedlevel/ubl>
94
+UBL_HILBERT_CURVE       = src_filter=+<src/feature/bedlevel/hilbert_curve.cpp>
95
+BACKLASH_COMPENSATION   = src_filter=+<src/feature/backlash.cpp>
96
+BARICUDA                = src_filter=+<src/feature/baricuda.cpp> +<src/gcode/feature/baricuda>
97
+BINARY_FILE_TRANSFER    = src_filter=+<src/feature/binary_stream.cpp> +<src/libs/heatshrink>
98
+BLTOUCH                 = src_filter=+<src/feature/bltouch.cpp>
99
+CANCEL_OBJECTS          = src_filter=+<src/feature/cancel_object.cpp> +<src/gcode/feature/cancel>
100
+CASE_LIGHT_ENABLE       = src_filter=+<src/feature/caselight.cpp> +<src/gcode/feature/caselight>
101
+EXTERNAL_CLOSED_LOOP_CONTROLLER = src_filter=+<src/feature/closedloop.cpp> +<src/gcode/calibrate/M12.cpp>
102
+USE_CONTROLLER_FAN      = src_filter=+<src/feature/controllerfan.cpp>
103
+HAS_MOTOR_CURRENT_DAC   = src_filter=+<src/feature/dac>
104
+DIRECT_STEPPING         = src_filter=+<src/feature/direct_stepping.cpp> +<src/gcode/motion/G6.cpp>
105
+EMERGENCY_PARSER        = src_filter=+<src/feature/e_parser.cpp> -<src/gcode/control/M108_*.cpp>
106
+I2C_POSITION_ENCODERS   = src_filter=+<src/feature/encoder_i2c.cpp>
107
+IIC_BL24CXX_EEPROM      = src_filter=+<src/libs/BL24CXX.cpp>
108
+HAS_SPI_FLASH           = src_filter=+<src/libs/W25Qxx.cpp>
109
+HAS_ETHERNET            = src_filter=+<src/feature/ethernet.cpp> +<src/gcode/feature/network/M552-M554.cpp>
110
+HAS_FANMUX              = src_filter=+<src/feature/fanmux.cpp>
111
+FILAMENT_WIDTH_SENSOR   = src_filter=+<src/feature/filwidth.cpp> +<src/gcode/feature/filwidth>
112
+FWRETRACT               = src_filter=+<src/feature/fwretract.cpp> +<src/gcode/feature/fwretract>
113
+HOST_ACTION_COMMANDS    = src_filter=+<src/feature/host_actions.cpp>
114
+HOTEND_IDLE_TIMEOUT     = src_filter=+<src/feature/hotend_idle.cpp>
115
+JOYSTICK                = src_filter=+<src/feature/joystick.cpp>
116
+BLINKM                  = src_filter=+<src/feature/leds/blinkm.cpp>
117
+HAS_COLOR_LEDS          = src_filter=+<src/feature/leds/leds.cpp> +<src/gcode/feature/leds/M150.cpp>
118
+PCA9533                 = src_filter=+<src/feature/leds/pca9533.cpp>
119
+PCA9632                 = src_filter=+<src/feature/leds/pca9632.cpp>
120
+PRINTER_EVENT_LEDS      = src_filter=+<src/feature/leds/printer_event_leds.cpp>
121
+TEMP_STAT_LEDS          = src_filter=+<src/feature/leds/tempstat.cpp>
122
+MAX7219_DEBUG           = src_filter=+<src/feature/max7219.cpp> +<src/gcode/feature/leds/M7219.cpp>
123
+HAS_MEATPACK            = src_filter=+<src/feature/meatpack.cpp>
124
+MIXING_EXTRUDER         = src_filter=+<src/feature/mixing.cpp> +<src/gcode/feature/mixing/M163-M165.cpp>
125
+HAS_PRUSA_MMU1          = src_filter=+<src/feature/mmu/mmu.cpp>
126
+HAS_PRUSA_MMU2          = src_filter=+<src/feature/mmu/mmu2.cpp> +<src/gcode/feature/prusa_MMU2>
127
+PASSWORD_FEATURE        = src_filter=+<src/feature/password> +<src/gcode/feature/password>
128
+ADVANCED_PAUSE_FEATURE  = src_filter=+<src/feature/pause.cpp> +<src/gcode/feature/pause/M600.cpp> +<src/gcode/feature/pause/M603.cpp>
129
+AUTO_POWER_CONTROL      = src_filter=+<src/feature/power.cpp>
130
+HAS_POWER_MONITOR       = src_filter=+<src/feature/power_monitor.cpp> +<src/gcode/feature/power_monitor>
131
+POWER_LOSS_RECOVERY     = src_filter=+<src/feature/powerloss.cpp> +<src/gcode/feature/powerloss>
132
+PROBE_TEMP_COMPENSATION = src_filter=+<src/feature/probe_temp_comp.cpp> +<src/gcode/calibrate/G76_M192_M871.cpp>
133
+HAS_FILAMENT_SENSOR     = src_filter=+<src/feature/runout.cpp> +<src/gcode/feature/runout>
134
+(EXT|MANUAL)_SOLENOID.* = src_filter=+<src/feature/solenoid.cpp> +<src/gcode/control/M380_M381.cpp>
135
+MK2_MULTIPLEXER         = src_filter=+<src/feature/snmm.cpp>
136
+HAS_CUTTER              = src_filter=+<src/feature/spindle_laser.cpp> +<src/gcode/control/M3-M5.cpp>
137
+EXPERIMENTAL_I2CBUS     = src_filter=+<src/feature/twibus.cpp> +<src/gcode/feature/i2c>
138
+MECHANICAL_GANTRY_CAL.+ = src_filter=+<src/gcode/calibrate/G34.cpp>
139
+Z_MULTI_ENDSTOPS        = src_filter=+<src/gcode/calibrate/G34_M422.cpp>
140
+Z_STEPPER_AUTO_ALIGN    = src_filter=+<src/feature/z_stepper_align.cpp> +<src/gcode/calibrate/G34_M422.cpp>
141
+G26_MESH_VALIDATION     = src_filter=+<src/gcode/bedlevel/G26.cpp>
142
+ASSISTED_TRAMMING       = src_filter=+<src/feature/tramming.cpp> +<src/gcode/bedlevel/G35.cpp>
143
+HAS_MESH                = src_filter=+<src/gcode/bedlevel/G42.cpp>
144
+HAS_LEVELING            = src_filter=+<src/gcode/bedlevel/M420.cpp> +<src/feature/bedlevel/bedlevel.cpp>
145
+DELTA_AUTO_CALIBRATION  = src_filter=+<src/gcode/calibrate/G33.cpp>
146
+CALIBRATION_GCODE       = src_filter=+<src/gcode/calibrate/G425.cpp>
147
+Z_MIN_PROBE_REPEATABILITY_TEST = src_filter=+<src/gcode/calibrate/M48.cpp>
148
+M100_FREE_MEMORY_WATCHER = src_filter=+<src/gcode/calibrate/M100.cpp>
149
+BACKLASH_GCODE          = src_filter=+<src/gcode/calibrate/M425.cpp>
150
+IS_KINEMATIC            = src_filter=+<src/gcode/calibrate/M665.cpp>
151
+HAS_EXTRA_ENDSTOPS      = src_filter=+<src/gcode/calibrate/M666.cpp>
152
+SKEW_CORRECTION_GCODE   = src_filter=+<src/gcode/calibrate/M852.cpp>
153
+DIRECT_PIN_CONTROL      = src_filter=+<src/gcode/control/M42.cpp> +<src/gcode/control/M226.cpp>
154
+PINS_DEBUGGING          = src_filter=+<src/gcode/config/M43.cpp>
155
+NO_VOLUMETRICS          = src_filter=-<src/gcode/config/M200-M205.cpp>
156
+HAS_MULTI_EXTRUDER      = src_filter=+<src/gcode/config/M217.cpp>
157
+HAS_HOTEND_OFFSET       = src_filter=+<src/gcode/config/M218.cpp>
158
+EDITABLE_SERVO_ANGLES   = src_filter=+<src/gcode/config/M281.cpp>
159
+PIDTEMP                 = src_filter=+<src/gcode/config/M301.cpp>
160
+PREVENT_COLD_EXTRUSION  = src_filter=+<src/gcode/config/M302.cpp>
161
+PIDTEMPBED              = src_filter=+<src/gcode/config/M304.cpp>
162
+HAS_USER_THERMISTORS    = src_filter=+<src/gcode/config/M305.cpp>
163
+SD_ABORT_ON_ENDSTOP_HIT = src_filter=+<src/gcode/config/M540.cpp>
164
+BAUD_RATE_GCODE         = src_filter=+<src/gcode/config/M575.cpp>
165
+HAS_SMART_EFF_MOD       = src_filter=+<src/gcode/config/M672.cpp>
166
+COOLANT_CONTROL         = src_filter=+<src/gcode/control/M7-M9.cpp>
167
+HAS_SOFTWARE_ENDSTOPS   = src_filter=+<src/gcode/control/M211.cpp>
168
+HAS_DUPLICATION_MODE    = src_filter=+<src/gcode/control/M605.cpp>
169
+LIN_ADVANCE             = src_filter=+<src/gcode/feature/advance>
170
+PHOTO_GCODE             = src_filter=+<src/gcode/feature/camera>
171
+CONTROLLER_FAN_EDITABLE = src_filter=+<src/gcode/feature/controllerfan>
172
+GCODE_MACROS            = src_filter=+<src/gcode/feature/macro>
173
+GRADIENT_MIX            = src_filter=+<src/gcode/feature/mixing/M166.cpp>
174
+HAS_SAVED_POSITIONS     = src_filter=+<src/gcode/feature/pause/G60.cpp> +<src/gcode/feature/pause/G61.cpp>
175
+PARK_HEAD_ON_PAUSE      = src_filter=+<src/gcode/feature/pause/M125.cpp>
176
+FILAMENT_LOAD_UNLOAD_GCODES = src_filter=+<src/gcode/feature/pause/M701_M702.cpp>
177
+CNC_WORKSPACE_PLANES    = src_filter=+<src/gcode/geometry/G17-G19.cpp>
178
+CNC_COORDINATE_SYSTEMS  = src_filter=+<src/gcode/geometry/G53-G59.cpp>
179
+HAS_M206_COMMAND        = src_filter=+<src/gcode/geometry/M206_M428.cpp>
180
+EXPECTED_PRINTER_CHECK  = src_filter=+<src/gcode/host/M16.cpp>
181
+HOST_KEEPALIVE_FEATURE  = src_filter=+<src/gcode/host/M113.cpp>
182
+REPETIER_GCODE_M360     = src_filter=+<src/gcode/host/M360.cpp>
183
+HAS_GCODE_M876          = src_filter=+<src/gcode/host/M876.cpp>
184
+HAS_RESUME_CONTINUE     = src_filter=+<src/gcode/lcd/M0_M1.cpp>
185
+HAS_LCD_CONTRAST        = src_filter=+<src/gcode/lcd/M250.cpp>
186
+LCD_SET_PROGRESS_MANUALLY = src_filter=+<src/gcode/lcd/M73.cpp>
187
+TOUCH_SCREEN_CALIBRATION = src_filter=+<src/gcode/lcd/M995.cpp>
188
+ARC_SUPPORT             = src_filter=+<src/gcode/motion/G2_G3.cpp>
189
+GCODE_MOTION_MODES      = src_filter=+<src/gcode/motion/G80.cpp>
190
+BABYSTEPPING            = src_filter=+<src/gcode/motion/M290.cpp> +<src/feature/babystep.cpp>
191
+Z_PROBE_SLED            = src_filter=+<src/gcode/probe/G31_G32.cpp>
192
+G38_PROBE_TARGET        = src_filter=+<src/gcode/probe/G38.cpp>
193
+MAGNETIC_PARKING_EXTRUDER = src_filter=+<src/gcode/probe/M951.cpp>
194
+SDSUPPORT               = src_filter=+<src/sd/cardreader.cpp> +<src/sd/Sd2Card.cpp> +<src/sd/SdBaseFile.cpp> +<src/sd/SdFatUtil.cpp> +<src/sd/SdFile.cpp> +<src/sd/SdVolume.cpp> +<src/gcode/sd>
195
+HAS_MEDIA_SUBCALLS      = src_filter=+<src/gcode/sd/M32.cpp>
196
+GCODE_REPEAT_MARKERS    = src_filter=+<src/feature/repeat.cpp> +<src/gcode/sd/M808.cpp>
197
+HAS_EXTRUDERS           = src_filter=+<src/gcode/temp/M104_M109.cpp> +<src/gcode/config/M221.cpp>
198
+HAS_COOLER              = src_filter=+<src/feature/cooler.cpp> +<src/gcode/temp/M143_M193.cpp>
199
+AUTO_REPORT_TEMPERATURES = src_filter=+<src/gcode/temp/M155.cpp>
200
+INCH_MODE_SUPPORT       = src_filter=+<src/gcode/units/G20_G21.cpp>
201
+TEMPERATURE_UNITS_SUPPORT = src_filter=+<src/gcode/units/M149.cpp>
202
+NEED_HEX_PRINT          = src_filter=+<src/libs/hex_print.cpp>
203
+NEED_LSF                = src_filter=+<src/libs/least_squares_fit.cpp>
204
+NOZZLE_PARK_FEATURE     = src_filter=+<src/libs/nozzle.cpp> +<src/gcode/feature/pause/G27.cpp>
205
+NOZZLE_CLEAN_FEATURE    = src_filter=+<src/libs/nozzle.cpp> +<src/gcode/feature/clean>
206
+DELTA                   = src_filter=+<src/module/delta.cpp> +<src/gcode/calibrate/M666.cpp>
207
+BEZIER_CURVE_SUPPORT    = src_filter=+<src/module/planner_bezier.cpp> +<src/gcode/motion/G5.cpp>
208
+PRINTCOUNTER            = src_filter=+<src/module/printcounter.cpp>
209
+HAS_BED_PROBE           = src_filter=+<src/module/probe.cpp> +<src/gcode/probe/G30.cpp> +<src/gcode/probe/M401_M402.cpp> +<src/gcode/probe/M851.cpp>
210
+IS_SCARA                = src_filter=+<src/module/scara.cpp>
211
+HAS_SERVOS              = src_filter=+<src/module/servo.cpp> +<src/gcode/control/M280.cpp>
212
+MORGAN_SCARA            = src_filter=+<src/gcode/scara>
213
+HAS_MICROSTEPS          = src_filter=+<src/gcode/control/M350_M351.cpp>
214
+(ESP3D_)?WIFISUPPORT    = AsyncTCP, ESP Async WebServer
215
+  ESP3DLib=https://github.com/luc-github/ESP3DLib/archive/master.zip
216
+  arduinoWebSockets=links2004/WebSockets@2.3.4
217
+  luc-github/ESP32SSDP@^1.1.1
218
+  lib_ignore=ESPAsyncTCP

+ 44
- 0
ini/lpc176x.ini Parādīt failu

@@ -0,0 +1,44 @@
1
+#
2
+# Marlin Firmware
3
+# PlatformIO Configuration File
4
+#
5
+
6
+#################################
7
+#                               #
8
+#     LPC176x Architecture      #
9
+#                               #
10
+#################################
11
+
12
+#
13
+# NXP LPC176x ARM Cortex-M3
14
+#
15
+[common_LPC]
16
+platform          = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.3.zip
17
+platform_packages = framework-arduino-lpc176x@^0.2.6
18
+board             = nxp_lpc1768
19
+lib_ldf_mode      = off
20
+lib_compat_mode   = strict
21
+extra_scripts     = ${common.extra_scripts}
22
+  Marlin/src/HAL/LPC1768/upload_extra_script.py
23
+src_filter        = ${common.default_src_filter} +<src/HAL/LPC1768> +<src/HAL/shared/backtrace>
24
+lib_deps          = ${common.lib_deps}
25
+  Servo
26
+custom_marlin.USES_LIQUIDCRYSTAL = arduino-libraries/LiquidCrystal@~1.0.7
27
+custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/1.5.0.zip
28
+build_flags       = ${common.build_flags} -DU8G_HAL_LINKS -IMarlin/src/HAL/LPC1768/include -IMarlin/src/HAL/LPC1768/u8g
29
+  # debug options for backtrace
30
+  #-funwind-tables
31
+  #-mpoke-function-name
32
+
33
+#
34
+# NXP LPC176x ARM Cortex-M3
35
+#
36
+[env:LPC1768]
37
+platform = ${common_LPC.platform}
38
+extends  = common_LPC
39
+board    = nxp_lpc1768
40
+
41
+[env:LPC1769]
42
+platform = ${common_LPC.platform}
43
+extends  = common_LPC
44
+board    = nxp_lpc1769

+ 23
- 0
ini/native.ini Parādīt failu

@@ -0,0 +1,23 @@
1
+#
2
+# Marlin Firmware
3
+# PlatformIO Configuration File
4
+#
5
+
6
+#################################
7
+#                               #
8
+#      Native / Simulation      #
9
+#                               #
10
+#################################
11
+
12
+#
13
+# No supported Arduino libraries, base Marlin only
14
+#
15
+[env:linux_native]
16
+platform        = native
17
+framework       =
18
+build_flags     = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread -D__MARLIN_FIRMWARE__ -Wno-expansion-to-defined
19
+src_build_flags = -Wall -IMarlin/src/HAL/LINUX/include
20
+build_unflags   = -Wall
21
+lib_ldf_mode    = off
22
+lib_deps        =
23
+src_filter      = ${common.default_src_filter} +<src/HAL/LINUX>

+ 27
- 0
ini/samd51.ini Parādīt failu

@@ -0,0 +1,27 @@
1
+#
2
+# Marlin Firmware
3
+# PlatformIO Configuration File
4
+#
5
+
6
+#################################
7
+#                               #
8
+#      SAMD51 Architecture      #
9
+#                               #
10
+#################################
11
+
12
+#
13
+# Adafruit Grand Central M4 (Atmel SAMD51P20A ARM Cortex-M4)
14
+#
15
+[env:SAMD51_grandcentral_m4]
16
+platform       = atmelsam
17
+board          = adafruit_grandcentral_m4
18
+build_flags    = ${common.build_flags} -std=gnu++17
19
+build_unflags  = -std=gnu++11
20
+src_filter     = ${common.default_src_filter} +<src/HAL/SAMD51>
21
+lib_deps       = ${common.lib_deps}
22
+  SoftwareSerialM
23
+  Adafruit SPIFlash
24
+extra_scripts  = ${common.extra_scripts}
25
+  pre:buildroot/share/PlatformIO/scripts/SAMD51_grandcentral_m4.py
26
+custom_marlin.SDSUPPORT = SdFat - Adafruit Fork
27
+debug_tool     = jlink

+ 42
- 0
ini/stm32f0.ini Parādīt failu

@@ -0,0 +1,42 @@
1
+#
2
+# Marlin Firmware
3
+# PlatformIO Configuration File
4
+#
5
+
6
+#################################
7
+#                               #
8
+#     STM32F0 Architecture      #
9
+#                               #
10
+#################################
11
+
12
+#
13
+# Malyan M200 v2 (STM32F070RB)
14
+#
15
+[env:STM32F070RB_malyan]
16
+platform    = ${common_stm32.platform}
17
+extends     = common_stm32
18
+board       = malyanM200v2
19
+build_flags = ${common_stm32.build_flags} -DHAL_PCD_MODULE_ENABLED
20
+  -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing
21
+  -DCUSTOM_STARTUP_FILE
22
+
23
+#
24
+# Malyan M200 v2 (STM32F070CB)
25
+#
26
+[env:STM32F070CB_malyan]
27
+platform    = ${common_stm32.platform}
28
+extends     = common_stm32
29
+board       = malyanm200_f070cb
30
+build_flags = ${common_stm32.build_flags}
31
+  -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED -DCUSTOM_STARTUP_FILE
32
+
33
+#
34
+# Malyan M300 (STM32F070CB)
35
+#
36
+[env:malyan_M300]
37
+platform    = ${common_stm32.platform}
38
+extends     = common_stm32
39
+board       = malyanm300_f070cb
40
+build_flags = ${common_stm32.build_flags}
41
+  -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED
42
+src_filter  = ${common.default_src_filter} +<src/HAL/STM32>

+ 439
- 0
ini/stm32f1.ini Parādīt failu

@@ -0,0 +1,439 @@
1
+#
2
+# Marlin Firmware
3
+# PlatformIO Configuration File
4
+#
5
+
6
+#################################
7
+#                               #
8
+#     STM32F1 Architecture      #
9
+#                               #
10
+#################################
11
+
12
+#
13
+# HAL/STM32 Base Environment values
14
+#
15
+[common_stm32]
16
+platform      = ststm32@~12.0
17
+build_flags   = ${common.build_flags}
18
+  -std=gnu++14
19
+  -DUSBCON -DUSBD_USE_CDC
20
+  -DTIM_IRQ_PRIO=13
21
+  -DADC_RESOLUTION=12
22
+build_unflags = -std=gnu++11
23
+src_filter    = ${common.default_src_filter} +<src/HAL/STM32> +<src/HAL/shared/backtrace>
24
+
25
+#
26
+# HAL/STM32F1 Common Environment values
27
+#
28
+[common_stm32f1]
29
+platform          = ststm32@~12.0
30
+board_build.core  = maple
31
+build_flags       = !python Marlin/src/HAL/STM32F1/build_flags.py
32
+  ${common.build_flags}
33
+  -DARDUINO_ARCH_STM32
34
+build_unflags     = -std=gnu11 -std=gnu++11
35
+src_filter        = ${common.default_src_filter} +<src/HAL/STM32F1>
36
+lib_ignore        = SPI, FreeRTOS701, FreeRTOS821
37
+lib_deps          = ${common.lib_deps}
38
+  SoftwareSerialM
39
+platform_packages = tool-stm32duino
40
+extra_scripts     = ${common.extra_scripts}
41
+  pre:buildroot/share/PlatformIO/scripts/fix_framework_weakness.py
42
+
43
+#
44
+# STM32F103RC
45
+#
46
+[env:STM32F103RC]
47
+platform          = ${common_stm32f1.platform}
48
+extends           = common_stm32f1
49
+board             = genericSTM32F103RC
50
+monitor_speed     = 115200
51
+
52
+#
53
+# MEEB_3DP (STM32F103RCT6 with 512K)
54
+#
55
+[env:STM32F103RC_meeb]
56
+platform          = ${common_stm32f1.platform}
57
+extends           = common_stm32f1
58
+board             = MEEB_3DP
59
+build_flags       = ${common_stm32f1.build_flags}
60
+                    -DDEBUG_LEVEL=0
61
+                    -DSS_TIMER=4
62
+                    -DSTM32_FLASH_SIZE=512
63
+                    -DHSE_VALUE=12000000U
64
+                    -DUSE_USB_COMPOSITE
65
+                    -DVECT_TAB_OFFSET=0x2000
66
+                    -DGENERIC_BOOTLOADER
67
+extra_scripts     = ${common_stm32f1.extra_scripts}
68
+  pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
69
+  buildroot/share/PlatformIO/scripts/STM32F103RC_MEEB_3DP.py
70
+lib_deps          = ${common.lib_deps}
71
+  SoftwareSerialM
72
+  USBComposite for STM32F1@0.91
73
+custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/ccccmagicboy/Adafruit_NeoPixel#meeb_3dp_use
74
+debug_tool        = stlink
75
+upload_protocol   = dfu
76
+
77
+#
78
+# STM32F103RC_fysetc
79
+#
80
+[env:STM32F103RC_fysetc]
81
+platform          = ${common_stm32f1.platform}
82
+extends           = env:STM32F103RC
83
+extra_scripts     = ${common_stm32f1.extra_scripts}
84
+  buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
85
+build_flags       = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0
86
+lib_ldf_mode      = chain
87
+debug_tool        = stlink
88
+upload_protocol   = serial
89
+
90
+#
91
+# BigTree SKR Mini V1.1 / SKR mini E3 / SKR E3 DIP (STM32F103RCT6 ARM Cortex-M3)
92
+#
93
+#   STM32F103RC_btt ............. RCT6 with 256K
94
+#   STM32F103RC_btt_USB ......... RCT6 with 256K (USB mass storage)
95
+#   STM32F103RC_btt_512K ........ RCT6 with 512K
96
+#   STM32F103RC_btt_512K_USB .... RCT6 with 512K (USB mass storage)
97
+#
98
+# WARNING! If you have an SKR Mini v1.1 or an SKR Mini E3 1.0 / 1.2 / 2.0 / DIP
99
+# and experience a printer freeze, re-flash Marlin using the regular (non-512K)
100
+# build option. 256K chips may be re-branded 512K chips, but this means the
101
+# upper 256K is sketchy, and failure is very likely.
102
+#
103
+
104
+[env:STM32F103RC_btt]
105
+platform          = ${common_stm32f1.platform}
106
+extends           = env:STM32F103RC
107
+extra_scripts     = ${common_stm32f1.extra_scripts}
108
+  buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
109
+build_flags       = ${common_stm32f1.build_flags}
110
+  -DDEBUG_LEVEL=0 -DSS_TIMER=4
111
+monitor_speed     = 115200
112
+
113
+[env:STM32F103RC_btt_USB]
114
+platform          = ${common_stm32f1.platform}
115
+extends           = env:STM32F103RC_btt
116
+build_flags       = ${env:STM32F103RC_btt.build_flags} -DUSE_USB_COMPOSITE
117
+lib_deps          = ${env:STM32F103RC_btt.lib_deps}
118
+  USBComposite for STM32F1@0.91
119
+
120
+[env:STM32F103RC_btt_512K]
121
+platform          = ${common_stm32f1.platform}
122
+extends           = env:STM32F103RC_btt
123
+board_upload.maximum_size=524288
124
+build_flags       = ${env:STM32F103RC_btt.build_flags} -DSTM32_FLASH_SIZE=512
125
+
126
+[env:STM32F103RC_btt_512K_USB]
127
+platform          = ${common_stm32f1.platform}
128
+extends           = env:STM32F103RC_btt_512K
129
+build_flags       = ${env:STM32F103RC_btt_512K.build_flags} -DUSE_USB_COMPOSITE
130
+lib_deps          = ${env:STM32F103RC_btt_512K.lib_deps}
131
+  USBComposite for STM32F1@0.91
132
+
133
+#
134
+# STM32F103RE
135
+#
136
+[env:STM32F103RE]
137
+platform          = ${common_stm32f1.platform}
138
+extends           = common_stm32f1
139
+board             = genericSTM32F103RE
140
+monitor_speed     = 115200
141
+
142
+#
143
+#   STM32F103RE_btt ............. RET6
144
+#   STM32F103RE_btt_USB ......... RET6 (USB mass storage)
145
+#
146
+[env:STM32F103RE_btt]
147
+platform          = ${common_stm32f1.platform}
148
+extends           = env:STM32F103RE
149
+extra_scripts     = ${common_stm32f1.extra_scripts}
150
+  buildroot/share/PlatformIO/scripts/STM32F103RE_SKR_E3_DIP.py
151
+build_flags       = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
152
+debug_tool        = stlink
153
+upload_protocol   = stlink
154
+
155
+[env:STM32F103RE_btt_USB]
156
+platform          = ${common_stm32f1.platform}
157
+extends           = env:STM32F103RE_btt
158
+build_flags       = ${env:STM32F103RE_btt.build_flags} -DUSE_USB_COMPOSITE
159
+lib_deps          = ${common_stm32f1.lib_deps}
160
+  USBComposite for STM32F1@0.91
161
+
162
+#
163
+# Geeetech GTM32 (STM32F103VET6)
164
+#
165
+[env:STM32F103VE_GTM32]
166
+platform        = ${common_stm32f1.platform}
167
+extends         = common_stm32f1
168
+board           = genericSTM32F103VE
169
+build_flags     = ${common_stm32f1.build_flags}
170
+  -ffunction-sections -fdata-sections -nostdlib -MMD
171
+  -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1 -DBOARD_generic_stm32f103v
172
+  -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DVECT_TAB_ADDR=0x8000000
173
+  -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
174
+upload_protocol = serial
175
+
176
+#
177
+# Longer 3D board in Alfawise U20 (STM32F103VET6)
178
+#
179
+[env:STM32F103VE_longer]
180
+platform      = ${common_stm32f1.platform}
181
+extends       = common_stm32f1
182
+board         = genericSTM32F103VE
183
+extra_scripts = ${common_stm32f1.extra_scripts}
184
+  buildroot/share/PlatformIO/scripts/STM32F103VE_longer.py
185
+build_flags   = ${common_stm32f1.build_flags}
186
+  -DMCU_STM32F103VE -DSTM32F1xx -USERIAL_USB -DU20 -DTS_V12
187
+build_unflags = ${common_stm32f1.build_unflags}
188
+  -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
189
+
190
+#
191
+# MKS Robin Mini (STM32F103VET6)
192
+#
193
+[env:mks_robin_mini]
194
+platform      = ${common_stm32f1.platform}
195
+extends       = common_stm32f1
196
+board         = genericSTM32F103VE
197
+extra_scripts = ${common_stm32f1.extra_scripts}
198
+  buildroot/share/PlatformIO/scripts/mks_robin_mini.py
199
+build_flags   = ${common_stm32f1.build_flags}
200
+  -DMCU_STM32F103VE
201
+
202
+#
203
+# MKS Robin Nano (STM32F103VET6)
204
+#
205
+[env:mks_robin_nano35]
206
+platform        = ${common_stm32f1.platform}
207
+extends         = common_stm32f1
208
+board           = genericSTM32F103VE
209
+extra_scripts   = ${common_stm32f1.extra_scripts}
210
+  buildroot/share/PlatformIO/scripts/mks_robin_nano35.py
211
+build_flags     = ${common_stm32f1.build_flags}
212
+  -DMCU_STM32F103VE -DSS_TIMER=4
213
+debug_tool      = jlink
214
+upload_protocol = jlink
215
+
216
+#
217
+# MKS Robin (STM32F103ZET6)
218
+#
219
+[env:mks_robin]
220
+platform      = ${common_stm32f1.platform}
221
+extends       = common_stm32f1
222
+board         = genericSTM32F103ZE
223
+extra_scripts = ${common_stm32f1.extra_scripts}
224
+  buildroot/share/PlatformIO/scripts/mks_robin.py
225
+build_flags   = ${common_stm32f1.build_flags}
226
+  -DSS_TIMER=4 -DSTM32_XL_DENSITY
227
+
228
+# MKS Robin (STM32F103ZET6)
229
+# Uses HAL STM32 to support Marlin UI for TFT screen with optional touch panel
230
+#
231
+[env:mks_robin_stm32]
232
+platform             = ${common_stm32.platform}
233
+extends              = common_stm32
234
+board                = genericSTM32F103ZE
235
+board_build.core     = stm32
236
+board_build.variant  = MARLIN_F103Zx
237
+board_build.ldscript = ldscript.ld
238
+board_build.offset   = 0x7000
239
+board_build.encrypt  = Yes
240
+board_build.firmware = Robin.bin
241
+build_flags          = ${common_stm32.build_flags}
242
+  -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
243
+build_unflags        = ${common_stm32.build_unflags}
244
+ -DUSBCON -DUSBD_USE_CDC
245
+extra_scripts        = ${common.extra_scripts}
246
+  pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
247
+  buildroot/share/PlatformIO/scripts/stm32_bootloader.py
248
+  buildroot/share/PlatformIO/scripts/mks_encrypt.py
249
+lib_deps             =
250
+
251
+#
252
+# MKS Robin Pro (STM32F103ZET6)
253
+#
254
+[env:mks_robin_pro]
255
+platform      = ${common_stm32f1.platform}
256
+extends       = env:mks_robin
257
+extra_scripts = ${common_stm32f1.extra_scripts}
258
+  buildroot/share/PlatformIO/scripts/mks_robin_pro.py
259
+
260
+#
261
+# TRIGORILLA PRO (STM32F103ZET6)
262
+#
263
+[env:trigorilla_pro]
264
+platform      = ${common_stm32f1.platform}
265
+extends       = env:mks_robin
266
+extra_scripts = ${common_stm32f1.extra_scripts}
267
+
268
+#
269
+# MKS Robin E3D (STM32F103RCT6) and
270
+# MKS Robin E3 with TMC2209
271
+#
272
+[env:mks_robin_e3]
273
+platform      = ${common_stm32f1.platform}
274
+extends       = common_stm32f1
275
+board         = genericSTM32F103RC
276
+platform_packages = tool-stm32duino
277
+extra_scripts = ${common_stm32f1.extra_scripts}
278
+  buildroot/share/PlatformIO/scripts/mks_robin_e3.py
279
+build_flags   = ${common_stm32f1.build_flags}
280
+  -DDEBUG_LEVEL=0 -DSS_TIMER=4
281
+
282
+#
283
+# MKS Robin E3p (STM32F103VET6)
284
+#  - LVGL UI
285
+#
286
+[env:mks_robin_e3p]
287
+platform        = ${common_stm32f1.platform}
288
+extends         = common_stm32f1
289
+board           = genericSTM32F103VE
290
+extra_scripts   = ${common_stm32f1.extra_scripts}
291
+  buildroot/share/PlatformIO/scripts/mks_robin_e3p.py
292
+build_flags     = ${common_stm32f1.build_flags}
293
+  -DMCU_STM32F103VE -DSS_TIMER=4
294
+debug_tool      = jlink
295
+upload_protocol = jlink
296
+
297
+#
298
+# MKS Robin Lite/Lite2 (STM32F103RCT6)
299
+#
300
+[env:mks_robin_lite]
301
+platform      = ${common_stm32f1.platform}
302
+extends       = common_stm32f1
303
+board         = genericSTM32F103RC
304
+extra_scripts = ${common_stm32f1.extra_scripts}
305
+  buildroot/share/PlatformIO/scripts/mks_robin_lite.py
306
+
307
+#
308
+# MKS ROBIN LITE3 (STM32F103RCT6)
309
+#
310
+[env:mks_robin_lite3]
311
+platform      = ${common_stm32f1.platform}
312
+extends       = common_stm32f1
313
+board         = genericSTM32F103RC
314
+extra_scripts = ${common_stm32f1.extra_scripts}
315
+  buildroot/share/PlatformIO/scripts/mks_robin_lite3.py
316
+
317
+#
318
+# JGAurora A5S A1 (STM32F103ZET6)
319
+#
320
+[env:jgaurora_a5s_a1]
321
+platform      = ${common_stm32f1.platform}
322
+extends       = common_stm32f1
323
+board         = genericSTM32F103ZE
324
+extra_scripts = ${common_stm32f1.extra_scripts}
325
+  buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
326
+build_flags   = ${common_stm32f1.build_flags}
327
+  -DSTM32F1xx -DSTM32_XL_DENSITY
328
+
329
+#
330
+# Malyan M200 (STM32F103CB)
331
+#
332
+[env:STM32F103CB_malyan]
333
+platform      = ${common_stm32f1.platform}
334
+extends       = common_stm32f1
335
+board         = malyanM200
336
+build_flags   = ${common_stm32f1.build_flags}
337
+  -DMCU_STM32F103CB -D__STM32F1__=1 -std=c++1y -DSERIAL_USB -ffunction-sections -fdata-sections
338
+  -Wl,--gc-sections -DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
339
+lib_ignore    = ${common_stm32f1.lib_ignore}
340
+  SoftwareSerialM
341
+
342
+#
343
+# Chitu boards like Tronxy X5s (STM32F103ZET6)
344
+#
345
+[env:chitu_f103]
346
+platform      = ${common_stm32f1.platform}
347
+extends       = common_stm32f1
348
+board         = CHITU_F103
349
+extra_scripts = pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
350
+  pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
351
+  buildroot/share/PlatformIO/scripts/chitu_crypt.py
352
+build_flags   = ${common_stm32f1.build_flags}
353
+  -DSTM32F1xx -DSTM32_XL_DENSITY
354
+build_unflags = ${common_stm32f1.build_unflags}
355
+  -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
356
+
357
+#
358
+# Some Chitu V5 boards have a problem with GPIO init.
359
+# Use this target if G28 or G29 are always failing.
360
+#
361
+[env:chitu_v5_gpio_init]
362
+platform      = ${common_stm32f1.platform}
363
+extends       = env:chitu_f103
364
+build_flags   = ${env:chitu_f103.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
365
+
366
+#
367
+# Creality (STM32F103RET6)
368
+#
369
+[env:STM32F103RET6_creality]
370
+platform        = ${env:STM32F103RE.platform}
371
+extends         = env:STM32F103RE
372
+build_flags     = ${env:STM32F103RE.build_flags} -DTEMP_TIMER_CHAN=4
373
+extra_scripts   = ${env:STM32F103RE.extra_scripts}
374
+  pre:buildroot/share/PlatformIO/scripts/random-bin.py
375
+  buildroot/share/PlatformIO/scripts/STM32F103RET6_creality.py
376
+debug_tool      = jlink
377
+upload_protocol = jlink
378
+
379
+#
380
+# FLSUN QQS Pro (STM32F103VET6) using hal STM32
381
+# board Hispeedv1
382
+#
383
+[env:flsun_hispeedv1]
384
+platform             = ${common_stm32.platform}
385
+extends              = common_stm32
386
+build_flags          = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
387
+board                = genericSTM32F103VE
388
+board_build.core     = stm32
389
+board_build.variant  = MARLIN_F103Vx
390
+board_build.ldscript = ldscript.ld
391
+board_build.offset   = 0x7000
392
+board_build.firmware = Robin_mini.bin
393
+board_build.encrypt  = Yes
394
+board_upload.offset_address = 0x08007000
395
+build_unflags        = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
396
+extra_scripts        = ${common.extra_scripts}
397
+  pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
398
+  buildroot/share/PlatformIO/scripts/stm32_bootloader.py
399
+  buildroot/share/PlatformIO/scripts/mks_encrypt.py
400
+
401
+#
402
+# MKS Robin Nano V1.2 and V2 using hal STM32
403
+#
404
+[env:mks_robin_nano35_stm32]
405
+platform             = ${common_stm32.platform}
406
+extends              = common_stm32
407
+build_flags          = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
408
+board                = genericSTM32F103VE
409
+board_build.core     = stm32
410
+board_build.variant  = MARLIN_F103Vx
411
+board_build.ldscript = ldscript.ld
412
+board_build.offset   = 0x7000
413
+board_build.encrypt  = Yes
414
+board_build.firmware = Robin_nano35.bin
415
+board_upload.offset_address = 0x08007000
416
+build_unflags        = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
417
+debug_tool           = jlink
418
+upload_protocol      = jlink
419
+extra_scripts        = ${common.extra_scripts}
420
+  pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
421
+  buildroot/share/PlatformIO/scripts/stm32_bootloader.py
422
+  buildroot/share/PlatformIO/scripts/mks_encrypt.py
423
+
424
+#
425
+# Mingda MPX_ARM_MINI
426
+#
427
+[env:mingda_mpx_arm_mini]
428
+platform             = ${common_stm32.platform}
429
+extends              = common_stm32
430
+board                = genericSTM32F103ZE
431
+board_build.core     = stm32
432
+board_build.variant  = MARLIN_F103Zx
433
+board_build.ldscript = ldscript.ld
434
+board_build.offset   = 0x10000
435
+build_flags          = ${common_stm32.build_flags} -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
436
+build_unflags        = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
437
+extra_scripts        = ${common.extra_scripts}
438
+  pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
439
+  buildroot/share/PlatformIO/scripts/stm32_bootloader.py

+ 371
- 0
ini/stm32f4.ini Parādīt failu

@@ -0,0 +1,371 @@
1
+#
2
+# Marlin Firmware
3
+# PlatformIO Configuration File
4
+#
5
+
6
+#################################
7
+#                               #
8
+#     STM32F4 Architecture      #
9
+#                               #
10
+#################################
11
+
12
+#
13
+# ARMED (STM32)
14
+#
15
+[env:ARMED]
16
+platform      = ${common_stm32.platform}
17
+extends       = common_stm32
18
+board         = armed_v1
19
+build_flags   = ${common_stm32.build_flags}
20
+  -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing
21
+
22
+#
23
+# STM32F401VE
24
+# 'STEVAL-3DP001V1' STM32F401VE board - https://www.st.com/en/evaluation-tools/steval-3dp001v1.html
25
+#
26
+[env:STM32F401VE_STEVAL]
27
+platform          = ${common_stm32.platform}
28
+extends           = common_stm32
29
+board             = STEVAL_STM32F401VE
30
+build_flags       = ${common_stm32.build_flags}
31
+  -DARDUINO_STEVAL -DSTM32F401xE
32
+  -DDISABLE_GENERIC_SERIALUSB -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
33
+extra_scripts     = ${common.extra_scripts}
34
+  pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
35
+  buildroot/share/PlatformIO/scripts/STM32F401VE_STEVAL.py
36
+
37
+#
38
+# STM32F401RC
39
+#
40
+[env:FYSETC_CHEETAH_V20]
41
+platform          = ${common_stm32.platform}
42
+extends           = common_stm32
43
+board             = FYSETC_CHEETAH_V20
44
+build_flags       = ${common_stm32.build_flags} -DSTM32F401xC -DVECT_TAB_OFFSET=0xC000
45
+extra_scripts     = ${common.extra_scripts}
46
+  pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
47
+  buildroot/share/PlatformIO/scripts/FYSETC_CHEETAH_V20.py
48
+
49
+#
50
+# FLYF407ZG
51
+#
52
+[env:FLYF407ZG]
53
+platform          = ${common_stm32.platform}
54
+extends           = common_stm32
55
+board             = FLYF407ZG
56
+build_flags       = ${common_stm32.build_flags}
57
+  -DVECT_TAB_OFFSET=0x8000
58
+extra_scripts     = ${common.extra_scripts}
59
+  pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
60
+
61
+#
62
+# FLY MINI(stm32f103rct6)
63
+#
64
+[env:FLY_MINI]
65
+platform          = ${common_stm32f1.platform}
66
+extends           = common_stm32f1
67
+board             = genericSTM32F103RC
68
+extra_scripts     = ${common_stm32f1.extra_scripts}
69
+ buildroot/share/PlatformIO/scripts/fly_mini.py
70
+build_flags       = ${common_stm32f1.build_flags}
71
+ -DDEBUG_LEVEL=0 -DSS_TIMER=4
72
+
73
+#
74
+# FYSETC S6 (STM32F446VET6 ARM Cortex-M4)
75
+#
76
+[env:FYSETC_S6]
77
+platform          = ${common_stm32.platform}
78
+extends           = common_stm32
79
+platform_packages = tool-stm32duino
80
+board             = marlin_fysetc_s6
81
+build_flags       = ${common_stm32.build_flags}
82
+  -DVECT_TAB_OFFSET=0x10000
83
+  -DHAL_PCD_MODULE_ENABLED
84
+extra_scripts     = ${common.extra_scripts}
85
+  pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
86
+debug_tool        = stlink
87
+upload_protocol   = dfu
88
+upload_command    = dfu-util -a 0 -s 0x08010000:leave -D "$SOURCE"
89
+
90
+#
91
+# STM32F407VET6 with RAMPS-like shield
92
+# 'Black' STM32F407VET6 board - https://wiki.stm32duino.com/index.php?title=STM32F407
93
+# Shield - https://github.com/jmz52/Hardware
94
+#
95
+[env:STM32F407VE_black]
96
+platform          = ${common_stm32.platform}
97
+extends           = common_stm32
98
+board             = blackSTM32F407VET6
99
+build_flags       = ${common_stm32.build_flags}
100
+  -DARDUINO_BLACK_F407VE
101
+  -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
102
+extra_scripts     = ${common.extra_scripts}
103
+  pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
104
+
105
+#
106
+# Anet ET4-MB_V1.x/ET4P-MB_V1.x (STM32F407VGT6 ARM Cortex-M4)
107
+# For use with with davidtgbe's OpenBLT bootloader https://github.com/davidtgbe/openblt/releases
108
+# Comment out board_build.offset = 0x10000 if you don't plan to use OpenBLT/flashing directly to 0x08000000.
109
+#
110
+[env:Anet_ET4_OpenBLT]
111
+platform             = ${common_stm32.platform}
112
+extends              = common_stm32
113
+build_flags          = ${common_stm32.build_flags} -DHAL_SD_MODULE_ENABLED -DHAL_SRAM_MODULE_ENABLED
114
+board                = genericSTM32F407VGT6
115
+board_build.core     = stm32
116
+board_build.variant  = MARLIN_F4x7Vx
117
+board_build.ldscript = ldscript.ld
118
+board_build.firmware = firmware.srec
119
+# Just openblt.py (not stm32_bootloader.py) generates the file
120
+board_build.encrypt  = Yes
121
+board_build.offset   = 0x10000
122
+board_upload.offset_address = 0x08010000
123
+build_unflags        = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
124
+debug_tool           = jlink
125
+upload_protocol      = jlink
126
+extra_scripts        = ${common.extra_scripts}
127
+  pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
128
+  buildroot/share/PlatformIO/scripts/stm32_bootloader.py
129
+  buildroot/share/PlatformIO/scripts/openblt.py
130
+
131
+#
132
+# BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
133
+#
134
+[env:BIGTREE_SKR_PRO]
135
+platform          = ${common_stm32.platform}
136
+extends           = common_stm32
137
+board             = BigTree_SKR_Pro
138
+build_flags       = ${common_stm32.build_flags}
139
+  -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
140
+extra_scripts     = ${common.extra_scripts}
141
+  pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
142
+#upload_protocol   = stlink
143
+#upload_command    = "$PROJECT_PACKAGES_DIR/tool-stm32duino/stlink/ST-LINK_CLI.exe" -c SWD -P "$BUILD_DIR/firmware.bin" 0x8008000 -Rst -Run
144
+debug_tool        = stlink
145
+debug_init_break  =
146
+
147
+#
148
+# USB Flash Drive mix-ins for STM32
149
+#
150
+[stm_flash_drive]
151
+platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc.zip
152
+build_flags       = ${common_stm32.build_flags}
153
+  -DHAL_PCD_MODULE_ENABLED -DHAL_HCD_MODULE_ENABLED
154
+  -DUSBHOST -DUSBH_IRQ_PRIO=3 -DUSBH_IRQ_SUBPRIO=4
155
+
156
+#
157
+# BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4) with USB Flash Drive Support
158
+#
159
+[env:BIGTREE_SKR_PRO_usb_flash_drive]
160
+extends           = env:BIGTREE_SKR_PRO
161
+platform_packages = ${stm_flash_drive.platform_packages}
162
+build_unflags     = -DUSBCON -DUSBD_USE_CDC
163
+build_flags       = ${stm_flash_drive.build_flags}
164
+  -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
165
+
166
+#
167
+# Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
168
+#
169
+[env:BIGTREE_GTR_V1_0]
170
+platform          = ${common_stm32.platform}
171
+extends           = common_stm32
172
+board             = BigTree_GTR_v1
173
+extra_scripts     = ${common.extra_scripts}
174
+  pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
175
+build_flags       = ${common_stm32.build_flags}
176
+  -DSTM32F407IX -DVECT_TAB_OFFSET=0x8000
177
+
178
+#
179
+# Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4) with USB Flash Drive Support
180
+#
181
+[env:BIGTREE_GTR_V1_0_usb_flash_drive]
182
+extends           = env:BIGTREE_GTR_V1_0
183
+platform_packages = ${stm_flash_drive.platform_packages}
184
+build_unflags     = -DUSBCON -DUSBD_USE_CDC
185
+build_flags       = ${stm_flash_drive.build_flags}
186
+  -DSTM32F407IX -DVECT_TAB_OFFSET=0x8000
187
+
188
+#
189
+# BigTreeTech BTT002 V1.0 (STM32F407VGT6 ARM Cortex-M4)
190
+#
191
+[env:BIGTREE_BTT002]
192
+platform          = ${common_stm32.platform}
193
+extends           = common_stm32
194
+board             = BigTree_Btt002
195
+build_flags       = ${common_stm32.build_flags}
196
+  -DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
197
+  -DHAVE_HWSERIAL2
198
+  -DHAVE_HWSERIAL3
199
+  -DPIN_SERIAL2_RX=PD_6
200
+  -DPIN_SERIAL2_TX=PD_5
201
+extra_scripts     = ${common.extra_scripts}
202
+  pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
203
+
204
+#
205
+# Lerdge base
206
+#
207
+[lerdge_common]
208
+platform            = ${common_stm32.platform}
209
+extends             = common_stm32
210
+board               = LERDGE
211
+board_build.offset  = 0x10000
212
+board_build.encrypt = Yes
213
+extra_scripts       = ${common.extra_scripts}
214
+                      pre:buildroot/share/PlatformIO/scripts/copy_marlin_variant_to_framework.py
215
+                      buildroot/share/PlatformIO/scripts/stm32_bootloader.py
216
+                      buildroot/share/PlatformIO/scripts/lerdge.py
217
+build_flags         = ${common_stm32.build_flags}
218
+  -DSTM32F4 -DSTM32F4xx -DTARGET_STM32F4
219
+  -DDISABLE_GENERIC_SERIALUSB -DARDUINO_ARCH_STM32 -DARDUINO_LERDGE
220
+  -DHAL_SRAM_MODULE_ENABLED
221
+build_unflags       = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
222
+
223
+#
224
+# Lerdge X
225
+#
226
+[env:LERDGEX]
227
+platform             = ${lerdge_common.platform}
228
+extends              = lerdge_common
229
+board_build.firmware = Lerdge_X_firmware_force.bin
230
+
231
+#
232
+# Lerdge X with USB Flash Drive Support
233
+#
234
+[env:LERDGEX_usb_flash_drive]
235
+platform          = ${env:LERDGEX.platform}
236
+extends           = env:LERDGEX
237
+platform_packages = ${stm_flash_drive.platform_packages}
238
+build_flags       = ${stm_flash_drive.build_flags}
239
+
240
+#
241
+# Lerdge S
242
+#
243
+[env:LERDGES]
244
+platform             = ${lerdge_common.platform}
245
+extends              = lerdge_common
246
+board_build.firmware = Lerdge_firmware_force.bin
247
+
248
+#
249
+# Lerdge S with USB Flash Drive Support
250
+#
251
+[env:LERDGES_usb_flash_drive]
252
+platform          = ${env:LERDGES.platform}
253
+extends           = env:LERDGES
254
+platform_packages = ${stm_flash_drive.platform_packages}
255
+build_flags       = ${stm_flash_drive.build_flags}
256
+
257
+#
258
+# Lerdge K
259
+#
260
+[env:LERDGEK]
261
+platform             = ${lerdge_common.platform}
262
+extends              = lerdge_common
263
+board_build.firmware = Lerdge_K_firmware_force.bin
264
+build_flags          = ${lerdge_common.build_flags}
265
+  -DLERDGEK
266
+
267
+#
268
+# Lerdge K with USB Flash Drive Support
269
+#
270
+[env:LERDGEK_usb_flash_drive]
271
+platform          = ${env:LERDGEK.platform}
272
+extends           = env:LERDGEK
273
+platform_packages = ${stm_flash_drive.platform_packages}
274
+build_flags       = ${stm_flash_drive.build_flags}
275
+
276
+#
277
+# RUMBA32
278
+#
279
+[env:rumba32]
280
+platform        = ${common_stm32.platform}
281
+extends         = common_stm32
282
+build_flags     = ${common_stm32.build_flags}
283
+  -Os
284
+  -DHAL_PCD_MODULE_ENABLED
285
+  -DDISABLE_GENERIC_SERIALUSB
286
+  -DHAL_UART_MODULE_ENABLED
287
+  -DTIMER_SERIAL=TIM9
288
+board           = rumba32_f446ve
289
+upload_protocol = dfu
290
+monitor_speed   = 500000
291
+
292
+#
293
+# MKS Robin Pro V2
294
+#
295
+[env:mks_robin_pro2]
296
+platform             = ${common_stm32.platform}
297
+platform_packages    = ${stm_flash_drive.platform_packages}
298
+extends              = common_stm32
299
+build_flags          = ${stm_flash_drive.build_flags}
300
+board                = genericSTM32F407VET6
301
+board_build.core     = stm32
302
+board_build.variant  = MARLIN_F4x7Vx
303
+board_build.ldscript = ldscript.ld
304
+board_build.firmware = firmware.bin
305
+board_build.offset   = 0x0000
306
+board_upload.offset_address = 0x08000000
307
+build_unflags        = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
308
+debug_tool           = jlink
309
+upload_protocol      = jlink
310
+extra_scripts        = ${common.extra_scripts}
311
+  pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
312
+  buildroot/share/PlatformIO/scripts/stm32_bootloader.py
313
+
314
+#
315
+# This SPI is used by Robin Nano V3
316
+#
317
+[stm32f4_I2C1]
318
+build_flags = -DPIN_WIRE_SCL=PB6 -DPIN_WIRE_SDA=PB7
319
+
320
+#
321
+# MKS Robin Nano V3
322
+#
323
+[env:mks_robin_nano_v3]
324
+platform             = ${common_stm32.platform}
325
+extends              = common_stm32
326
+build_flags          = ${common_stm32.build_flags} ${stm32f4_I2C1.build_flags} -DHAL_PCD_MODULE_ENABLED -DUSBCON -DUSBD_USE_CDC
327
+board                = genericSTM32F407VGT6
328
+board_build.core     = stm32
329
+board_build.variant  = MARLIN_F4x7Vx
330
+board_build.ldscript = ldscript.ld
331
+board_build.firmware = Robin_nano_v3.bin
332
+board_build.offset   = 0xC000
333
+board_upload.offset_address = 0x0800C000
334
+build_unflags        = ${common_stm32.build_unflags}
335
+debug_tool           = jlink
336
+upload_protocol      = jlink
337
+extra_scripts        = ${common.extra_scripts}
338
+  pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
339
+  buildroot/share/PlatformIO/scripts/stm32_bootloader.py
340
+
341
+#
342
+# MKS Robin Nano V3 with USB Flash Drive Support
343
+# Currently, using a STM32duino fork, until USB Host get merged
344
+#
345
+[env:mks_robin_nano_v3_usb_flash_drive]
346
+extends           = env:mks_robin_nano_v3
347
+platform_packages = ${stm_flash_drive.platform_packages}
348
+build_flags       = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
349
+  -DUSBCON
350
+  -DUSE_USBHOST_HS
351
+  -DUSBD_IRQ_PRIO=5
352
+  -DUSBD_IRQ_SUBPRIO=6
353
+  -DUSE_USB_HS_IN_FS
354
+  -DUSBD_USE_CDC
355
+
356
+#
357
+# MKS Robin Nano V3 with USB Flash Drive Support and Shared Media
358
+# Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
359
+#
360
+[env:mks_robin_nano_v3_usb_flash_drive_msc]
361
+platform          = ${common_stm32.platform}
362
+extends           = env:mks_robin_nano_v3
363
+platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc.zip
364
+build_unflags     = ${common_stm32.build_unflags} -DUSBD_USE_CDC
365
+build_flags       = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
366
+  -DUSBCON
367
+  -DUSE_USBHOST_HS
368
+  -DUSBD_IRQ_PRIO=5
369
+  -DUSBD_IRQ_SUBPRIO=6
370
+  -DUSE_USB_HS_IN_FS
371
+  -DUSBD_USE_CDC_MSC

+ 30
- 0
ini/stm32f7.ini Parādīt failu

@@ -0,0 +1,30 @@
1
+#
2
+# Marlin Firmware
3
+# PlatformIO Configuration File
4
+#
5
+
6
+#################################
7
+#                               #
8
+#     STM32F7 Architecture      #
9
+#                               #
10
+#################################
11
+
12
+#
13
+# ST NUCLEO-F767ZI Development Board
14
+# This environment is for testing purposes prior to control boards
15
+# being readily available based on STM32F7 MCUs
16
+#
17
+[env:NUCLEO_F767ZI]
18
+platform      = ${common_stm32.platform}
19
+extends       = common_stm32
20
+board         = nucleo_f767zi
21
+build_flags   = ${common_stm32.build_flags} -DTIMER_SERIAL=TIM9
22
+
23
+#
24
+# REMRAM_V1
25
+#
26
+[env:REMRAM_V1]
27
+platform      = ${common_stm32.platform}
28
+extends       = common_stm32
29
+board         = remram_v1
30
+build_flags   = ${common_stm32.build_flags}

+ 42
- 0
ini/teensy.ini Parādīt failu

@@ -0,0 +1,42 @@
1
+#
2
+# Marlin Firmware
3
+# PlatformIO Configuration File
4
+#
5
+
6
+#################################
7
+#                               #
8
+#     Teensy Architectures      #
9
+#                               #
10
+#################################
11
+
12
+#
13
+# Teensy 3.1 / 3.2 (ARM Cortex-M4)
14
+#
15
+[env:teensy31]
16
+platform      = teensy
17
+board         = teensy31
18
+src_filter    = ${common.default_src_filter} +<src/HAL/TEENSY31_32>
19
+lib_ignore    = NativeEthernet
20
+
21
+#
22
+# Teensy 3.5 / 3.6 (ARM Cortex-M4)
23
+#
24
+[env:teensy35]
25
+platform      = teensy
26
+board         = teensy35
27
+src_filter    = ${common.default_src_filter} +<src/HAL/TEENSY35_36>
28
+lib_ignore    = NativeEthernet
29
+
30
+[env:teensy36]
31
+platform      = teensy
32
+board         = teensy36
33
+src_filter    = ${common.default_src_filter} +<src/HAL/TEENSY35_36>
34
+lib_ignore    = NativeEthernet
35
+
36
+#
37
+# Teensy 4.0 / 4.1 (ARM Cortex-M7)
38
+#
39
+[env:teensy41]
40
+platform      = teensy
41
+board         = teensy41
42
+src_filter    = ${common.default_src_filter} +<src/HAL/TEENSY40_41>

+ 13
- 1413
platformio.ini
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


Notiek ielāde…
Atcelt
Saglabāt