2012-11-21 19:34:10 +01:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:08:57 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-11-21 19:34:10 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
comment "ARMV7M Configuration Options"
|
|
|
|
|
2015-03-09 22:41:48 +01:00
|
|
|
config ARMV7M_HAVE_ICACHE
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ARMV7M_HAVE_DCACHE
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2018-08-03 00:51:58 +02:00
|
|
|
config ARMV7M_LAZYFPU
|
|
|
|
bool "Lazy FPU storage"
|
|
|
|
default n
|
|
|
|
depends on ARCH_HAVE_LAZYFPU
|
|
|
|
---help---
|
|
|
|
There are two forms of the common vector logic. There are pros and
|
|
|
|
cons to each option:
|
|
|
|
|
|
|
|
1) The standard common vector logic exploits features of the ARMv7-M
|
|
|
|
architecture to save the all of floating registers on entry into
|
|
|
|
each interrupt and then to restore the floating registers when
|
|
|
|
the interrupt returns. The primary advantage to this approach is
|
|
|
|
that floating point operations are available in interrupt
|
|
|
|
handling logic. Since the volatile registers are preserved,
|
|
|
|
operations on the floating point registers by interrupt handling
|
|
|
|
logic has no ill effect. The downside is, of course, that more
|
|
|
|
stack operations are required on each interrupt to save and store
|
|
|
|
the floating point registers. Because of the some special
|
|
|
|
features of the ARMv-M, this is not as much overhead as you might
|
|
|
|
expect, but overhead nonetheless.
|
|
|
|
|
|
|
|
2) The lazy FPU common vector logic does not save or restore
|
|
|
|
floating point registers on entry and exit from the interrupt
|
|
|
|
handler. Rather, the floating point registers are not restored
|
|
|
|
until it is absolutely necessary to do so when a context switch
|
|
|
|
occurs and the interrupt handler will be returning to a different
|
|
|
|
floating point context. Since floating point registers are not
|
|
|
|
protected, floating point operations must not be performed in
|
|
|
|
interrupt handling logic. Better interrupt performance is be
|
|
|
|
expected, however.
|
|
|
|
|
|
|
|
By default, the "standard" common vector logic is build. This
|
|
|
|
option selects the alternate lazy FPU common vector logic.
|
|
|
|
|
|
|
|
config ARMV7M_USEBASEPRI
|
|
|
|
bool "Use BASEPRI Register"
|
|
|
|
default n
|
|
|
|
depends on ARCH_CORTEXM3 || ARCH_CORTEXM4 || ARCH_CORTEXM7
|
|
|
|
---help---
|
|
|
|
Use the BASEPRI register to enable and disable interrupts. By
|
|
|
|
default, the PRIMASK register is used for this purpose. This
|
|
|
|
usually results in hardfaults when supervisor calls are made.
|
|
|
|
Though, these hardfaults are properly handled by the RTOS, the
|
|
|
|
hardfaults can confuse some debuggers. With the BASEPRI
|
|
|
|
register, these hardfaults, will be avoided. For more details see
|
|
|
|
http://www.nuttx.org/doku.php?id=wiki:nxinternal:svcall
|
|
|
|
|
|
|
|
config ARMV7M_BASEPRI_WAR
|
|
|
|
bool "Cortex-M7 r0p1 Errata 837070 Workaround"
|
|
|
|
default n
|
|
|
|
depends on ARMV7M_USEBASEPRI && ARCH_CORTEXM7
|
|
|
|
---help---
|
|
|
|
Enable workaround for r0p1 Errata 837070: Increasing priority using
|
|
|
|
write to BASEPRI does not take effect immediately.
|
|
|
|
|
|
|
|
This update is required to be serialized to the instruction stream
|
|
|
|
meaning that after this update completes, it takes effect
|
|
|
|
immediately and no exceptions of lower priority than the new boosted
|
|
|
|
priority can pre-empt execution. Because of this erratum, the
|
|
|
|
priority boosting does not take place immediately, allowing the
|
|
|
|
instruction after the MSR to be interrupted by an exception of
|
|
|
|
lower priority than the new boosted priority. This effect is only
|
|
|
|
limited to the next instruction. Subsequent instructions are
|
|
|
|
guaranteed to see the new boosted priority.
|
|
|
|
|
2015-03-09 22:41:48 +01:00
|
|
|
config ARMV7M_ICACHE
|
|
|
|
bool "Use I-Cache"
|
|
|
|
default n
|
|
|
|
depends on ARMV7M_HAVE_ICACHE
|
|
|
|
|
|
|
|
config ARMV7M_DCACHE
|
|
|
|
bool "Use D-Cache"
|
|
|
|
default n
|
|
|
|
depends on ARMV7M_HAVE_DCACHE
|
|
|
|
|
2015-03-29 21:09:22 +02:00
|
|
|
config ARMV7M_DCACHE_WRITETHROUGH
|
|
|
|
bool "D-Cache Write-Through"
|
|
|
|
default n
|
|
|
|
depends on ARMV7M_DCACHE
|
|
|
|
|
2015-03-10 14:50:32 +01:00
|
|
|
config ARMV7M_HAVE_ITCM
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ARMV7M_HAVE_DTCM
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ARMV7M_ITCM
|
|
|
|
bool "Use ITCM"
|
|
|
|
default n
|
|
|
|
depends on ARMV7M_HAVE_ITCM
|
|
|
|
|
|
|
|
config ARMV7M_DTCM
|
|
|
|
bool "Use DTCM"
|
|
|
|
default n
|
|
|
|
depends on ARMV7M_HAVE_DTCM
|
|
|
|
|
2012-11-21 19:34:10 +01:00
|
|
|
choice
|
|
|
|
prompt "Toolchain Selection"
|
2017-01-02 14:16:47 +01:00
|
|
|
default ARMV7M_TOOLCHAIN_GNU_EABIW if TOOLCHAIN_WINDOWS
|
|
|
|
default ARMV7M_TOOLCHAIN_GNU_EABIL if !TOOLCHAIN_WINDOWS
|
2012-11-21 19:34:10 +01:00
|
|
|
|
2016-04-02 15:53:52 +02:00
|
|
|
config ARMV7M_TOOLCHAIN_IARW
|
|
|
|
bool "IAR for Windows"
|
2017-01-02 14:16:47 +01:00
|
|
|
depends on TOOLCHAIN_WINDOWS
|
2017-05-14 00:01:38 +02:00
|
|
|
select ARCH_TOOLCHAIN_IAR
|
2016-04-02 15:53:52 +02:00
|
|
|
|
|
|
|
config ARMV7M_TOOLCHAIN_IARL
|
|
|
|
bool "IAR for Linux"
|
|
|
|
depends on HOST_LINUX
|
2017-05-14 00:01:38 +02:00
|
|
|
select ARCH_TOOLCHAIN_IAR
|
2016-04-02 15:53:52 +02:00
|
|
|
|
2012-11-21 19:34:10 +01:00
|
|
|
config ARMV7M_TOOLCHAIN_ATOLLIC
|
|
|
|
bool "Atollic Lite/Pro for Windows"
|
2017-01-02 14:16:47 +01:00
|
|
|
depends on TOOLCHAIN_WINDOWS
|
2017-05-13 21:28:15 +02:00
|
|
|
select ARCH_TOOLCHAIN_GNU
|
2012-11-21 19:34:10 +01:00
|
|
|
|
|
|
|
config ARMV7M_TOOLCHAIN_BUILDROOT
|
|
|
|
bool "Buildroot (Cygwin or Linux)"
|
|
|
|
depends on !WINDOWS_NATIVE
|
2017-05-13 21:28:15 +02:00
|
|
|
select ARCH_TOOLCHAIN_GNU
|
2012-11-21 19:34:10 +01:00
|
|
|
|
|
|
|
config ARMV7M_TOOLCHAIN_CODEREDL
|
|
|
|
bool "CodeRed for Linux"
|
|
|
|
depends on HOST_LINUX
|
2017-05-13 21:28:15 +02:00
|
|
|
select ARCH_TOOLCHAIN_GNU
|
2012-11-21 19:34:10 +01:00
|
|
|
|
|
|
|
config ARMV7M_TOOLCHAIN_CODEREDW
|
|
|
|
bool "CodeRed for Windows"
|
2017-01-02 14:16:47 +01:00
|
|
|
depends on TOOLCHAIN_WINDOWS
|
2017-05-13 21:28:15 +02:00
|
|
|
select ARCH_TOOLCHAIN_GNU
|
2012-11-21 19:34:10 +01:00
|
|
|
|
|
|
|
config ARMV7M_TOOLCHAIN_CODESOURCERYL
|
|
|
|
bool "CodeSourcery GNU toolchain under Linux"
|
|
|
|
depends on HOST_LINUX
|
2017-05-13 21:28:15 +02:00
|
|
|
select ARCH_TOOLCHAIN_GNU
|
2012-11-21 19:34:10 +01:00
|
|
|
|
|
|
|
config ARMV7M_TOOLCHAIN_CODESOURCERYW
|
|
|
|
bool "CodeSourcery GNU toolchain under Windows"
|
2017-01-02 14:16:47 +01:00
|
|
|
depends on TOOLCHAIN_WINDOWS
|
2017-05-13 21:28:15 +02:00
|
|
|
select ARCH_TOOLCHAIN_GNU
|
2012-11-21 19:34:10 +01:00
|
|
|
|
|
|
|
config ARMV7M_TOOLCHAIN_DEVKITARM
|
|
|
|
bool "devkitARM GNU toolchain"
|
2017-01-02 14:16:47 +01:00
|
|
|
depends on TOOLCHAIN_WINDOWS
|
2017-05-13 21:28:15 +02:00
|
|
|
select ARCH_TOOLCHAIN_GNU
|
2012-11-21 19:34:10 +01:00
|
|
|
|
2013-06-13 19:04:18 +02:00
|
|
|
config ARMV7M_TOOLCHAIN_GNU_EABIL
|
|
|
|
bool "Generic GNU EABI toolchain under Linux (or other POSIX environment)"
|
2016-04-02 15:53:52 +02:00
|
|
|
depends on !WINDOWS_NATIVE
|
2017-05-13 21:28:15 +02:00
|
|
|
select ARCH_TOOLCHAIN_GNU
|
2013-06-13 19:04:18 +02:00
|
|
|
---help---
|
|
|
|
This option should work for any modern GNU toolchain (GCC 4.5 or newer)
|
|
|
|
configured for arm-none-eabi.
|
|
|
|
|
|
|
|
config ARMV7M_TOOLCHAIN_GNU_EABIW
|
|
|
|
bool "Generic GNU EABI toolchain under Windows"
|
2017-01-02 14:16:47 +01:00
|
|
|
depends on TOOLCHAIN_WINDOWS
|
2017-05-13 21:28:15 +02:00
|
|
|
select ARCH_TOOLCHAIN_GNU
|
2017-07-02 14:42:48 +02:00
|
|
|
|
|
|
|
config ARMV7M_TOOLCHAIN_CLANGL
|
|
|
|
bool "Generic Clang toolchain under Linux (or other POSIX environment)"
|
|
|
|
depends on !WINDOWS_NATIVE
|
|
|
|
select ARCH_TOOLCHAIN_GNU
|
|
|
|
|
|
|
|
config ARMV7M_TOOLCHAIN_CLANGW
|
|
|
|
bool "Generic Clang toolchain under Windows"
|
|
|
|
depends on TOOLCHAIN_WINDOWS
|
|
|
|
select ARCH_TOOLCHAIN_GNU
|
2012-11-21 19:34:10 +01:00
|
|
|
---help---
|
|
|
|
This option should work for any modern GNU toolchain (GCC 4.5 or newer)
|
|
|
|
configured for arm-none-eabi.
|
|
|
|
|
|
|
|
config ARMV7M_TOOLCHAIN_RAISONANCE
|
|
|
|
bool "STMicro Raisonance for Windows"
|
2017-01-02 14:16:47 +01:00
|
|
|
depends on TOOLCHAIN_WINDOWS
|
2017-05-13 21:28:15 +02:00
|
|
|
select ARCH_TOOLCHAIN_GNU
|
2012-11-21 19:34:10 +01:00
|
|
|
|
|
|
|
endchoice
|
2013-01-02 15:02:07 +01:00
|
|
|
|
|
|
|
config ARMV7M_OABI_TOOLCHAIN
|
|
|
|
bool "OABI (vs EABI)"
|
2014-02-28 14:49:15 +01:00
|
|
|
default n
|
2013-01-02 15:02:07 +01:00
|
|
|
depends on ARMV7M_TOOLCHAIN_BUILDROOT
|
|
|
|
---help---
|
2014-10-22 17:03:00 +02:00
|
|
|
Most of the older buildroot toolchains are OABI and are named
|
|
|
|
arm-nuttx-elf- vs. arm-nuttx-eabi-
|
2013-01-02 15:02:07 +01:00
|
|
|
|
2015-06-01 22:16:18 +02:00
|
|
|
config ARMV7M_TARGET2_PREL
|
|
|
|
bool "R_ARM_TARGET2 is PC relative"
|
2015-06-01 23:12:33 +02:00
|
|
|
default n if !UCLIBCXX_EXCEPTION
|
|
|
|
default y if UCLIBCXX_EXCEPTION
|
2015-06-01 22:16:18 +02:00
|
|
|
depends on ELF
|
|
|
|
---help---
|
|
|
|
Perform a PC relative relocation for relocation type R_ARM_TARGET2
|
|
|
|
|
2015-04-12 14:30:24 +02:00
|
|
|
config ARMV7M_HAVE_STACKCHECK
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2015-04-12 14:26:50 +02:00
|
|
|
config ARMV7M_STACKCHECK
|
|
|
|
bool "Check for stack overflow on each function call"
|
|
|
|
default n
|
2015-04-12 14:30:24 +02:00
|
|
|
depends on ARMV7M_HAVE_STACKCHECK
|
2015-04-12 14:26:50 +02:00
|
|
|
---help---
|
2015-04-16 00:38:08 +02:00
|
|
|
This check uses R10 to check for a stack overflow within each
|
|
|
|
function call. This has performances and code size impacts, but it
|
|
|
|
will be able to catch hard to find stack overflows.
|
|
|
|
|
|
|
|
Currently only available only for the STM32, SAM3/4 and SAMA5D
|
|
|
|
architectures. The changes are not complex and patches for
|
|
|
|
other architectures will be accepted.
|
|
|
|
|
|
|
|
This option requires that you are using a GCC toolchain and that
|
|
|
|
you also include -finstrument-functions in your CFLAGS when you
|
|
|
|
compile. This addition to your CFLAGS should probably be added
|
|
|
|
to the definition of the CFFLAGS in your board Make.defs file.
|
2015-04-12 14:26:50 +02:00
|
|
|
|
2014-10-22 17:03:00 +02:00
|
|
|
config ARMV7M_ITMSYSLOG
|
|
|
|
bool "ITM SYSLOG support"
|
|
|
|
default n
|
2016-06-19 19:16:12 +02:00
|
|
|
select ARCH_SYSLOG
|
2014-10-22 17:03:00 +02:00
|
|
|
select SYSLOG
|
|
|
|
---help---
|
|
|
|
Enable hooks to support ITM syslog output. This requires additional
|
|
|
|
MCU support in order to be used. See arch/arm/src/armv7-m/itm_syslog.h
|
|
|
|
for additional initialization information.
|
|
|
|
|
|
|
|
if ARMV7M_ITMSYSLOG
|
|
|
|
|
|
|
|
config ARMV7M_ITMSYSLOG_PORT
|
|
|
|
int "ITM SYSLOG Port"
|
|
|
|
default 0
|
|
|
|
range 0 31
|
|
|
|
|
|
|
|
config ARMV7M_ITMSYSLOG_SWODIV
|
|
|
|
int "ITM SYSLOG SWO divider"
|
|
|
|
default 15
|
|
|
|
range 1 8192
|
|
|
|
|
|
|
|
endif # ARMV7M_ITMSYSLOG
|
2018-08-23 18:08:11 +02:00
|
|
|
|
|
|
|
config ARMV7M_SYSTICK
|
|
|
|
bool "SysTick timer driver"
|
|
|
|
depends on TIMER
|
|
|
|
---help---
|
|
|
|
Enable SysTick timer driver.
|