[Exporters] Fix generic ARM CPU target in uvision

Generic CPU target not found correctly, because it was not accessing the Cache's index.

@theotherjimmy
pull/3349/head
sarahmarshy 2016-12-01 10:55:28 +08:00 committed by GitHub
parent c57427f77f
commit abd948fa6d
1 changed files with 1 additions and 1 deletions

View File

@ -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