Browse Source

Fix GTR / SKR PRO + USB Flash Drive build (#21197)

Victor Oliveira 3 years ago
parent
commit
f384f81253
No account linked to committer's email address
2 changed files with 52 additions and 1 deletions
  1. 47
    0
      buildroot/tests/BIGTREE_GTR_V1_0_usb_flash_drive-tests
  2. 5
    1
      platformio.ini

+ 47
- 0
buildroot/tests/BIGTREE_GTR_V1_0_usb_flash_drive-tests View File

@@ -0,0 +1,47 @@
1
+#!/usr/bin/env bash
2
+#
3
+# Build tests for BigTreeTech GTR 1.0
4
+#
5
+
6
+# exit on first failure
7
+set -e
8
+
9
+restore_configs
10
+opt_set MOTHERBOARD BOARD_BTT_GTR_V1_0
11
+opt_set SERIAL_PORT 3
12
+opt_set EXTRUDERS 8
13
+opt_set TEMP_SENSOR_1 1
14
+opt_set TEMP_SENSOR_2 1
15
+opt_set TEMP_SENSOR_3 1
16
+opt_set TEMP_SENSOR_4 1
17
+opt_set TEMP_SENSOR_5 1
18
+opt_set TEMP_SENSOR_6 1
19
+opt_set TEMP_SENSOR_7 1
20
+opt_set SDSUPPORT
21
+opt_set USB_FLASH_DRIVE_SUPPORT
22
+opt_set USE_OTG_USB_HOST
23
+# Not necessary to enable auto-fan for all extruders to hit problematic code paths
24
+opt_set E0_AUTO_FAN_PIN PC10
25
+opt_set E1_AUTO_FAN_PIN PC11
26
+opt_set E2_AUTO_FAN_PIN PC12
27
+opt_set X_DRIVER_TYPE TMC2208
28
+opt_set Y_DRIVER_TYPE TMC2130
29
+opt_set NEOPIXEL_PIN PF13
30
+opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER BLTOUCH NEOPIXEL_LED Z_SAFE_HOMING
31
+opt_enable FILAMENT_RUNOUT_SENSOR NOZZLE_PARK_FEATURE ADVANCED_PAUSE_FEATURE
32
+opt_set FIL_RUNOUT_PIN 3
33
+opt_set FIL_RUNOUT2_PIN 4
34
+opt_set FIL_RUNOUT3_PIN 5
35
+opt_set FIL_RUNOUT4_PIN 6
36
+opt_set FIL_RUNOUT5_PIN 7
37
+opt_set FIL_RUNOUT6_PIN 8
38
+opt_set FIL_RUNOUT7_PIN 9
39
+opt_set FIL_RUNOUT8_PIN 10
40
+opt_set FIL_RUNOUT4_STATE HIGH
41
+opt_enable FIL_RUNOUT4_PULLUP
42
+opt_set FIL_RUNOUT8_STATE HIGH
43
+opt_enable FIL_RUNOUT8_PULLUP
44
+exec_test $1 $2 "BigTreeTech GTR + OTG USB Flash Drive + Extruders with Auto-Fan, Mixed TMC Drivers, and Runout Sensors with distinct states" "$3"
45
+
46
+# clean up
47
+restore_configs

+ 5
- 1
platformio.ini View File

@@ -1316,7 +1316,9 @@ build_flags       = ${common_stm32.build_flags}
1316 1316
 [env:BIGTREE_SKR_PRO_usb_flash_drive]
1317 1317
 extends           = env:BIGTREE_SKR_PRO
1318 1318
 platform_packages = ${stm32_flash_drive.platform_packages}
1319
+build_unflags     = -DUSBCON -DUSBD_USE_CDC
1319 1320
 build_flags       = ${stm32_flash_drive.build_flags}
1321
+  -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
1320 1322
 
1321 1323
 #
1322 1324
 # Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
@@ -1336,7 +1338,9 @@ build_flags       = ${common_stm32.build_flags}
1336 1338
 [env:BIGTREE_GTR_V1_0_usb_flash_drive]
1337 1339
 extends           = env:BIGTREE_GTR_V1_0
1338 1340
 platform_packages = ${stm32_flash_drive.platform_packages}
1339
-build_flags       = ${stm32_flash_drive.build_flags}
1341
+build_unflags     = -DUSBCON -DUSBD_USE_CDC
1342
+build_flags       = ${stm32_flash_drive.build_flags} 
1343
+  -DSTM32F407IX -DVECT_TAB_OFFSET=0x8000
1340 1344
 
1341 1345
 #
1342 1346
 # BigTreeTech BTT002 V1.0 (STM32F407VGT6 ARM Cortex-M4)

Loading…
Cancel
Save