|
@@ -31,6 +31,8 @@ build_flags = ${common.build_flags}
|
31
|
31
|
-DADC_RESOLUTION=12
|
32
|
32
|
build_unflags = -std=gnu++11
|
33
|
33
|
src_filter = ${common.default_src_filter} +<src/HAL/STM32> +<src/HAL/shared/backtrace>
|
|
34
|
+extra_scripts = ${common.extra_scripts}
|
|
35
|
+ pre:buildroot/share/PlatformIO/scripts/stm32_serialbuffer.py
|
34
|
36
|
|
35
|
37
|
#
|
36
|
38
|
# BigTree SKR Mini V1.1 / SKR mini E3 / SKR E3 DIP (STM32F103RCT6 ARM Cortex-M3)
|
|
@@ -53,7 +55,7 @@ monitor_speed = 115200
|
53
|
55
|
board_build.core = stm32
|
54
|
56
|
board_build.variant = MARLIN_F103Rx
|
55
|
57
|
board_build.ldscript = ldscript.ld
|
56
|
|
-extra_scripts = ${common.extra_scripts}
|
|
58
|
+extra_scripts = ${common_stm32.extra_scripts}
|
57
|
59
|
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
58
|
60
|
buildroot/share/PlatformIO/scripts/stm32_bootloader.py
|
59
|
61
|
|
|
@@ -136,13 +138,31 @@ build_flags = ${common_stm32.build_flags}
|
136
|
138
|
-DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
|
137
|
139
|
build_unflags = ${common_stm32.build_unflags}
|
138
|
140
|
-DUSBCON -DUSBD_USE_CDC
|
139
|
|
-extra_scripts = ${common.extra_scripts}
|
|
141
|
+extra_scripts = ${common_stm32.extra_scripts}
|
140
|
142
|
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
141
|
143
|
buildroot/share/PlatformIO/scripts/stm32_bootloader.py
|
142
|
144
|
buildroot/share/PlatformIO/scripts/mks_encrypt.py
|
143
|
145
|
lib_deps =
|
144
|
146
|
|
145
|
147
|
#
|
|
148
|
+# MKS Robin E3/E3D (STM32F103RCT6) with TMC2209
|
|
149
|
+#
|
|
150
|
+[env:mks_robin_e3]
|
|
151
|
+platform = ${common_stm32.platform}
|
|
152
|
+extends = common_STM32F103RC
|
|
153
|
+build_flags = ${common_stm32.build_flags}
|
|
154
|
+ -DDEBUG_LEVEL=0 -DTIMER_SERVO=TIM5
|
|
155
|
+build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
|
156
|
+monitor_speed = 115200
|
|
157
|
+board_build.offset = 0x5000
|
|
158
|
+board_build.encrypt = Yes
|
|
159
|
+board_build.firmware = Robin_e3.bin
|
|
160
|
+board_upload.offset_address = 0x08005000
|
|
161
|
+debug_tool = stlink
|
|
162
|
+extra_scripts = ${env:STM32F103RC.extra_scripts}
|
|
163
|
+ buildroot/share/PlatformIO/scripts/mks_encrypt.py
|
|
164
|
+
|
|
165
|
+#
|
146
|
166
|
# Creality (STM32F103RET6)
|
147
|
167
|
#
|
148
|
168
|
[env:STM32F103RET6_creality]
|
|
@@ -181,7 +201,7 @@ board_build.firmware = Robin_mini.bin
|
181
|
201
|
board_build.encrypt = Yes
|
182
|
202
|
board_upload.offset_address = 0x08007000
|
183
|
203
|
build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
184
|
|
-extra_scripts = ${common.extra_scripts}
|
|
204
|
+extra_scripts = ${common_stm32.extra_scripts}
|
185
|
205
|
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
186
|
206
|
buildroot/share/PlatformIO/scripts/stm32_bootloader.py
|
187
|
207
|
buildroot/share/PlatformIO/scripts/mks_encrypt.py
|
|
@@ -204,7 +224,7 @@ board_upload.offset_address = 0x08007000
|
204
|
224
|
build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
205
|
225
|
debug_tool = jlink
|
206
|
226
|
upload_protocol = jlink
|
207
|
|
-extra_scripts = ${common.extra_scripts}
|
|
227
|
+extra_scripts = ${common_stm32.extra_scripts}
|
208
|
228
|
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
209
|
229
|
buildroot/share/PlatformIO/scripts/stm32_bootloader.py
|
210
|
230
|
buildroot/share/PlatformIO/scripts/mks_encrypt.py
|
|
@@ -222,6 +242,6 @@ board_build.ldscript = ldscript.ld
|
222
|
242
|
board_build.offset = 0x10000
|
223
|
243
|
build_flags = ${common_stm32.build_flags} -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
|
224
|
244
|
build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
225
|
|
-extra_scripts = ${common.extra_scripts}
|
|
245
|
+extra_scripts = ${common_stm32.extra_scripts}
|
226
|
246
|
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
227
|
247
|
buildroot/share/PlatformIO/scripts/stm32_bootloader.py
|