Skip to content

Commit 130625e

Browse files
karstenkoenigcfriedt
authored andcommitted
soc: nrf54h: Configure CTRLSEL and pin for TRACE
Configure the CTRLSEL value and the clock pin so that the TRACE pins work when the TDD gets used. Signed-off-by: Karsten Koenig <karsten.koenig@nordicsemi.no>
1 parent 7c813bf commit 130625e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

soc/nordic/nrf54h/soc.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <soc/nrfx_coredep.h>
2323
#include <soc_lrcconf.h>
2424
#include <dmm.h>
25+
#include <uicr/uicr.h>
2526

2627
#if defined(CONFIG_SOC_NRF54H20_CPURAD_ENABLE)
2728
#include <nrf_ironside/cpuconf.h>
@@ -183,6 +184,13 @@ void soc_late_init_hook(void)
183184

184185
err_tdd = ironside_se_tdd_configure(IRONSIDE_SE_TDD_CONFIG_ON_DEFAULT);
185186
__ASSERT(err_tdd == 0, "err_tdd was %d", err_tdd);
187+
188+
UICR_GPIO_PIN_CNF_CTRLSEL_SET(NRF_P7, 3, GPIO_PIN_CNF_CTRLSEL_TND);
189+
UICR_GPIO_PIN_CNF_CTRLSEL_SET(NRF_P7, 4, GPIO_PIN_CNF_CTRLSEL_TND);
190+
UICR_GPIO_PIN_CNF_CTRLSEL_SET(NRF_P7, 5, GPIO_PIN_CNF_CTRLSEL_TND);
191+
UICR_GPIO_PIN_CNF_CTRLSEL_SET(NRF_P7, 6, GPIO_PIN_CNF_CTRLSEL_TND);
192+
UICR_GPIO_PIN_CNF_CTRLSEL_SET(NRF_P7, 7, GPIO_PIN_CNF_CTRLSEL_TND);
193+
186194
#endif
187195

188196
#if defined(CONFIG_SOC_NRF54H20_CPURAD_ENABLE)

0 commit comments

Comments
 (0)