Skip to content

Update to add support for Cortex-M33FD #9097

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
Dec 17, 2018
Merged
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
10 changes: 6 additions & 4 deletions tools/toolchains/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ class mbedToolchain:
"Cortex-M33": ["__CORTEX_M33", "ARM_MATH_ARMV8MML", "__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
"Cortex-M33F-NS": ["__CORTEX_M33", "ARM_MATH_ARMV8MML", "DOMAIN_NS=1", "__FPU_PRESENT=1U", "__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
"Cortex-M33F": ["__CORTEX_M33", "ARM_MATH_ARMV8MML", "__FPU_PRESENT=1U", "__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
"Cortex-M33FD-NS": ["__CORTEX_M33", "ARM_MATH_ARMV8MML", "DOMAIN_NS=1", "__FPU_PRESENT=1U", "__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
"Cortex-M33FD": ["__CORTEX_M33", "ARM_MATH_ARMV8MML", "__FPU_PRESENT=1U", "__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
}

MBED_CONFIG_FILE_NAME="mbed_config.h"
Expand Down Expand Up @@ -717,7 +719,7 @@ def _add_defines_from_region(self, region, linker_define=False, suffixes=['_ADDR
ld_string = self.make_ld_define(*ld_string)
self.ld.append(ld_string)
self.flags["ld"].append(ld_string)

def _add_all_regions(self, region_list, active_region_name):
for region in region_list:
self._add_defines_from_region(region)
Expand All @@ -744,8 +746,8 @@ def add_regions(self):
))
self._add_all_regions(regions, "MBED_APP")
except ConfigException:
pass
pass

if self.config.has_ram_regions:
try:
regions = list(self.config.ram_regions)
Expand All @@ -755,7 +757,7 @@ def add_regions(self):
))
self._add_all_regions(regions, "MBED_RAM")
except ConfigException:
pass
pass

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

Expand Down