arm/Kconfig: Add spurious 'invisible' configuration settings to avoid prompting users for hardfault or memfault debug on systems where such debug is not available.
This commit is contained in:
parent
3b15cae493
commit
e428f3852a
@ -441,6 +441,7 @@ config ARCH_CORTEXM0
|
|||||||
default n
|
default n
|
||||||
select ARCH_HAVE_IRQPRIO
|
select ARCH_HAVE_IRQPRIO
|
||||||
select ARCH_HAVE_RESET
|
select ARCH_HAVE_RESET
|
||||||
|
select ARCH_HAVE_HARDFAULT_DEBUG
|
||||||
|
|
||||||
config ARCH_CORTEXM23
|
config ARCH_CORTEXM23
|
||||||
bool
|
bool
|
||||||
@ -454,6 +455,8 @@ config ARCH_CORTEXM3
|
|||||||
select ARCH_HAVE_LAZYFPU
|
select ARCH_HAVE_LAZYFPU
|
||||||
select ARCH_HAVE_HIPRI_INTERRUPT
|
select ARCH_HAVE_HIPRI_INTERRUPT
|
||||||
select ARCH_HAVE_RESET
|
select ARCH_HAVE_RESET
|
||||||
|
select ARCH_HAVE_HARDFAULT_DEBUG
|
||||||
|
select ARCH_HAVE_MEMFAULT_DEBUG
|
||||||
|
|
||||||
config ARCH_CORTEXM33
|
config ARCH_CORTEXM33
|
||||||
bool
|
bool
|
||||||
@ -467,6 +470,8 @@ config ARCH_CORTEXM4
|
|||||||
select ARCH_HAVE_LAZYFPU
|
select ARCH_HAVE_LAZYFPU
|
||||||
select ARCH_HAVE_HIPRI_INTERRUPT
|
select ARCH_HAVE_HIPRI_INTERRUPT
|
||||||
select ARCH_HAVE_RESET
|
select ARCH_HAVE_RESET
|
||||||
|
select ARCH_HAVE_HARDFAULT_DEBUG
|
||||||
|
select ARCH_HAVE_MEMFAULT_DEBUG
|
||||||
|
|
||||||
config ARCH_CORTEXM7
|
config ARCH_CORTEXM7
|
||||||
bool
|
bool
|
||||||
@ -478,6 +483,8 @@ config ARCH_CORTEXM7
|
|||||||
select ARCH_HAVE_HIPRI_INTERRUPT
|
select ARCH_HAVE_HIPRI_INTERRUPT
|
||||||
select ARCH_HAVE_RESET
|
select ARCH_HAVE_RESET
|
||||||
select ARCH_HAVE_COHERENT_DCACHE if ELF || MODULE
|
select ARCH_HAVE_COHERENT_DCACHE if ELF || MODULE
|
||||||
|
select ARCH_HAVE_HARDFAULT_DEBUG
|
||||||
|
select ARCH_HAVE_MEMFAULT_DEBUG
|
||||||
|
|
||||||
config ARCH_CORTEXA5
|
config ARCH_CORTEXA5
|
||||||
bool
|
bool
|
||||||
@ -726,19 +733,27 @@ config ARCH_ROMPGTABLE
|
|||||||
---help---
|
---help---
|
||||||
Support a fixed memory mapping use a (read-only) page table in ROM/FLASH.
|
Support a fixed memory mapping use a (read-only) page table in ROM/FLASH.
|
||||||
|
|
||||||
|
config ARCH_HAVE_HARDFAULT_DEBUG
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
config DEBUG_HARDFAULT
|
config DEBUG_HARDFAULT
|
||||||
bool "Verbose Hard-Fault Debug"
|
bool "Verbose Hard-Fault Debug"
|
||||||
default n
|
default n
|
||||||
depends on DEBUG_FEATURES && (ARCH_CORTEXM0 || ARCH_CORTEXM3 || ARCH_CORTEXM4 || ARCH_CORTEXM7)
|
depends on ARCH_HAVE_HARDFAULT_DEBUG && DEBUG_FEATURES
|
||||||
---help---
|
---help---
|
||||||
Enables verbose debug output when a hard fault is occurs. This verbose
|
Enables verbose debug output when a hard fault is occurs. This verbose
|
||||||
output is sometimes helpful when debugging difficult hard fault problems,
|
output is sometimes helpful when debugging difficult hard fault problems,
|
||||||
but may be more than you typically want to see.
|
but may be more than you typically want to see.
|
||||||
|
|
||||||
|
config ARCH_HAVE_MEMFAULT_DEBUG
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
config DEBUG_MEMFAULT
|
config DEBUG_MEMFAULT
|
||||||
bool "Verbose Mem-Fault Debug"
|
bool "Verbose Mem-Fault Debug"
|
||||||
default n
|
default n
|
||||||
depends on DEBUG_FEATURES && ARCH_USE_MPU
|
depends on ARCH_HAVE_MEMFAULT_DEBUG && DEBUG_FEATURES && ARCH_USE_MPU
|
||||||
---help---
|
---help---
|
||||||
Enables verbose debug output when a mem fault is occurs. This verbose
|
Enables verbose debug output when a mem fault is occurs. This verbose
|
||||||
output is sometimes helpful when debugging difficult mem fault problems,
|
output is sometimes helpful when debugging difficult mem fault problems,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/armv7-m/up_memfault.c
|
* arch/arm/src/armv7-m/up_memfault.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2011, 2013, 2018 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
Loading…
Reference in New Issue
Block a user