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:
@@ -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
9
hw/bsp/at32f423/boards/AT_START_F423/board.cmake
Normal file
9
hw/bsp/at32f423/boards/AT_START_F423/board.cmake
Normal file
@@ -0,0 +1,9 @@
|
||||
set(MCU_VARIANT AT32F423VCT7)
|
||||
set(JLINK_DEVICE ${MCU_VARIANT})
|
||||
|
||||
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/AT32F423xC_FLASH.ld)
|
||||
set(LD_FILE_IAR ${AT_SDK_LIB}/cmsis/cm4/device_support/startup/iar/linker/AT32F423xC.icf)
|
||||
|
||||
function(update_board TARGET)
|
||||
target_compile_definitions(${TARGET} PUBLIC ${MCU_VARIANT})
|
||||
endfunction()
|
@@ -1,3 +1,4 @@
|
||||
JLINK_DEVICE = AT32F423VCT7
|
||||
LD_FILE = $(BOARD_PATH)/AT32F423xC_FLASH.ld
|
||||
|
||||
CFLAGS += \
|
||||
|
Reference in New Issue
Block a user