1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-29 23:07:42 +00:00

🩹 HC32: pin package versions (#27289)

This commit is contained in:
Chris 2024-09-10 11:15:59 +02:00 committed by GitHub
parent 540120f863
commit ce55a7bd9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 20 deletions

View File

@ -94,8 +94,10 @@
#error "SERIAL_DMA requires USART_RX_DMA_SUPPORT to be enabled in the arduino core." #error "SERIAL_DMA requires USART_RX_DMA_SUPPORT to be enabled in the arduino core."
#endif #endif
// USART_RX_DMA_SUPPORT does not implement core_hook_usart_rx_irq, which is required for the emergency parser // Before arduino core version 1.2.0, USART_RX_DMA_SUPPORT did not implement
#if ENABLED(EMERGENCY_PARSER) // core_hook_usart_rx_irq, which is required for the emergency parser.
// With 1.2.0, this was fixed (see https://github.com/shadow578/framework-arduino-hc32f46x/pull/25).
#if ENABLED(EMERGENCY_PARSER) && ARDUINO_CORE_VERSION_INT < GET_VERSION_INT(1, 2, 0)
#error "EMERGENCY_PARSER is not supported with SERIAL_DMA. Please disable either SERIAL_DMA or EMERGENCY_PARSER." #error "EMERGENCY_PARSER is not supported with SERIAL_DMA. Please disable either SERIAL_DMA or EMERGENCY_PARSER."
#endif #endif

View File

@ -27,17 +27,18 @@
# Base Environment for all HC32F460 variants # Base Environment for all HC32F460 variants
# #
[HC32F460_base] [HC32F460_base]
platform = https://github.com/shadow578/platform-hc32f46x/archive/1.0.0.zip platform = https://github.com/shadow578/platform-hc32f46x/archive/1.1.0.zip
board = generic_hc32f460 platform_packages = framework-hc32f46x-ddl@https://github.com/shadow578/framework-hc32f46x-ddl/archive/2.2.2.zip
build_src_filter = ${common.default_src_filter} +<src/HAL/HC32> +<src/HAL/shared/backtrace> framework-arduino-hc32f46x@https://github.com/shadow578/framework-arduino-hc32f46x/archive/1.2.0.zip
build_type = release board = generic_hc32f460
build_flags = build_src_filter = ${common.default_src_filter} +<src/HAL/HC32> +<src/HAL/shared/backtrace>
-D ARDUINO_ARCH_HC32 build_type = release
-D PLATFORM_M997_SUPPORT # Enable M997 command build_flags = -D ARDUINO_ARCH_HC32
# note: ddl and arduino debug mode are -D PLATFORM_M997_SUPPORT # Enable M997 command
# automatically enabled with MARLIN_DEV_MODE # note: ddl and arduino debug mode are
#-D __DEBUG # force DDL debug mode # automatically enabled with MARLIN_DEV_MODE
#-D __CORE_DEBUG # force Arduino core debug mode #-D __DEBUG # force DDL debug mode
#-D __CORE_DEBUG # force Arduino core debug mode
# hc32 app configuration file # hc32 app configuration file
board_build.app_config = Marlin/src/HAL/HC32/app_config.h board_build.app_config = Marlin/src/HAL/HC32/app_config.h
@ -51,15 +52,13 @@ board_build.ddl.timera = true
board_build.mw.sd_card = true board_build.mw.sd_card = true
# extra build flags # extra build flags
board_build.flags.common = board_build.flags.common = -g3 # Force emit debug symbols to elf. this does not affect the final binary size
-g3 # Force emit debug symbols to elf. this does not affect the final binary size -fno-signed-char # Force unsigned chars. this is required for meatpack to work
-fno-signed-char # Force unsigned chars. this is required for meatpack to work
# Additional flags to reduce binary size # Additional flags to reduce binary size
board_build.flags.cpp = board_build.flags.cpp = -fno-threadsafe-statics # Disable thread-safe statics (only one core anyway)
-fno-threadsafe-statics # Disable thread-safe statics (only one core anyway) -fno-exceptions # Disable exceptions (not used by marlin)
-fno-exceptions # Disable exceptions (not used by marlin) -fno-rtti # Disable RTTI (not used by marlin)
-fno-rtti # Disable RTTI (not used by marlin)
# #
# Base HC32F460xCxx (256K Flash) # Base HC32F460xCxx (256K Flash)