Browse Source

soc: nordic_nrf: Add Kconfig option for enabling trace port

Add Kconfig option to enable the hardware trace port in the SystemInit()
function.

Signed-off-by: Gregers Gram Rygg <gregers.gram.rygg@nordicsemi.no>
pull/38955/head
Gregers Gram Rygg 4 years ago committed by Christopher Friedt
parent
commit
d47bd60933
  1. 2
      modules/hal_nordic/nrfx/CMakeLists.txt
  2. 8
      soc/arm/nordic_nrf/Kconfig

2
modules/hal_nordic/nrfx/CMakeLists.txt

@ -38,6 +38,8 @@ zephyr_compile_definitions_ifdef(CONFIG_NRF_SECURE_APPROTECT_LOCK @@ -38,6 +38,8 @@ zephyr_compile_definitions_ifdef(CONFIG_NRF_SECURE_APPROTECT_LOCK
ENABLE_SECURE_APPROTECT)
zephyr_compile_definitions_ifdef(CONFIG_NRF_SECURE_APPROTECT_USER_HANDLING
ENABLE_SECURE_APPROTECT_USER_HANDLING)
zephyr_library_compile_definitions_ifdef(CONFIG_NRF_TRACE_PORT
ENABLE_TRACE)
# Connect Kconfig compilation option for Non-Secure software with option required by MDK/nrfx
zephyr_compile_definitions_ifdef(CONFIG_ARM_NONSECURE_FIRMWARE NRF_TRUSTZONE_NONSECURE)

8
soc/arm/nordic_nrf/Kconfig

@ -119,4 +119,12 @@ config NRF_SECURE_APPROTECT_USER_HANDLING @@ -119,4 +119,12 @@ config NRF_SECURE_APPROTECT_USER_HANDLING
endchoice
config NRF_TRACE_PORT
bool "Enable nRF TPIU"
depends on !SOC_SERIES_NRF51X
help
Enable this option to initialize the TPIU (Trace Port Interface
Unit) for tracing using a hardware probe. If disabled, the trace
pins will be used as GPIO.
endif # SOC_FAMILY_NRF

Loading…
Cancel
Save