This commit is contained in:
Chris 2025-12-26 13:41:48 +01:00 committed by GitHub
commit eeb94445a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 27 additions and 3 deletions

View file

@ -923,9 +923,9 @@
//
#elif MB(AQUILA_V101)
#include "hc32f4/pins_AQUILA_101.h" // HC32F460 env:HC32F460C_aquila_101
#include "hc32f4/pins_AQUILA_101.h" // HC32F460 env:HC32F460C_aquila_101 env:HC32F460C_openhc32boot
#elif MB(CREALITY_ENDER2P_V24S4)
#include "hc32f4/pins_CREALITY_ENDER2P_V24S4.h" // HC32F460 env:HC32F460C_e2p24s4
#include "hc32f4/pins_CREALITY_ENDER2P_V24S4.h" // HC32F460 env:HC32F460C_e2p24s4 env:HC32F460C_openhc32boot
//
// GD32 ARM Cortex-M3

View file

@ -80,7 +80,7 @@ board_upload.maximum_size = 524288
[env:HC32F460C_aquila_101]
extends = HC32F460C_base
board_upload.offset_address = 0xC000 # Bootloader start address, as logged by the bootloader on boot
board_build.boot_mode = secondary # Save ~1.4k of flash by compiling as secondary firmware
board_build.boot_mode = secondary # Save ~1.4k of flash by compiling as secondary firmware (no ICG)
#
# Creality Ender 2 Pro v2.4.S4_170 (HC32f460kcta) (256K Flash, 192K RAM).
@ -88,3 +88,27 @@ board_build.boot_mode = secondary # Save ~1.4k of flash by compiling as seco
[env:HC32F460C_e2p24s4]
extends = HC32F460C_base
board_upload.offset_address = 0x8000
#
# OpenHC32Boot (256K Flash).
# This can be used with any HC32F460C printer, provided it has OpenHC32Boot installed.
# see https://github.com/shadow578/OpenHC32Boot for more information
#
[env:HC32F460C_openhc32boot]
extends = HC32F460C_base
board_upload.offset_address = 0x4000
board_build.boot_mode = secondary
build_flags =
${HC32F460C_base.build_flags}
-D CORE_DONT_RESTORE_DEFAULT_CLOCKS=1 # OpenHC32Boot doesn't mess with the clock settings, so we can skip clock restore in the core
#
# OpenHC32Boot (512K Flash)
#
[env:HC32F460E_openhc32boot]
extends = HC32F460E_base
board_upload.offset_address = 0x4000
board_build.boot_mode = secondary
build_flags =
${HC32F460E_base.build_flags}
-D CORE_DONT_RESTORE_DEFAULT_CLOCKS=1