File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ class DeviceCMSIS():
31
31
32
32
Encapsulates target information retrieved by arm-pack-manager"""
33
33
34
+ # TODO: This class uses the TARGET_MAP. Usage of the target map may
35
+ # not work in the online compiler or may work but give the incorrect
36
+ # information.
34
37
CACHE = Cache (True , False )
35
38
def __init__ (self , target ):
36
39
target_info = self .check_supported (target )
@@ -44,10 +47,14 @@ def __init__(self, target):
44
47
)
45
48
self .dname = target_info ["name" ]
46
49
self .core = target_info ["_core" ]
50
+ self .dfpu = None
47
51
try :
48
52
self .dfpu = target_info ['processor' ]['Symmetric' ]['fpu' ]
49
53
except KeyError :
50
- self .dfpu = target_info ['processor' ]['Asymmetric' ]['fpu' ]
54
+ cmsis_core = self .core .replace ("F" , "" ).replace ("-" , "" )
55
+ for proc in target_info ['processor' ]['Asymmetric' ].values ():
56
+ if proc ['core' ] == cmsis_core :
57
+ self .dfpu = proc ['fpu' ]
51
58
self .debug , self .dvendor = self .vendor_debug (
52
59
target_info .get ('vendor' ) or target_info ['from_pack' ]['vendor' ]
53
60
)
You can’t perform that action at this time.
0 commit comments