Skip to content

Commit 4649a6e

Browse files
committed
Update to add support for Cortex-M33FD
Signed-off-by: Mahesh Mahadevan <[email protected]>
1 parent a91dccd commit 4649a6e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tools/toolchains/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ class mbedToolchain:
7878
"Cortex-M33": ["__CORTEX_M33", "ARM_MATH_ARMV8MML", "__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
7979
"Cortex-M33F-NS": ["__CORTEX_M33", "ARM_MATH_ARMV8MML", "DOMAIN_NS=1", "__FPU_PRESENT=1U", "__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
8080
"Cortex-M33F": ["__CORTEX_M33", "ARM_MATH_ARMV8MML", "__FPU_PRESENT=1U", "__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
81+
"Cortex-M33FD-NS": ["__CORTEX_M33", "ARM_MATH_ARMV8MML", "DOMAIN_NS=1", "__FPU_PRESENT=1U", "__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
82+
"Cortex-M33FD": ["__CORTEX_M33", "ARM_MATH_ARMV8MML", "__FPU_PRESENT=1U", "__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
8183
}
8284

8385
MBED_CONFIG_FILE_NAME="mbed_config.h"
@@ -717,7 +719,7 @@ def _add_defines_from_region(self, region, linker_define=False, suffixes=['_ADDR
717719
ld_string = self.make_ld_define(*ld_string)
718720
self.ld.append(ld_string)
719721
self.flags["ld"].append(ld_string)
720-
722+
721723
def _add_all_regions(self, region_list, active_region_name):
722724
for region in region_list:
723725
self._add_defines_from_region(region)
@@ -744,8 +746,8 @@ def add_regions(self):
744746
))
745747
self._add_all_regions(regions, "MBED_APP")
746748
except ConfigException:
747-
pass
748-
749+
pass
750+
749751
if self.config.has_ram_regions:
750752
try:
751753
regions = list(self.config.ram_regions)
@@ -755,7 +757,7 @@ def add_regions(self):
755757
))
756758
self._add_all_regions(regions, "MBED_RAM")
757759
except ConfigException:
758-
pass
760+
pass
759761

760762
Region = namedtuple("Region", "name start size")
761763

0 commit comments

Comments
 (0)