Skip to content

Commit 97892aa

Browse files
committed
Fix the removal of Mbed-added core flags in uvision exporter
1 parent f76436c commit 97892aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/export/uvision/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def generate(self):
247247
sct_path, dirname(sct_name))
248248
if ctx['linker_script'] != sct_path:
249249
self.generated_files.append(ctx['linker_script'])
250-
ctx['cputype'] = ctx['device'].core.rstrip("FD").replace("-NS", "")
250+
ctx['cputype'] = ctx['device'].core.replace("-NS", "").rstrip("FDE")
251251
if ctx['device'].core.endswith("FD"):
252252
ctx['fpu_setting'] = 3
253253
elif ctx['device'].core.endswith("F"):

0 commit comments

Comments
 (0)