Skip to content

Commit 3bbb0d3

Browse files
nordicjmeivindj-nordic
authored andcommitted
softdevice_handler: irq_connect: Print SoftDevice reset address
Outputs the reset address that is being used, this is useful to see if the device is jumping to garbage because of e.g. not programming the SoftDevice file Signed-off-by: Jamie McCrae <[email protected]>
1 parent 3a5f3eb commit 3bbb0d3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

subsys/softdevice_handler/irq_connect.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
#include <zephyr/kernel.h>
99
#include <zephyr/irq.h>
1010
#include <zephyr/storage/flash_map.h>
11+
#include <zephyr/logging/log.h>
12+
#include <zephyr/logging/log_ctrl.h>
13+
14+
LOG_MODULE_REGISTER(sdh_irq_connect, CONFIG_NRF_SDH_LOG_LEVEL);
1115

1216
#if CONFIG_SOC_SERIES_NRF52X
1317
#include <zephyr/linker/linker-defs.h>
@@ -56,6 +60,11 @@ static void sd_enable_irq_forwarding(void)
5660
softdevice_vector_forward_address += CONFIG_ROM_START_OFFSET;
5761
#endif
5862

63+
LOG_INF("SoftDevice forward address: 0x%x", softdevice_vector_forward_address);
64+
65+
while (LOG_PROCESS()) {
66+
}
67+
5968
CallSoftDeviceResetHandler();
6069
irq_forwarding_enabled_magic_number_holder = IRQ_FORWARDING_ENABLED_MAGIC_NUMBER;
6170
}

0 commit comments

Comments
 (0)