|
@@ -1,13 +1,12 @@
|
1
|
1
|
#
|
2
|
|
-# Project Configuration File
|
|
2
|
+# Marlin Firmware
|
|
3
|
+# PlatformIO Configuration File
|
|
4
|
+#
|
|
5
|
+# For detailed documentation with EXAMPLES:
|
3
|
6
|
#
|
4
|
|
-# A detailed documentation with the EXAMPLES is located here:
|
5
|
7
|
# http://docs.platformio.org/en/latest/projectconf.html
|
6
|
8
|
#
|
7
|
9
|
|
8
|
|
-# A sign `#` at the beginning of the line indicates a comment
|
9
|
|
-# Comment lines are ignored.
|
10
|
|
-
|
11
|
10
|
# Automatic targets - enable auto-uploading
|
12
|
11
|
# targets = upload
|
13
|
12
|
|
|
@@ -27,115 +26,167 @@ lib_deps =
|
27
|
26
|
https://github.com/trinamic/TMC26XStepper.git
|
28
|
27
|
https://github.com/adafruit/Adafruit_NeoPixel.git
|
29
|
28
|
https://github.com/ameyer/Arduino-L6470.git
|
30
|
|
-default_src_filter = +<*> -<src/config/examples>
|
31
|
29
|
|
|
30
|
+default_src_filter = +<src/*> -<src/config>
|
|
31
|
+
|
|
32
|
+#################################
|
|
33
|
+# #
|
|
34
|
+# Unique Core Architectures #
|
|
35
|
+# #
|
|
36
|
+# Add a new "env" below if no #
|
|
37
|
+# entry has values suitable to #
|
|
38
|
+# build for a given board. #
|
|
39
|
+# #
|
|
40
|
+#################################
|
|
41
|
+
|
|
42
|
+#
|
|
43
|
+# ATmega2560
|
|
44
|
+#
|
32
|
45
|
[env:megaatmega2560]
|
33
|
|
-platform = atmelavr
|
34
|
|
-framework = arduino
|
35
|
|
-board = megaatmega2560
|
|
46
|
+platform = atmelavr
|
|
47
|
+framework = arduino
|
|
48
|
+board = megaatmega2560
|
36
|
49
|
build_flags = -I $BUILDSRC_DIR
|
37
|
50
|
board_f_cpu = 16000000L
|
38
|
|
-lib_deps = ${common.lib_deps}
|
39
|
|
-src_filter = ${common.default_src_filter}
|
|
51
|
+lib_deps = ${common.lib_deps}
|
|
52
|
+src_filter = ${common.default_src_filter}
|
40
|
53
|
|
|
54
|
+#
|
|
55
|
+# ATmega1280
|
|
56
|
+#
|
41
|
57
|
[env:megaatmega1280]
|
42
|
|
-platform = atmelavr
|
43
|
|
-framework = arduino
|
44
|
|
-board = megaatmega1280
|
|
58
|
+platform = atmelavr
|
|
59
|
+framework = arduino
|
|
60
|
+board = megaatmega1280
|
45
|
61
|
build_flags = -I $BUILDSRC_DIR
|
46
|
62
|
board_f_cpu = 16000000L
|
47
|
|
-lib_deps = ${common.lib_deps}
|
48
|
|
-src_filter = ${common.default_src_filter}
|
|
63
|
+lib_deps = ${common.lib_deps}
|
|
64
|
+src_filter = ${common.default_src_filter}
|
49
|
65
|
|
|
66
|
+#
|
|
67
|
+# PrintrBoard (Teensy++ 2.0)
|
|
68
|
+#
|
50
|
69
|
[env:printrboard]
|
51
|
|
-platform = teensy
|
52
|
|
-framework = arduino
|
53
|
|
-board = teensy20pp
|
54
|
|
-build_flags = -I $BUILDSRC_DIR -D MOTHERBOARD=BOARD_PRINTRBOARD
|
55
|
|
-# Bug in arduino framework does not allow boards running at 20Mhz
|
56
|
|
-#board_f_cpu = 20000000L
|
57
|
|
-lib_deps = ${common.lib_deps}
|
58
|
|
-src_filter = ${common.default_src_filter}
|
|
70
|
+platform = teensy
|
|
71
|
+framework = arduino
|
|
72
|
+board = teensy20pp
|
|
73
|
+build_flags = -I $BUILDSRC_DIR -D MOTHERBOARD=BOARD_PRINTRBOARD
|
|
74
|
+#board_f_cpu = 20000000L ; Bug in Arduino framework disallows boards running at 20Mhz
|
|
75
|
+lib_deps = ${common.lib_deps}
|
|
76
|
+src_filter = ${common.default_src_filter}
|
59
|
77
|
|
|
78
|
+#
|
|
79
|
+# PrintrBoard Rev.F (Teensy++ 2.0)
|
|
80
|
+#
|
60
|
81
|
[env:printrboard_revf]
|
61
|
|
-platform = teensy
|
62
|
|
-framework = arduino
|
63
|
|
-board = teensy20pp
|
|
82
|
+platform = teensy
|
|
83
|
+framework = arduino
|
|
84
|
+board = teensy20pp
|
64
|
85
|
build_flags = -I $BUILDSRC_DIR -D MOTHERBOARD=BOARD_PRINTRBOARD_REVF
|
65
|
|
-lib_deps = ${common.lib_deps}
|
|
86
|
+lib_deps = ${common.lib_deps}
|
|
87
|
+src_filter = ${common.default_src_filter}
|
66
|
88
|
|
|
89
|
+#
|
|
90
|
+# Brainwave Pro (Teensy++ 2.0)
|
|
91
|
+#
|
67
|
92
|
[env:brainwavepro]
|
68
|
|
-platform = teensy
|
69
|
|
-framework = arduino
|
70
|
|
-board = teensy20pp
|
|
93
|
+platform = teensy
|
|
94
|
+framework = arduino
|
|
95
|
+board = teensy20pp
|
71
|
96
|
build_flags = -I $BUILDSRC_DIR -D MOTHERBOARD=BOARD_BRAINWAVE_PRO
|
72
|
|
-lib_deps = ${common.lib_deps}
|
73
|
|
-src_filter = ${common.default_src_filter}
|
|
97
|
+lib_deps = ${common.lib_deps}
|
|
98
|
+src_filter = ${common.default_src_filter}
|
74
|
99
|
|
|
100
|
+#
|
|
101
|
+# RAMBo
|
|
102
|
+#
|
75
|
103
|
[env:rambo]
|
76
|
|
-platform = atmelavr
|
77
|
|
-framework = arduino
|
78
|
|
-board = reprap_rambo
|
|
104
|
+platform = atmelavr
|
|
105
|
+framework = arduino
|
|
106
|
+board = reprap_rambo
|
79
|
107
|
build_flags = -I $BUILDSRC_DIR
|
80
|
108
|
board_f_cpu = 16000000L
|
81
|
|
-lib_deps = ${common.lib_deps}
|
82
|
|
-src_filter = ${common.default_src_filter}
|
|
109
|
+lib_deps = ${common.lib_deps}
|
|
110
|
+src_filter = ${common.default_src_filter}
|
83
|
111
|
|
|
112
|
+#
|
|
113
|
+# Anet 1.0 - Melzi clone (ATmega1284p)
|
|
114
|
+#
|
84
|
115
|
[env:anet10]
|
85
|
|
-platform = atmelavr
|
86
|
|
-framework = arduino
|
87
|
|
-board = sanguino_atmega1284p
|
|
116
|
+platform = atmelavr
|
|
117
|
+framework = arduino
|
|
118
|
+board = sanguino_atmega1284p
|
88
|
119
|
upload_speed = 57600
|
89
|
|
-lib_deps = ${common.lib_deps}
|
|
120
|
+lib_deps = ${common.lib_deps}
|
|
121
|
+src_filter = ${common.default_src_filter}
|
90
|
122
|
|
|
123
|
+#
|
|
124
|
+# Sanguinololu (ATmega644p)
|
|
125
|
+#
|
91
|
126
|
[env:sanguino_atmega644p]
|
92
|
|
-platform = atmelavr
|
93
|
|
-framework = arduino
|
94
|
|
-board = sanguino_atmega644p
|
95
|
|
-lib_deps = ${common.lib_deps}
|
|
127
|
+platform = atmelavr
|
|
128
|
+framework = arduino
|
|
129
|
+board = sanguino_atmega644p
|
|
130
|
+lib_deps = ${common.lib_deps}
|
|
131
|
+src_filter = ${common.default_src_filter}
|
96
|
132
|
|
|
133
|
+#
|
|
134
|
+# Due (Atmel SAM3X8E ARM Cortex-M3)
|
|
135
|
+#
|
|
136
|
+# - RAMPS4DUE
|
|
137
|
+# - RADDS
|
|
138
|
+#
|
97
|
139
|
[env:DUE]
|
98
|
|
-platform = atmelsam
|
99
|
|
-framework = arduino
|
100
|
|
-board = due
|
101
|
|
-build_flags = -I $BUILDSRC_DIR -D MOTHERBOARD=BOARD_RAMPS4DUE_EFB
|
102
|
|
-lib_deps = ${common.lib_deps}
|
103
|
|
-src_filter = ${common.default_src_filter}
|
|
140
|
+platform = atmelsam
|
|
141
|
+framework = arduino
|
|
142
|
+board = due
|
|
143
|
+build_flags = -I $BUILDSRC_DIR
|
|
144
|
+lib_deps = ${common.lib_deps}
|
|
145
|
+src_filter = ${common.default_src_filter}
|
104
|
146
|
|
|
147
|
+#
|
|
148
|
+# Teensy 3.5 / 3.6 (ARM Cortex-M4)
|
|
149
|
+#
|
105
|
150
|
[env:teensy35]
|
106
|
|
-platform = teensy
|
107
|
|
-framework = arduino
|
108
|
|
-board = teensy35
|
|
151
|
+platform = teensy
|
|
152
|
+framework = arduino
|
|
153
|
+board = teensy35
|
109
|
154
|
build_flags = -I $BUILDSRC_DIR
|
110
|
|
-lib_deps = ${common.lib_deps}
|
111
|
|
-lib_ignore = Adafruit NeoPixel
|
112
|
|
-src_filter = ${common.default_src_filter}
|
|
155
|
+lib_deps = ${common.lib_deps}
|
|
156
|
+lib_ignore = Adafruit NeoPixel
|
|
157
|
+src_filter = ${common.default_src_filter}
|
113
|
158
|
|
|
159
|
+#
|
|
160
|
+# Re-ARM (NXP LPC1768 ARM Cortex-M3)
|
|
161
|
+#
|
114
|
162
|
[env:Re-ARM]
|
115
|
|
-platform = nxplpc
|
116
|
|
-board_f_cpu = 100000000L
|
117
|
|
-build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
|
|
163
|
+platform = nxplpc
|
|
164
|
+board_f_cpu = 100000000L
|
|
165
|
+build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
|
118
|
166
|
src_build_flags = -Wall
|
119
|
|
-build_unflags = -Wall
|
120
|
|
-lib_ldf_mode = off
|
121
|
|
-lib_extra_dirs = frameworks
|
122
|
|
-lib_deps = U8glib-ARM, CMSIS-LPC1768
|
123
|
|
-extra_scripts = Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
|
124
|
|
-
|
|
167
|
+build_unflags = -Wall
|
|
168
|
+lib_ldf_mode = off
|
|
169
|
+lib_extra_dirs = frameworks
|
|
170
|
+lib_deps = U8glib-ARM, CMSIS-LPC1768
|
|
171
|
+extra_scripts = Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
|
|
172
|
+src_filter = ${common.default_src_filter}
|
125
|
173
|
|
|
174
|
+#
|
|
175
|
+# Re-ARM (for debugging and development)
|
|
176
|
+#
|
126
|
177
|
[env:Re-ARM_debug_and_upload]
|
127
|
178
|
# Segger JLink
|
128
|
|
-platform = nxplpc
|
129
|
|
-#framework = mbed
|
130
|
|
-board = lpc1768
|
131
|
|
-board_f_cpu = 100000000L
|
132
|
|
-build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
|
133
|
|
-lib_ldf_mode = off
|
134
|
|
-lib_deps = U8glib-ARM
|
135
|
|
-src_filter =
|
136
|
|
-extra_scripts = debug_extra_script.py, Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
|
137
|
|
-debug_tool = custom
|
138
|
|
-debug_server =
|
|
179
|
+platform = nxplpc
|
|
180
|
+#framework = mbed
|
|
181
|
+board = lpc1768
|
|
182
|
+board_f_cpu = 100000000L
|
|
183
|
+build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
|
|
184
|
+lib_ldf_mode = off
|
|
185
|
+lib_deps = U8glib-ARM
|
|
186
|
+src_filter = ${common.default_src_filter}
|
|
187
|
+extra_scripts = debug_extra_script.py, Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
|
|
188
|
+debug_tool = custom
|
|
189
|
+debug_server =
|
139
|
190
|
C:\Program Files (x86)\SEGGER\JLink_V618d\JLinkGDBServerCL.exe
|
140
|
191
|
-select
|
141
|
192
|
USB
|