Skip to content

Commit bd60f71

Browse files
elimisbacktomek2k1
authored andcommitted
🔨 BTT STM32G0B1RE xfer build (MarlinFirmware#24245)
1 parent 586ec7c commit bd60f71

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

Marlin/src/inc/SanityCheck.h

+5
Original file line numberDiff line numberDiff line change
@@ -3954,3 +3954,8 @@ static_assert(_PLUS_TEST(4), "HOMING_FEEDRATE_MM_M values must be positive.");
39543954
#elif ENABLED(DISABLE_JTAG) && !defined(JTAG_DISABLE)
39553955
#error "DISABLE_JTAG is not supported for the selected MCU/Board."
39563956
#endif
3957+
3958+
// Check requirements for upload.py
3959+
#if ENABLED(XFER_BUILD) && !BOTH(BINARY_FILE_TRANSFER, CUSTOM_FIRMWARE_UPLOAD)
3960+
#error "BINARY_FILE_TRANSFER and CUSTOM_FIRMWARE_UPLOAD are required for custom upload."
3961+
#endif

Marlin/src/pins/pins.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@
540540
#elif MB(BTT_SKR_MINI_E3_V2_0)
541541
#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
542542
#elif MB(BTT_SKR_MINI_E3_V3_0)
543-
#include "stm32g0/pins_BTT_SKR_MINI_E3_V3_0.h" // STM32G0 env:STM32G0B1RE_btt
543+
#include "stm32g0/pins_BTT_SKR_MINI_E3_V3_0.h" // STM32G0 env:STM32G0B1RE_btt env:STM32G0B1RE_btt_xfer
544544
#elif MB(BTT_SKR_MINI_MZ_V1_0)
545545
#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
546546
#elif MB(BTT_SKR_E3_DIP)

ini/stm32f1.ini

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ upload_protocol = jlink
138138
#
139139
[STM32F103Rx_creality_xfer]
140140
extends = STM32F103Rx_creality
141+
build_flags = ${STM32F103Rx_creality.build_flags} -DXFER_BUILD
141142
extra_scripts = ${STM32F103Rx_creality.extra_scripts}
142143
pre:buildroot/share/scripts/upload.py
143144
upload_protocol = custom

ini/stm32g0.ini

+10
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,13 @@ build_flags = ${stm32_variant.build_flags}
3636
-DSTEP_TIMER_IRQ_PRIO=0
3737
upload_protocol = stlink
3838
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

0 commit comments

Comments
 (0)