🔨 Add offset_address for convenience

This commit is contained in:
Scott Lahteine 2024-12-12 16:37:14 -06:00
parent ba88365364
commit a748eaade7
2 changed files with 18 additions and 0 deletions

View file

@ -95,6 +95,7 @@ board = genericSTM32F103ZE
board_build.variant = MARLIN_F103Zx
board_build.encrypt_mks = Robin.bin
board_build.offset = 0x7000
board_build.offset_address = 0x08007000
build_flags = ${stm32_variant.build_flags}
-DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
build_unflags = ${stm32_variant.build_unflags}
@ -239,6 +240,7 @@ extends = stm32_variant
board = genericSTM32F103ZE
board_build.variant = MARLIN_F103Zx
board_build.offset = 0x10000
board_build.offset_address = 0x08010000
build_flags = ${stm32_variant.build_flags}
-DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
build_unflags = ${stm32_variant.build_unflags}
@ -417,6 +419,7 @@ board = genericSTM32F103ZE
board_build.crypt_chitu = update.zw
board_build.variant = MARLIN_F103Zx
board_build.offset = 0x8800
board_build.offset_address = 0x08008800
build_flags = ${stm32_variant.build_flags}
-DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
build_unflags = ${stm32_variant.build_unflags}
@ -434,6 +437,7 @@ board = genericSTM32F103ZE
board_build.crypt_chitu = update.cbd
board_build.variant = MARLIN_F103Zx
board_build.offset = 0x8800
board_build.offset_address = 0x08008800
build_flags = ${stm32_variant.build_flags}
-DSTM32F1xx
build_unflags = ${stm32_variant.build_unflags}

View file

@ -36,6 +36,7 @@ extends = stm32_variant
platform_packages = platformio/tool-dfuutil@~1.11.0
board = marlin_FYSETC_CHEETAH_V20
board_build.offset = 0x8000
board_build.offset_address = 0x08008000
build_flags = ${stm32_variant.build_flags} -DSTM32F401xC
upload_command = dfu-util -a 0 -s 0x08008000:leave -D "$SOURCE"
@ -60,6 +61,7 @@ platform_packages = platformio/tool-dfuutil@~1.11.0
board = marlin_STM32F407ZGT6
board_build.variant = MARLIN_FLY_F407ZG
board_build.offset = 0x8000
board_build.offset_address = 0x08008000
upload_protocol = dfu
#
@ -95,6 +97,7 @@ platform_packages = platformio/tool-dfuutil@~1.11.0
board = marlin_STM32F407ZGT6
board_build.variant = MARLIN_FYSETC_SPIDER_KING407
board_build.offset = 0x8000
board_build.offset_address = 0x08008000
upload_protocol = dfu
#
@ -168,6 +171,7 @@ extra_scripts = ${Anet_ET4.extra_scripts}
extends = stm32_variant
board = marlin_BTT_SKR_Pro
board_build.offset = 0x8000
board_build.offset_address = 0x08008000
build_flags = ${stm32_variant.build_flags} -DSTM32F407_5ZX
debug_tool = stlink
upload_protocol = stlink
@ -189,6 +193,7 @@ extends = stm32_variant
board = marlin_STM32F407VGT6_CCM
board_build.variant = MARLIN_BTT_E3_RRF
board_build.offset = 0x8000
board_build.offset_address = 0x08008000
build_flags = ${stm32_variant.build_flags}
-DSTM32F407_5VX
-DMF_RX_BUFFER_SIZE=255
@ -202,6 +207,7 @@ extends = stm32_variant
board = marlin_STM32F407VGT6_CCM
#board_build.variant = MARLIN_BTT_E3_RRF
board_build.offset = 0x8000
board_build.offset_address = 0x08008000
build_flags = ${stm32_variant.build_flags}
-DSTM32F407_5VX
-DMF_RX_BUFFER_SIZE=255
@ -214,6 +220,7 @@ build_flags = ${stm32_variant.build_flags}
extends = stm32_variant
board = marlin_BTT_GTR_v1
board_build.offset = 0x8000
board_build.offset_address = 0x08008000
build_flags = ${stm32_variant.build_flags} -DSTM32F407IX
#
@ -232,6 +239,7 @@ build_unflags = ${env:BTT_GTR_V1_0.build_unflags} -DUSBCON -DUSBD_USE_CDC
extends = stm32_variant
board = marlin_BTT_BTT002
board_build.offset = 0x8000
board_build.offset_address = 0x08008000
build_flags = ${stm32_variant.build_flags}
-DSTM32F407_5VX
-DHAVE_HWSERIAL2
@ -354,6 +362,7 @@ build_flags = ${stm_flash_drive.build_flags}
extends = stm32_variant
board = marlin_STM32F407ZE
board_build.offset = 0x8000
board_build.offset_address = 0x08008000
build_flags = ${stm32_variant.build_flags}
-DUSE_USB_HS_IN_FS
@ -378,6 +387,7 @@ board = marlin_STM32F407ZGT6
board_build.variant = MARLIN_LERDGE
board_build.crypt_lerdge = firmware.bin
board_build.offset = 0x10000
board_build.offset_address = 0x08010000
build_flags = ${stm32_variant.build_flags}
-DSTM32F4 -DSTM32F4xx -DTARGET_STM32F4
-DDISABLE_GENERIC_SERIALUSB -DARDUINO_ARCH_STM32 -DLERDGE_TFT35
@ -440,6 +450,7 @@ platform_packages = platformio/tool-dfuutil@~1.11.0
board = rumba32_f446ve
board_build.variant = MARLIN_F446VE
board_build.offset = 0x0000
board_build.offset_address = 0x08000000
build_flags = ${stm32_variant.build_flags}
-Os -DHAL_PCD_MODULE_ENABLED
-DDISABLE_GENERIC_SERIALUSB
@ -840,6 +851,7 @@ extends = stm32_variant
board = marlin_STM32F446ZET_tronxy
board_build.ldscript = buildroot/share/PlatformIO/variants/MARLIN_F446Zx_TRONXY/ldscript.ld
board_build.offset = 0x10000
board_build.offset_address = 0x08010000
build_flags = ${stm32_variant.build_flags}
-DSTM32F4xx -DUSE_USB_HS
-DUSE_USB_HS_IN_FS
@ -873,6 +885,7 @@ monitor_speed = 115200
extends = stm32_variant
board = marlin_I3DBEEZ9
board_build.offset = 0x8000
board_build.offset_address = 0x08008000
build_flags = ${stm32_variant.build_flags} -DSTM32F407_5ZX
debug_tool = stlink
upload_protocol = stlink
@ -886,6 +899,7 @@ platform_packages = platformio/tool-dfuutil@~1.11.0
extends = common_stm32
board = blackpill_f401cc
board_build.offset = 0x0000
board_build.offset_address = 0x08000000
build_flags = ${common_stm32.build_flags}
-Os -DHAL_PCD_MODULE_ENABLED
-DHAL_UART_MODULE_ENABLED