27
27
# Base Environment for all HC32F460 variants
28
28
#
29
29
[HC32F460_base]
30
- platform = https://github.com/shadow578/platform-hc32f46x/archive/1.0.0.zip
31
- board = generic_hc32f460
32
- build_src_filter = ${common.default_src_filter} +<src/HAL/HC32> +<src/HAL/shared/backtrace>
33
- build_type = release
34
- build_flags =
35
- -D ARDUINO_ARCH_HC32
36
- -D PLATFORM_M997_SUPPORT # Enable M997 command
37
- # note: ddl and arduino debug mode are
38
- # automatically enabled with MARLIN_DEV_MODE
39
- # -D __DEBUG # force DDL debug mode
40
- # -D __CORE_DEBUG # force Arduino core debug mode
30
+ platform = https://github.com/shadow578/platform-hc32f46x/archive/1.1.0.zip
31
+ platform_packages = framework-hc32f46x-ddl@https://github.com/shadow578/framework-hc32f46x-ddl/archive/2.2.2.zip
32
+ framework-arduino-hc32f46x@https://github.com/shadow578/framework-arduino-hc32f46x/archive/1.2.0.zip
33
+ board = generic_hc32f460
34
+ build_src_filter = ${common.default_src_filter} +<src/HAL/HC32> +<src/HAL/shared/backtrace>
35
+ build_type = release
36
+ build_flags = -D ARDUINO_ARCH_HC32
37
+ -D PLATFORM_M997_SUPPORT # Enable M997 command
38
+ # note: ddl and arduino debug mode are
39
+ # automatically enabled with MARLIN_DEV_MODE
40
+ # -D __DEBUG # force DDL debug mode
41
+ # -D __CORE_DEBUG # force Arduino core debug mode
41
42
42
43
# hc32 app configuration file
43
44
board_build.app_config = Marlin/src/HAL/HC32/app_config.h
@@ -51,15 +52,13 @@ board_build.ddl.timera = true
51
52
board_build.mw.sd_card = true
52
53
53
54
# extra build flags
54
- board_build.flags.common =
55
- -g3 # Force emit debug symbols to elf. this does not affect the final binary size
56
- -fno-signed-char # Force unsigned chars. this is required for meatpack to work
55
+ board_build.flags.common = -g3 # Force emit debug symbols to elf. this does not affect the final binary size
56
+ -fno-signed-char # Force unsigned chars. this is required for meatpack to work
57
57
58
58
# Additional flags to reduce binary size
59
- board_build.flags.cpp =
60
- -fno-threadsafe-statics # Disable thread-safe statics (only one core anyway)
61
- -fno-exceptions # Disable exceptions (not used by marlin)
62
- -fno-rtti # Disable RTTI (not used by marlin)
59
+ board_build.flags.cpp = -fno-threadsafe-statics # Disable thread-safe statics (only one core anyway)
60
+ -fno-exceptions # Disable exceptions (not used by marlin)
61
+ -fno-rtti # Disable RTTI (not used by marlin)
63
62
64
63
#
65
64
# Base HC32F460xCxx (256K Flash)
0 commit comments