mirror of https://github.com/ARMmbed/mbed-os.git
commit
42ceddf229
|
@ -36,6 +36,8 @@
|
|||
|
||||
#if defined (__CORTEX_M4) || defined (__CORTEX_M4F)
|
||||
#include "core_cm4.h"
|
||||
#elif defined (__CORTEX_M7) || defined (__CORTEX_M7F)
|
||||
#include "core_cm7.h"
|
||||
#elif defined (__CORTEX_M3)
|
||||
#include "core_cm3.h"
|
||||
#elif defined (__CORTEX_M0)
|
||||
|
|
|
@ -122,7 +122,6 @@ class Uvision4(Exporter):
|
|||
'DISCO_F334C8',
|
||||
'DISCO_F429ZI',
|
||||
'DISCO_F469NI',
|
||||
'DISCO_F746NG',
|
||||
'DISCO_L053C8',
|
||||
'DISCO_L476VG',
|
||||
'B96B_F446VE',
|
||||
|
|
|
@ -226,7 +226,7 @@
|
|||
<hadIRAM2>0</hadIRAM2>
|
||||
<hadIROM2>0</hadIROM2>
|
||||
<StupSel>8</StupSel>
|
||||
<useUlib>1</useUlib>
|
||||
<useUlib>0</useUlib>
|
||||
<EndSel>0</EndSel>
|
||||
<uLtcg>0</uLtcg>
|
||||
<RoSelD>3</RoSelD>
|
||||
|
@ -390,7 +390,7 @@
|
|||
</VariousControls>
|
||||
</Aads>
|
||||
<LDads>
|
||||
<umfTarg>1</umfTarg>
|
||||
<umfTarg>0</umfTarg>
|
||||
<Ropi>0</Ropi>
|
||||
<Rwpi>0</Rwpi>
|
||||
<noStLib>0</noStLib>
|
||||
|
|
|
@ -21,10 +21,10 @@ CORE_LABELS = {
|
|||
"Cortex-M0+": ["M0P", "CORTEX_M"],
|
||||
"Cortex-M1" : ["M1", "CORTEX_M"],
|
||||
"Cortex-M3" : ["M3", "CORTEX_M"],
|
||||
"Cortex-M4" : ["M4", "CORTEX_M"],
|
||||
"Cortex-M4F" : ["M4", "CORTEX_M"],
|
||||
"Cortex-M7" : ["M7", "CORTEX_M"],
|
||||
"Cortex-M7F" : ["M7", "CORTEX_M"],
|
||||
"Cortex-M4" : ["M4", "CORTEX_M", "RTOS_M4_M7"],
|
||||
"Cortex-M4F" : ["M4", "CORTEX_M", "RTOS_M4_M7"],
|
||||
"Cortex-M7" : ["M7", "CORTEX_M", "RTOS_M4_M7"],
|
||||
"Cortex-M7F" : ["M7", "CORTEX_M", "RTOS_M4_M7"],
|
||||
"Cortex-A9" : ["A9", "CORTEX_A"]
|
||||
}
|
||||
|
||||
|
@ -906,10 +906,9 @@ class DISCO_L053C8(Target):
|
|||
class DISCO_F746NG(Target):
|
||||
def __init__(self):
|
||||
Target.__init__(self)
|
||||
self.core = "Cortex-M7"
|
||||
self.core = "Cortex-M7F"
|
||||
self.extra_labels = ['STM', 'STM32F7', 'STM32F746', 'STM32F746NG']
|
||||
self.supported_toolchains = ["ARM", "uARM", "IAR", "GCC_ARM"]
|
||||
self.default_toolchain = "uARM"
|
||||
self.detect_code = ["0815"]
|
||||
self.progen_target ='disco-f746ng'
|
||||
|
||||
|
|
|
@ -37,6 +37,8 @@ class GCC(mbedToolchain):
|
|||
cpu = "cortex-m0plus"
|
||||
elif target.core == "Cortex-M4F":
|
||||
cpu = "cortex-m4"
|
||||
elif target.core == "Cortex-M7F":
|
||||
cpu = "cortex-m7"
|
||||
else:
|
||||
cpu = target.core.lower()
|
||||
|
||||
|
@ -47,6 +49,9 @@ class GCC(mbedToolchain):
|
|||
if target.core == "Cortex-M4F":
|
||||
self.cpu.append("-mfpu=fpv4-sp-d16")
|
||||
self.cpu.append("-mfloat-abi=softfp")
|
||||
elif target.core == "Cortex-M7F":
|
||||
self.cpu.append("-mfpu=fpv5-d16")
|
||||
self.cpu.append("-mfloat-abi=softfp")
|
||||
|
||||
if target.core == "Cortex-A9":
|
||||
self.cpu.append("-mthumb-interwork")
|
||||
|
|
Loading…
Reference in New Issue