@@ -47,10 +47,12 @@ def __init__(self, target, notify=None, macros=None, build_profile=None,
47
47
build_profile = build_profile )
48
48
if target .core == "Cortex-M7F" or target .core == "Cortex-M7FD" :
49
49
cpuchoice = "Cortex-M7"
50
- elif target .core .startswith ("Cortex-M23 " ):
51
- cpuchoice = "8-M.baseline "
50
+ elif target .core .startswith ("Cortex-M33FD " ):
51
+ cpuchoice = "Cortex-M33 "
52
52
elif target .core .startswith ("Cortex-M33" ):
53
- cpuchoice = "8-M.mainline"
53
+ cpuchoice = "Cortex-M33.no_dsp"
54
+ elif target .core .startswith ("Cortex-M23" ):
55
+ cpuchoice = "Cortex-M23"
54
56
else :
55
57
cpuchoice = target .core
56
58
@@ -74,12 +76,15 @@ def __init__(self, target, notify=None, macros=None, build_profile=None,
74
76
elif target .core == "Cortex-M7F" :
75
77
asm_flags_cmd += ["--fpu" , "VFPv5_sp" ]
76
78
c_flags_cmd .append ("--fpu=VFPv5_sp" )
77
- elif target .core == "Cortex-M23" or target . core == "Cortex-M33" or target . core == "Cortex- M33F" :
78
- self . flags [ "asm" ] += ["--cmse " ]
79
- self . flags [ "common" ] += [ "--cmse" ]
79
+ elif target .core . startswith ( "Cortex-M33F" ) :
80
+ asm_flags_cmd += ["--fpu" , "VFPv5_sp " ]
81
+ c_flags_cmd . append ( "--fpu=VFPv5_sp" )
80
82
81
83
# Create Secure library
82
- if target .core == "Cortex-M23" or self .target .core == "Cortex-M33" or self .target .core == "Cortex-M33F" :
84
+ if ((target .core .startswith ("Cortex-M23" ) or target .core .startswith ("Cortex-M33" ))
85
+ and not target .core .endswith ("-NS" )):
86
+ self .flags ["asm" ] += ["--cmse" ]
87
+ self .flags ["common" ] += ["--cmse" ]
83
88
secure_file = join (build_dir , "cmse_lib.o" )
84
89
self .flags ["ld" ] += ["--import_cmse_lib_out=%s" % secure_file ]
85
90
0 commit comments