Skip to content

Add bootloader configuration parameters for MAX32625PICO #7523

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from Aug 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
#! armcc -E
; MAX32625
; 512KB FLASH (0x80000) @ 0x000000000
; 160KB RAM (0x28000) @ 0x20000000

LR_IROM1 0x000010000 0x70000 { ; load region size_region
ER_IROM1 0x000010000 0x70000 { ; load address = execution address
#if !defined(MBED_APP_START)
#define MBED_APP_START 0x00010000
#endif

#if !defined(MBED_APP_SIZE)
#define MBED_APP_SIZE 0x00070000
#endif

LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
ER_IROM1 MBED_APP_START MBED_APP_SIZE { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,17 @@
*******************************************************************************
*/

#if !defined(MBED_APP_START)
#define MBED_APP_START 0x00010000
#endif

#if !defined(MBED_APP_SIZE)
#define MBED_APP_SIZE 0x00070000
#endif

MEMORY
{
FLASH (rx) : ORIGIN = 0x00010000, LENGTH = 0x00070000
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00028000
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
if (!isdefinedsymbol(MBED_APP_START)) {
define symbol MBED_APP_START = 0x00010000;
}
if (!isdefinedsymbol(MBED_APP_SIZE)) {
define symbol MBED_APP_SIZE = 0x00070000;
}

/* [ROM] */
define symbol __intvec_start__ = 0x00010000;
define symbol __region_ROM_start__ = 0x00010000;
define symbol __region_ROM_end__ = 0x0007FFFF;
define symbol __intvec_start__ = MBED_APP_START;
define symbol __region_ROM_start__ = MBED_APP_START;
define symbol __region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1;

/* [RAM] Vector table dynamic copy: 68 vectors * 4 bytes = 272 (0x110) bytes */
define symbol __NVIC_start__ = 0x00010000;
Expand Down
26 changes: 7 additions & 19 deletions targets/targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2909,33 +2909,21 @@
"extra_labels": ["Maxim", "MAX32625"],
"supported_toolchains": ["GCC_ARM", "IAR", "ARM"],
"device_has": ["ANALOGIN", "I2C", "INTERRUPTIN", "LPTICKER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "STDIO_MESSAGES", "USTICKER"],
"device_name": "MAX32625",
"release_versions": ["2", "5"],
"public": false
},
"MAX32625_BOOT": {
"inherits": ["MAX32625_BASE"],
"extra_labels_add": ["MAX32625_BOOT"],
"public": false
},
"MAX32625_NO_BOOT": {
"inherits": ["MAX32625_BASE"],
"extra_labels_add": ["MAX32625_NO_BOOT"],
"public": false
},
"MAX32625MBED": {
"inherits": ["MAX32625_NO_BOOT"]
"inherits": ["MAX32625_BASE"],
"extra_labels_add": ["MAX32625_NO_BOOT"]
},
"MAX32625PICO": {
"inherits": ["MAX32625_BOOT"],
"extra_labels_add": ["MAX32625PICO_BASE"]
},
"MAX32625PICO_NO_BOOT": {
"inherits": ["MAX32625_NO_BOOT"],
"extra_labels_add": ["MAX32625PICO_BASE"]
"inherits": ["MAX32625_BASE"],
"extra_labels_add": ["MAX32625_BOOT"],
"bootloader_supported": true
},
"MAX32625NEXPAQ": {
"inherits": ["MAX32625_BASE"],
"extra_labels_add": ["MAX32625NEXPAQ"]
"inherits": ["MAX32625_BASE"]
},
"MAX32630FTHR": {
"inherits": ["Target"],
Expand Down