File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ class DeviceCMSIS():
30
30
"""CMSIS Device class
31
31
32
32
Encapsulates target information retrieved by arm-pack-manager"""
33
+ cache = Cache (True , False )
33
34
def __init__ (self , target ):
34
35
target_info = self .check_supported (target )
35
36
if not target_info :
@@ -48,17 +49,16 @@ def __init__(self, target):
48
49
49
50
@staticmethod
50
51
def check_supported (target ):
51
- cache = Cache (True , False )
52
52
t = TARGET_MAP [target ]
53
53
try :
54
54
cpu_name = t .device_name
55
- target_info = cache .index [cpu_name ]
55
+ target_info = DeviceCMSIS . cache .index [cpu_name ]
56
56
# Target does not have device name or pdsc file
57
57
except :
58
58
try :
59
59
# Try to find the core as a generic CMSIS target
60
60
cpu_name = DeviceCMSIS .cpu_cmsis (t .core )
61
- target_info = cache .index [cpu_name ]
61
+ target_info = DeviceCMSIS .index [cpu_name ]
62
62
except :
63
63
return False
64
64
target_info ["_cpu_name" ] = cpu_name
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ def main():
234
234
# Export to selected toolchain
235
235
exporter , toolchain_name = get_exporter_toolchain (options .ide )
236
236
if options .mcu not in exporter .TARGETS :
237
- args_error (parser , "%s not supported by %s" )
237
+ args_error (parser , "%s not supported by %s" % ( options . mcu , options . ide ) )
238
238
profile = extract_profile (parser , options , toolchain_name )
239
239
export (options .mcu , options .ide , build = options .build ,
240
240
src = options .source_dir , macros = options .macros ,
You can’t perform that action at this time.
0 commit comments