mirror of https://github.com/ARMmbed/mbed-os.git
Enable uvision export for NS cores
parent
5e9ac75c4f
commit
11702d16b5
|
@ -98,6 +98,7 @@ class DeviceCMSIS():
|
|||
cpu = cpu.replace("Cortex-","ARMC")
|
||||
cpu = cpu.replace("+","P")
|
||||
cpu = cpu.replace("F","_FP")
|
||||
cpu = cpu.replace("-NS", "")
|
||||
return cpu
|
||||
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@ class DeviceUvision(DeviceCMSIS):
|
|||
cpu = self.core.replace("Cortex-", "C")
|
||||
cpu = cpu.replace("+", "")
|
||||
cpu = cpu.replace("F", "")
|
||||
cpu = cpu.replace("-NS", "")
|
||||
cpu_flag = "p"+cpu
|
||||
|
||||
# Locations found in Keil_v5/TOOLS.INI
|
||||
|
@ -231,15 +232,14 @@ class Uvision(Exporter):
|
|||
sct_path, dirname(sct_name))
|
||||
if ctx['linker_script'] != sct_path:
|
||||
self.generated_files.append(ctx['linker_script'])
|
||||
core = ctx['device'].core
|
||||
ctx['cputype'] = core.rstrip("FD")
|
||||
if core.endswith("FD"):
|
||||
ctx['cputype'] = ctx['device'].core.rstrip("FD").replace("-NS", "")
|
||||
if ctx['device'].core.endswith("FD"):
|
||||
ctx['fpu_setting'] = 3
|
||||
elif core.endswith("F"):
|
||||
elif ctx['device'].core.endswith("F"):
|
||||
ctx['fpu_setting'] = 2
|
||||
else:
|
||||
ctx['fpu_setting'] = 1
|
||||
ctx['fputype'] = self.format_fpu(core)
|
||||
ctx['fputype'] = self.format_fpu(ctx['device'].core)
|
||||
ctx['armc6'] = int(self.TOOLCHAIN is 'ARMC6')
|
||||
ctx['toolchain_name'] = self.TOOLCHAIN_NAME
|
||||
ctx.update(self.format_flags())
|
||||
|
|
|
@ -217,7 +217,7 @@
|
|||
<AdsLsxf>1</AdsLsxf>
|
||||
<RvctClst>0</RvctClst>
|
||||
<GenPPlst>0</GenPPlst>
|
||||
<AdsCpuType>"{{device.core.replace("D","").replace("F","")}}"</AdsCpuType>
|
||||
<AdsCpuType>"{{cputype}}"</AdsCpuType>
|
||||
<RvctDeviceName></RvctDeviceName>
|
||||
<mOS>0</mOS>
|
||||
<uocRom>0</uocRom>
|
||||
|
|
Loading…
Reference in New Issue