From abd948fa6d12fcdd7646bf9f6e86ea5554d2a59c Mon Sep 17 00:00:00 2001 From: sarahmarshy Date: Thu, 1 Dec 2016 10:55:28 +0800 Subject: [PATCH] [Exporters] Fix generic ARM CPU target in uvision Generic CPU target not found correctly, because it was not accessing the Cache's index. @theotherjimmy --- tools/export/cmsis/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/export/cmsis/__init__.py b/tools/export/cmsis/__init__.py index 4356574113..bd72466756 100644 --- a/tools/export/cmsis/__init__.py +++ b/tools/export/cmsis/__init__.py @@ -58,7 +58,7 @@ class DeviceCMSIS(): try: # Try to find the core as a generic CMSIS target cpu_name = DeviceCMSIS.cpu_cmsis(t.core) - target_info = DeviceCMSIS.index[cpu_name] + target_info = DeviceCMSIS.CACHE.index[cpu_name] except: return False target_info["_cpu_name"] = cpu_name