diff --git a/boot/zephyr/main.c b/boot/zephyr/main.c index 6bb0f590f..a50eb1855 100644 --- a/boot/zephyr/main.c +++ b/boot/zephyr/main.c @@ -207,7 +207,9 @@ static void do_boot(struct boot_rsp *rsp) rsp->br_hdr->ih_hdr_size); #endif - sys_clock_disable(); + if (IS_ENABLED(CONFIG_SYSTEM_TIMER_HAS_DISABLE_SUPPORT)) { + sys_clock_disable(); + } #ifdef CONFIG_USB_DEVICE_STACK /* Disable the USB to prevent it from firing interrupts */