From 6e2597593acfb6b286f5c128a2fe3d9ca71694dd Mon Sep 17 00:00:00 2001 From: Roxy-3D Date: Fri, 13 May 2022 17:48:59 -0500 Subject: [PATCH] Allow BTT Octopus boards to use ST-Link for programing and debugging --- ini/stm32f4.ini | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/ini/stm32f4.ini b/ini/stm32f4.ini index d86bf9a518..688cc10547 100644 --- a/ini/stm32f4.ini +++ b/ini/stm32f4.ini @@ -251,12 +251,14 @@ build_unflags = ${env:BIGTREE_SKR_2_F429_USB.build_unflags} -Os -NDEBUG # BigTreeTech Octopus V1.0/1.1 / Octopus Pro V1.0 (STM32F446ZET6 ARM Cortex-M4) # [env:BIGTREE_OCTOPUS_V1] -extends = stm32_variant -board = marlin_BigTree_Octopus_v1 -board_build.offset = 0x8000 +extends = stm32_variant +board = marlin_BigTree_Octopus_v1 +board_build.offset = 0x8000 board_upload.offset_address = 0x08008000 -build_flags = ${stm32_variant.build_flags} - -DSTM32F446_5VX -DUSE_USB_HS_IN_FS +debug_tool = stlink +upload_protocol = stlink +build_flags = ${stm32_variant.build_flags} + -DSTM32F446_5VX -DUSE_USB_HS_IN_FS # # BigTreeTech Octopus V1.0/1.1 / Octopus Pro V1.0 (STM32F446ZET6 ARM Cortex-M4) with USB Flash Drive Support @@ -275,12 +277,14 @@ build_flags = ${stm_flash_drive.build_flags} # BigTreeTech Octopus Pro V1.0 (STM32F429ZGT6 ARM Cortex-M4) # [env:BIGTREE_OCTOPUS_PRO_V1_F429] -extends = stm32_variant -board = marlin_BigTree_Octopus_Pro_v1_F429 -board_build.offset = 0x8000 +extends = stm32_variant +board = marlin_BigTree_Octopus_Pro_v1_F429 +board_build.offset = 0x8000 board_upload.offset_address = 0x08008000 -build_flags = ${stm32_variant.build_flags} - -DUSE_USB_HS_IN_FS +debug_tool = stlink +upload_protocol = stlink +build_flags = ${stm32_variant.build_flags} + -DUSE_USB_HS_IN_FS # # BigTreeTech Octopus Pro V1.0 (STM32F429ZGT6 ARM Cortex-M4) with USB Flash Drive Support