SAMV71-XULT: Switch to the ARM GNU tools for Embbeded tools that actually support Cortex-M7

This commit is contained in:
Gregory Nutt
2015-03-11 12:16:27 -06:00
parent 508d96b571
commit da844f1a88
4 changed files with 26 additions and 16 deletions
+2 -6
View File
@@ -138,13 +138,9 @@ ifeq ($(CONFIG_ARCH_CORTEXM4),y)
endif endif
else ifeq ($(CONFIG_ARCH_CORTEXM7),y) else ifeq ($(CONFIG_ARCH_CORTEXM7),y)
TOOLCHAIN_ARM7EM := y TOOLCHAIN_ARM7EM := y
# FIXME: Most tools do not yet support the cortex-m7 CPU type TOOLCHAIN_MCPU := -mcpu=cortex-m7
# TOOLCHAIN_MCPU := -mcpu=cortex-m7 TOOLCHAIN_MTUNE := -mtune=cortex-m7
# TOOLCHAIN_MTUNE := -mtune=cortex-m7
TOOLCHAIN_MCPU := -mcpu=cortex-m4
TOOLCHAIN_MTUNE := -mtune=cortex-m4
TOOLCHAIN_MARCH := -march=armv7e-m TOOLCHAIN_MARCH := -march=armv7e-m
# FIXME: Most tools do not yet fpv5 FPU types either
ifeq ($(CONFIG_ARCH_FPU),y) ifeq ($(CONFIG_ARCH_FPU),y)
ifeq ($(CONFIG_ARCH_DPFPU),y) ifeq ($(CONFIG_ARCH_DPFPU),y)
TOOLCHAIN_MFLOAT := -mfpu=fpv5-d16 -mfloat-abi=hard TOOLCHAIN_MFLOAT := -mfpu=fpv5-d16 -mfloat-abi=hard
+16 -6
View File
@@ -234,16 +234,26 @@ NOTES:
output on USART3 (i.e., for the Arduino serial shield). output on USART3 (i.e., for the Arduino serial shield).
3. All of these configurations are set up to build under Windows using the 3. All of these configurations are set up to build under Windows using the
CodeSourcery toolchain (unless stated otherwise in the description of "GNU Tools for ARM Embedded Processors" that is maintained by ARM
the configuration). That build selection can easily be reconfigured (unless stated otherwise in the description of the configuration).
using 'make menuconfig'. Here are the relevant current settings:
https://launchpad.net/gcc-arm-embedded
As of this writing (2015-03-11), full support is difficult to find
for the Cortex-M&, but is supported by at least this realeasse of
the ARM GNU tools:
https://launchpadlibrarian.net/192228215/release.txt
That toolchain selection can easily be reconfigured using
'make menuconfig'. Here are the relevant current settings:
Build Setup: Build Setup:
CONFIG_HOST_WINDOWS=y : Window environment CONFIG_HOST_WINDOWS=y : Window environment
CONFIG_WINDOWS_CYGWIN=y : Cywin under Windows CONFIG_WINDOWS_CYGWIN=y : Cywin under Windows
System Type -> Toolchain: System Type -> Toolchain:
CONFIG_ARMV7M_TOOLCHAIN_CODESOURCERYW=y : devkitARM toolchain CONFIG_ARMV7M_TOOLCHAIN_GNU_EABIW=y : GNU ARM EABI toolchain
Configuration sub-directories Configuration sub-directories
----------------------------- -----------------------------
+2 -2
View File
@@ -129,10 +129,10 @@ CONFIG_ARMV7M_HAVE_DTCM=y
# CONFIG_ARMV7M_TOOLCHAIN_ATOLLIC is not set # CONFIG_ARMV7M_TOOLCHAIN_ATOLLIC is not set
# CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT is not set # CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT is not set
# CONFIG_ARMV7M_TOOLCHAIN_CODEREDW is not set # CONFIG_ARMV7M_TOOLCHAIN_CODEREDW is not set
CONFIG_ARMV7M_TOOLCHAIN_CODESOURCERYW=y # CONFIG_ARMV7M_TOOLCHAIN_CODESOURCERYW is not set
# CONFIG_ARMV7M_TOOLCHAIN_DEVKITARM is not set # CONFIG_ARMV7M_TOOLCHAIN_DEVKITARM is not set
# CONFIG_ARMV7M_TOOLCHAIN_GNU_EABIL is not set # CONFIG_ARMV7M_TOOLCHAIN_GNU_EABIL is not set
# CONFIG_ARMV7M_TOOLCHAIN_GNU_EABIW is not set CONFIG_ARMV7M_TOOLCHAIN_GNU_EABIW=y
# CONFIG_ARMV7M_TOOLCHAIN_RAISONANCE is not set # CONFIG_ARMV7M_TOOLCHAIN_RAISONANCE is not set
# CONFIG_ARMV7M_ITMSYSLOG is not set # CONFIG_ARMV7M_ITMSYSLOG is not set
+6 -2
View File
@@ -57,10 +57,14 @@ fi
# the CodeSourcery toolchain in any other location # the CodeSourcery toolchain in any other location
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin" #export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin" #export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
export TOOLCHAIN_BIN="/cygdrive/c/Users/MyName/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI/bin" # export TOOLCHAIN_BIN="/cygdrive/c/Users/MyName/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
# This is the location where I installed the ARM "GNU Tools for ARM Embedded Processors"
# You can this free toolchain here https://launchpad.net/gcc-arm-embedded
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/GNU Tools ARM Embedded/4.9 2014q4/bin"
# This is the path to the location where I installed the devkitARM toolchain # This is the path to the location where I installed the devkitARM toolchain
# You an get this free toolchain from http://devkitpro.org/ or http://sourceforge.net/projects/devkitpro/ # You can get this free toolchain from http://devkitpro.org/ or http://sourceforge.net/projects/devkitpro/
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/devkitARM/bin" #export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/devkitARM/bin"
# This is the Cygwin path to the location where I build the buildroot # This is the Cygwin path to the location where I build the buildroot