diff --git a/samples/boards/nordic/coresight_stm/src/main.c b/samples/boards/nordic/coresight_stm/src/main.c index c5bf328678bc9e..01d3d14035cdd0 100644 --- a/samples/boards/nordic/coresight_stm/src/main.c +++ b/samples/boards/nordic/coresight_stm/src/main.c @@ -16,12 +16,14 @@ LOG_MODULE_REGISTER(app); #define TEST_LOG(rpt, item) \ ({ \ + uint32_t key = irq_lock(); \ uint32_t t = k_cycle_get_32(); \ for (uint32_t i = 0; i < rpt; i++) { \ __DEBRACKET item; \ } \ t = k_cycle_get_32() - t; \ - k_msleep(200); \ + irq_unlock(key); \ + k_msleep(400); \ t; \ })