fix pre-commit, remove svd file since they are heavy and should be in mcu/sdk instead

add cmake support for f403a_407 and f423
This commit is contained in:
hathach
2025-07-28 22:28:22 +07:00
parent f4843c0307
commit 3682b6c663
77 changed files with 496 additions and 249968 deletions

View File

@@ -104,7 +104,7 @@ SECTIONS
_sidata = LOADADDR(.data);
/* Initialized data sections goes into RAM, load LMA copy after code */
.data :
.data :
{
. = ALIGN(4);
_sdata = .; /* create a global symbol at data start */
@@ -119,7 +119,7 @@ SECTIONS
. = ALIGN(4);
.bss :
{
/* This is used by the startup in order to initialize the .bss secion */
/* This is used by the startup in order to initialize the .bss section */
_sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss;
*(.bss)

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,9 @@
set(MCU_VARIANT AT32F403ACGU7)
set(JLINK_DEVICE ${MCU_VARIANT})
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/AT32F403AxG_FLASH.ld)
set(LD_FILE_IAR ${AT_SDK_LIB}/cmsis/cm4/device_support/startup/iar/linker/AT32F403AxG.icf)
function(update_board TARGET)
target_compile_definitions(${TARGET} PUBLIC ${MCU_VARIANT})
endfunction()

View File

@@ -1,3 +1,4 @@
JLINK_DEVICE = at32f403acgu7
LD_FILE = $(BOARD_PATH)/AT32F403AxG_FLASH.ld
CFLAGS += \