Skip to content

Commit d47bd60

Browse files
gregersryggcfriedt
authored andcommitted
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 <[email protected]>
1 parent 0dbdcc7 commit d47bd60

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

modules/hal_nordic/nrfx/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ zephyr_compile_definitions_ifdef(CONFIG_NRF_SECURE_APPROTECT_LOCK
3838
ENABLE_SECURE_APPROTECT)
3939
zephyr_compile_definitions_ifdef(CONFIG_NRF_SECURE_APPROTECT_USER_HANDLING
4040
ENABLE_SECURE_APPROTECT_USER_HANDLING)
41+
zephyr_library_compile_definitions_ifdef(CONFIG_NRF_TRACE_PORT
42+
ENABLE_TRACE)
4143

4244
# Connect Kconfig compilation option for Non-Secure software with option required by MDK/nrfx
4345
zephyr_compile_definitions_ifdef(CONFIG_ARM_NONSECURE_FIRMWARE NRF_TRUSTZONE_NONSECURE)

soc/arm/nordic_nrf/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,12 @@ config NRF_SECURE_APPROTECT_USER_HANDLING
119119

120120
endchoice
121121

122+
config NRF_TRACE_PORT
123+
bool "Enable nRF TPIU"
124+
depends on !SOC_SERIES_NRF51X
125+
help
126+
Enable this option to initialize the TPIU (Trace Port Interface
127+
Unit) for tracing using a hardware probe. If disabled, the trace
128+
pins will be used as GPIO.
129+
122130
endif # SOC_FAMILY_NRF

0 commit comments

Comments
 (0)