add new ch32v203g6u board, sysfreq is defined in board.cmake/mk

This commit is contained in:
hathach
2024-06-21 16:08:37 +07:00
parent ac3ec59845
commit 02bea8982e
16 changed files with 107 additions and 46 deletions

View File

@@ -59,8 +59,8 @@ function(add_board_target BOARD_TARGET)
)
target_link_options(${BOARD_TARGET} PUBLIC
"LINKER:--script=${LD_FILE_GNU}"
-Wl,--defsym=__flash_size=${LD_FLASH_SIZE}
-Wl,--defsym=__ram_size=${LD_RAM_SIZE}
-Wl,--defsym=__FLASH_SIZE=${LD_FLASH_SIZE}
-Wl,--defsym=__RAM_SIZE=${LD_RAM_SIZE}
-nostartfiles
--specs=nosys.specs --specs=nano.specs
)