Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions libraries/rtos/rtx/TARGET_CORTEX_M/rt_CMSIS.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion workspace_tools/export/uvision4.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ class Uvision4(Exporter):
'DISCO_F334C8',
'DISCO_F429ZI',
'DISCO_F469NI',
'DISCO_F746NG',
'DISCO_L053C8',
'DISCO_L476VG',
'LPC1549',
Expand Down
4 changes: 2 additions & 2 deletions workspace_tools/export/uvision4_disco_f746ng.uvproj.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -390,7 +390,7 @@
</VariousControls>
</Aads>
<LDads>
<umfTarg>1</umfTarg>
<umfTarg>0</umfTarg>
<Ropi>0</Ropi>
<Rwpi>0</Rwpi>
<noStLib>0</noStLib>
Expand Down
11 changes: 5 additions & 6 deletions workspace_tools/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"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"]
}

Expand Down Expand Up @@ -849,10 +849,9 @@ def __init__(self):
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"]

class DISCO_L476VG(Target):
Expand Down
5 changes: 5 additions & 0 deletions workspace_tools/toolchains/gcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def __init__(self, target, options=None, notify=None, macros=None, silent=False,
cpu = "cortex-m0plus"
elif target.core == "Cortex-M4F":
cpu = "cortex-m4"
elif target.core == "Cortex-M7F":
cpu = "cortex-m7"
else:
cpu = target.core.lower()

Expand All @@ -47,6 +49,9 @@ def __init__(self, target, options=None, notify=None, macros=None, silent=False,
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")
Expand Down