Kaynağa Gözat

🔨 BTT STM32G0B1RE xfer build (#24245)

elimisback 2 yıl önce
ebeveyn
işleme
2b4a89eafe
4 değiştirilmiş dosya ile 17 ekleme ve 1 silme
  1. 5
    0
      Marlin/src/inc/SanityCheck.h
  2. 1
    1
      Marlin/src/pins/pins.h
  3. 1
    0
      ini/stm32f1.ini
  4. 10
    0
      ini/stm32g0.ini

+ 5
- 0
Marlin/src/inc/SanityCheck.h Dosyayı Görüntüle

@@ -4137,3 +4137,8 @@ static_assert(_PLUS_TEST(4), "HOMING_FEEDRATE_MM_M values must be positive.");
4137 4137
 #elif ENABLED(DISABLE_JTAG) && !defined(JTAG_DISABLE)
4138 4138
   #error "DISABLE_JTAG is not supported for the selected MCU/Board."
4139 4139
 #endif
4140
+
4141
+// Check requirements for upload.py
4142
+#if ENABLED(XFER_BUILD) && !BOTH(BINARY_FILE_TRANSFER, CUSTOM_FIRMWARE_UPLOAD)
4143
+  #error "BINARY_FILE_TRANSFER and CUSTOM_FIRMWARE_UPLOAD are required for custom upload."
4144
+#endif

+ 1
- 1
Marlin/src/pins/pins.h Dosyayı Görüntüle

@@ -538,7 +538,7 @@
538 538
 #elif MB(BTT_SKR_MINI_E3_V2_0)
539 539
   #include "stm32f1/pins_BTT_SKR_MINI_E3_V2_0.h"  // STM32F1                              env:STM32F103RC_btt env:STM32F103RC_btt_USB env:STM32F103RE_btt env:STM32F103RE_btt_USB env:STM32F103RC_btt_maple env:STM32F103RC_btt_USB_maple env:STM32F103RE_btt_maple env:STM32F103RE_btt_USB_maple
540 540
 #elif MB(BTT_SKR_MINI_E3_V3_0)
541
-  #include "stm32g0/pins_BTT_SKR_MINI_E3_V3_0.h"  // STM32G0                              env:STM32G0B1RE_btt
541
+  #include "stm32g0/pins_BTT_SKR_MINI_E3_V3_0.h"  // STM32G0                              env:STM32G0B1RE_btt env:STM32G0B1RE_btt_xfer
542 542
 #elif MB(BTT_SKR_MINI_MZ_V1_0)
543 543
   #include "stm32f1/pins_BTT_SKR_MINI_MZ_V1_0.h"  // STM32F1                              env:STM32F103RC_btt env:STM32F103RC_btt_USB env:STM32F103RC_btt_maple env:STM32F103RC_btt_USB_maple
544 544
 #elif MB(BTT_SKR_E3_DIP)

+ 1
- 0
ini/stm32f1.ini Dosyayı Görüntüle

@@ -138,6 +138,7 @@ upload_protocol             = jlink
138 138
 #
139 139
 [STM32F103Rx_creality_xfer]
140 140
 extends         = STM32F103Rx_creality
141
+build_flags     = ${STM32F103Rx_creality.build_flags} -DXFER_BUILD
141 142
 extra_scripts   = ${STM32F103Rx_creality.extra_scripts}
142 143
                   pre:buildroot/share/scripts/upload.py
143 144
 upload_protocol = custom

+ 10
- 0
ini/stm32g0.ini Dosyayı Görüntüle

@@ -36,3 +36,13 @@ build_flags                 = ${stm32_variant.build_flags}
36 36
                             -DSTEP_TIMER_IRQ_PRIO=0
37 37
 upload_protocol             = stlink
38 38
 debug_tool                  = stlink
39
+
40
+#
41
+# Custom upload to SD via Marlin with Binary Protocol
42
+#
43
+[env:STM32G0B1RE_btt_xfer]
44
+extends         = env:STM32G0B1RE_btt
45
+build_flags     = ${env:STM32G0B1RE_btt.build_flags} -DXFER_BUILD
46
+extra_scripts   = ${env:STM32G0B1RE_btt.extra_scripts}
47
+                  pre:buildroot/share/scripts/upload.py
48
+upload_protocol = custom

Loading…
İptal
Kaydet