Skip to content

Commit 6a0a865

Browse files
author
Cruz Monrreal
authored
Merge pull request #9091 from ARMmbed/release-candidate
Release candidate for mbed-os-5.11.0-rc4
2 parents 2994c3f + 6ea826f commit 6a0a865

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

targets/targets.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"public": false,
1414
"default_lib": "std",
1515
"bootloader_supported": false,
16+
"static_memory_defines": true,
1617
"config": {
1718
"console-uart-flow-control": {
1819
"help": "Console hardware flow control. Options: null, RTS, CTS, RTSCTS.",
@@ -1842,7 +1843,8 @@
18421843
"XIP_BOOT_HEADER_DCD_ENABLE=1",
18431844
"SKIP_SYSCLK_INIT",
18441845
"FSL_FEATURE_PHYKSZ8081_USE_RMII50M_MODE",
1845-
"SDRAM_IS_SHAREABLE"
1846+
"SDRAM_IS_SHAREABLE",
1847+
"MBED_MPU_CUSTOM"
18461848
],
18471849
"inherits": ["Target"],
18481850
"detect_code": ["0227"],
@@ -1864,8 +1866,7 @@
18641866
"SERIAL",
18651867
"SPI",
18661868
"SPISLAVE",
1867-
"STDIO_MESSAGES",
1868-
"MPU"
1869+
"STDIO_MESSAGES"
18691870
],
18701871
"release_versions": ["2", "5"],
18711872
"features": ["LWIP"],
@@ -6482,6 +6483,7 @@
64826483
"MCU_NRF52832": {
64836484
"inherits": ["Target"],
64846485
"core": "Cortex-M4F",
6486+
"static_memory_defines": false,
64856487
"macros": [
64866488
"BOARD_PCA10040",
64876489
"NRF52",
@@ -6596,6 +6598,7 @@
65966598
"MCU_NRF52840": {
65976599
"inherits": ["Target"],
65986600
"core": "Cortex-M4F",
6601+
"static_memory_defines": false,
65996602
"macros": [
66006603
"BOARD_PCA10056",
66016604
"NRF52840_XXAA",

tools/toolchains/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,8 @@ def add_regions(self):
755755

756756
try:
757757
# Add all available ROM regions to build profile
758+
if not getattr(self.target, "static_memory_defines", False):
759+
raise ConfigException()
758760
rom_available_regions = self.config.get_all_active_memories(ROM_ALL_MEMORIES)
759761
for key, value in rom_available_regions.items():
760762
rom_start, rom_size = value
@@ -767,6 +769,8 @@ def add_regions(self):
767769
pass
768770
try:
769771
# Add all available RAM regions to build profile
772+
if not getattr(self.target, "static_memory_defines", False):
773+
raise ConfigException()
770774
ram_available_regions = self.config.get_all_active_memories(RAM_ALL_MEMORIES)
771775
for key, value in ram_available_regions.items():
772776
ram_start, ram_size = value

0 commit comments

Comments
 (0)