File tree Expand file tree Collapse file tree 9 files changed +21
-238
lines changed
TARGET_Maxim/TARGET_MAX32625 Expand file tree Collapse file tree 9 files changed +21
-238
lines changed Original file line number Diff line number Diff line change 4
4
add_subdirectory (TARGET_MAX32625MBED EXCLUDE_FROM_ALL )
5
5
add_subdirectory (TARGET_MAX32625PICO EXCLUDE_FROM_ALL )
6
6
add_subdirectory (TARGET_SDT32625B EXCLUDE_FROM_ALL )
7
- add_subdirectory (device EXCLUDE_FROM_ALL )
8
7
9
- if (${MBED_TOOLCHAIN} STREQUAL "ARM" )
10
- set (STARTUP_FILE device/TOOLCHAIN_ARM_STD/startup_MAX32625.S )
11
- elseif (${MBED_TOOLCHAIN} STREQUAL "GCC_ARM" )
8
+ if (${MBED_TOOLCHAIN} STREQUAL "GCC_ARM" )
12
9
set (STARTUP_FILE device/TOOLCHAIN_GCC_ARM/startup_max32625.S )
10
+ set (LINKER_FILE device/TOOLCHAIN_GCC_ARM/max32625.ld )
13
11
endif ()
14
12
15
13
add_library (mbed-max32625 INTERFACE )
@@ -71,4 +69,6 @@ target_sources(mbed-max32625
71
69
${STARTUP_FILE}
72
70
)
73
71
72
+ mbed_set_linker_script (mbed-max32625 ${CMAKE_CURRENT_SOURCE_DIR} /${LINKER_FILE} )
73
+
74
74
target_link_libraries (mbed-max32625 INTERFACE mbed-maxim )
Original file line number Diff line number Diff line change @@ -8,4 +8,4 @@ target_include_directories(mbed-max32625mbed
8
8
.
9
9
)
10
10
11
- target_link_libraries (mbed-max32625mbed INTERFACE mbed-max32625 mbed-max32625-no-boot )
11
+ target_link_libraries (mbed-max32625mbed INTERFACE mbed-max32625 )
Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ target_sources(mbed-max32625pico
13
13
low_level_init.c
14
14
)
15
15
16
- target_link_libraries (mbed-max32625pico INTERFACE mbed-max32625 mbed-max32625-boot )
16
+ target_link_libraries (mbed-max32625pico INTERFACE mbed-max32625 )
Original file line number Diff line number Diff line change @@ -8,4 +8,4 @@ target_include_directories(mbed-sdt32625b
8
8
.
9
9
)
10
10
11
- target_link_libraries (mbed-sdt32625b INTERFACE mbed-max32625-no-boot )
11
+ target_link_libraries (mbed-sdt32625b INTERFACE mbed-max32625 )
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ STACK_SIZE = MBED_CONF_TARGET_BOOT_STACK_SIZE;
39
39
40
40
MEMORY
41
41
{
42
- FLASH (rx) : ORIGIN = 0x00000000 , LENGTH = 0x00080000
43
- RAM (rwx) : ORIGIN = 0x20000000 , LENGTH = 0x00028000
42
+ FLASH (rx) : ORIGIN = MBED_CONFIGURED_ROM_BANK_IROM1_START , LENGTH = MBED_CONFIGURED_ROM_BANK_IROM1_SIZE
43
+ RAM (rwx) : ORIGIN = MBED_CONFIGURED_RAM_BANK_IRAM1_START , LENGTH = MBED_CONFIGURED_RAM_BANK_IRAM1_SIZE
44
44
}
45
45
46
46
/* Linker script to place sections and symbol values. Should be used together
Original file line number Diff line number Diff line change 2397
2397
"write" : true
2398
2398
} ,
2399
2399
"default" : true ,
2400
- "size" : 163840 ,
2401
- "start" : 536870912 ,
2400
+ "size" : 0x28000 ,
2401
+ "start" : 0x20000000 ,
2402
2402
"startup" : false
2403
2403
} ,
2404
2404
"IROM1" : {
2412
2412
"write" : false
2413
2413
} ,
2414
2414
"default" : true ,
2415
- "size" : 524288 ,
2415
+ "size" : 0x80000 ,
2416
2416
"start" : 0 ,
2417
2417
"startup" : true
2418
2418
}
Original file line number Diff line number Diff line change 6463
6463
"inherits" : [
6464
6464
"MAX32625_BASE"
6465
6465
] ,
6466
- "extra_labels_add" : [
6467
- "MAX32625_NO_BOOT"
6468
- ] ,
6469
6466
"detect_code" : [
6470
6467
"0415"
6471
6468
] ,
6475
6472
"inherits" : [
6476
6473
"MAX32625_BASE"
6477
6474
] ,
6478
- "extra_labels_add" : [
6479
- "MAX32625_NO_BOOT"
6480
- ] ,
6481
6475
"detect_code" : [
6482
6476
"3102"
6483
6477
] ,
6487
6481
"inherits" : [
6488
6482
"MAX32625_BASE"
6489
6483
] ,
6490
- "extra_labels_add" : [
6491
- "MAX32625_BOOT"
6492
- ] ,
6493
6484
"bootloader_supported" : true ,
6485
+
6486
+ // Reserve the first 64k of flash for the bootloader
6487
+ "memory_bank_config" : {
6488
+ "IROM1" : {
6489
+ "start" : 0x00010000 ,
6490
+ "size" : 0x00070000
6491
+ }
6492
+ } ,
6493
+
6494
6494
"detect_code" : [
6495
6495
"0444"
6496
6496
] ,
You can’t perform that action at this time.
0 commit comments