File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ def cpu_cmsis(cpu):
97
97
cpu = cpu .replace ("Cortex-" ,"ARMC" )
98
98
cpu = cpu .replace ("+" ,"P" )
99
99
cpu = cpu .replace ("F" ,"_FP" )
100
+ cpu = cpu .replace ("-NS" , "" )
100
101
return cpu
101
102
102
103
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ def uv_debug(self):
37
37
cpu = self .core .replace ("Cortex-" , "C" )
38
38
cpu = cpu .replace ("+" , "" )
39
39
cpu = cpu .replace ("F" , "" )
40
+ cpu = cpu .replace ("-NS" , "" )
40
41
cpu_flag = "p" + cpu
41
42
42
43
# Locations found in Keil_v5/TOOLS.INI
@@ -222,15 +223,14 @@ def generate(self):
222
223
'device' : DeviceUvision (self .target ),
223
224
}
224
225
self .generated_files .append (ctx ['linker_script' ])
225
- core = ctx ['device' ].core
226
- ctx ['cputype' ] = core .rstrip ("FD" )
227
- if core .endswith ("FD" ):
226
+ ctx ['cputype' ] = ctx ['device' ].core .rstrip ("FD" ).replace ("-NS" , "" )
227
+ if ctx ['device' ].core .endswith ("FD" ):
228
228
ctx ['fpu_setting' ] = 3
229
- elif core .endswith ("F" ):
229
+ elif ctx [ 'device' ]. core .endswith ("F" ):
230
230
ctx ['fpu_setting' ] = 2
231
231
else :
232
232
ctx ['fpu_setting' ] = 1
233
- ctx ['fputype' ] = self .format_fpu (core )
233
+ ctx ['fputype' ] = self .format_fpu (ctx [ 'device' ]. core )
234
234
ctx ['armc6' ] = int (self .TOOLCHAIN is 'ARMC6' )
235
235
ctx ['toolchain_name' ] = self .TOOLCHAIN_NAME
236
236
ctx .update (self .format_flags ())
Original file line number Diff line number Diff line change 217
217
<AdsLsxf >1</AdsLsxf >
218
218
<RvctClst >0</RvctClst >
219
219
<GenPPlst >0</GenPPlst >
220
- <AdsCpuType >"{{device.core.replace("D","").replace("F","") }}"</AdsCpuType >
220
+ <AdsCpuType >"{{cputype }}"</AdsCpuType >
221
221
<RvctDeviceName ></RvctDeviceName >
222
222
<mOS >0</mOS >
223
223
<uocRom >0</uocRom >
You can’t perform that action at this time.
0 commit comments