Skip to content

Commit ed94e6a

Browse files
Keyur HariyaKeyur Hariya
authored andcommitted
Add bootloader configuration parameters for MAX32625PICO and rework targets.json
1 parent be215a3 commit ed94e6a

File tree

7 files changed

+37
-25
lines changed

7 files changed

+37
-25
lines changed

targets/TARGET_Maxim/TARGET_MAX32625/device/TOOLCHAIN_ARM_STD/TARGET_MAX32625_BOOT/MAX32625.sct

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1+
#! armcc -E
12
; MAX32625
23
; 512KB FLASH (0x80000) @ 0x000000000
34
; 160KB RAM (0x28000) @ 0x20000000
45

5-
LR_IROM1 0x000010000 0x70000 { ; load region size_region
6-
ER_IROM1 0x000010000 0x70000 { ; load address = execution address
6+
#if !defined(MBED_APP_START)
7+
#define MBED_APP_START 0x00010000
8+
#endif
9+
10+
#if !defined(MBED_APP_SIZE)
11+
#define MBED_APP_SIZE 0x00070000
12+
#endif
13+
14+
LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
15+
ER_IROM1 MBED_APP_START MBED_APP_SIZE { ; load address = execution address
716
*.o (RESET, +First)
817
*(InRoot$$Sections)
918
.ANY (+RO)

targets/TARGET_Maxim/TARGET_MAX32625/device/TOOLCHAIN_GCC_ARM/TARGET_MAX32625_BOOT/max32625.ld

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,17 @@
3131
*******************************************************************************
3232
*/
3333

34+
#if !defined(MBED_APP_START)
35+
#define MBED_APP_START 0x00010000
36+
#endif
37+
38+
#if !defined(MBED_APP_SIZE)
39+
#define MBED_APP_SIZE 0x00070000
40+
#endif
41+
3442
MEMORY
3543
{
36-
FLASH (rx) : ORIGIN = 0x00010000, LENGTH = 0x00070000
44+
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
3745
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00028000
3846
}
3947

targets/TARGET_Maxim/TARGET_MAX32625/device/TOOLCHAIN_IAR/TARGET_MAX32625_BOOT/MAX32625.icf

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
if (!isdefinedsymbol(MBED_APP_START)) {
2+
define symbol MBED_APP_START = 0x00010000;
3+
}
4+
if (!isdefinedsymbol(MBED_APP_SIZE)) {
5+
define symbol MBED_APP_SIZE = 0x00070000;
6+
}
7+
18
/* [ROM] */
2-
define symbol __intvec_start__ = 0x00010000;
3-
define symbol __region_ROM_start__ = 0x00010000;
4-
define symbol __region_ROM_end__ = 0x0007FFFF;
9+
define symbol __intvec_start__ = MBED_APP_START;
10+
define symbol __region_ROM_start__ = MBED_APP_START;
11+
define symbol __region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1;
512

613
/* [RAM] Vector table dynamic copy: 68 vectors * 4 bytes = 272 (0x110) bytes */
714
define symbol __NVIC_start__ = 0x00010000;

targets/targets.json

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2909,33 +2909,21 @@
29092909
"extra_labels": ["Maxim", "MAX32625"],
29102910
"supported_toolchains": ["GCC_ARM", "IAR", "ARM"],
29112911
"device_has": ["ANALOGIN", "I2C", "INTERRUPTIN", "LPTICKER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "STDIO_MESSAGES", "USTICKER"],
2912+
"device_name": "MAX32625",
29122913
"release_versions": ["2", "5"],
29132914
"public": false
29142915
},
2915-
"MAX32625_BOOT": {
2916-
"inherits": ["MAX32625_BASE"],
2917-
"extra_labels_add": ["MAX32625_BOOT"],
2918-
"public": false
2919-
},
2920-
"MAX32625_NO_BOOT": {
2921-
"inherits": ["MAX32625_BASE"],
2922-
"extra_labels_add": ["MAX32625_NO_BOOT"],
2923-
"public": false
2924-
},
29252916
"MAX32625MBED": {
2926-
"inherits": ["MAX32625_NO_BOOT"]
2917+
"inherits": ["MAX32625_BASE"],
2918+
"extra_labels_add": ["MAX32625_NO_BOOT"]
29272919
},
29282920
"MAX32625PICO": {
2929-
"inherits": ["MAX32625_BOOT"],
2930-
"extra_labels_add": ["MAX32625PICO_BASE"]
2931-
},
2932-
"MAX32625PICO_NO_BOOT": {
2933-
"inherits": ["MAX32625_NO_BOOT"],
2934-
"extra_labels_add": ["MAX32625PICO_BASE"]
2921+
"inherits": ["MAX32625_BASE"],
2922+
"extra_labels_add": ["MAX32625_BOOT"],
2923+
"bootloader_supported": true
29352924
},
29362925
"MAX32625NEXPAQ": {
2937-
"inherits": ["MAX32625_BASE"],
2938-
"extra_labels_add": ["MAX32625NEXPAQ"]
2926+
"inherits": ["MAX32625_BASE"]
29392927
},
29402928
"MAX32630FTHR": {
29412929
"inherits": ["Target"],

0 commit comments

Comments
 (0)