From 815e075a3e5c861a2b33e99f06992cf3cbdbfff5 Mon Sep 17 00:00:00 2001 From: Xudong Zheng <7pkvm5aw@slicealias.com> Date: Fri, 13 Sep 2024 17:54:34 -0400 Subject: [PATCH] hal_rpi_pico: set PICO_XOSC_STARTUP_DELAY_MULTIPLIER On some boards, XOSC can take longer to stabilize. This is needed to prevent a hard fault on reset. See zephyrproject-rtos/zephyr#78200 --- modules/hal_rpi_pico/pico/config_autogen.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/hal_rpi_pico/pico/config_autogen.h b/modules/hal_rpi_pico/pico/config_autogen.h index e8fe4d17579e..ef2d84123cdc 100644 --- a/modules/hal_rpi_pico/pico/config_autogen.h +++ b/modules/hal_rpi_pico/pico/config_autogen.h @@ -32,6 +32,8 @@ /* Disable binary info */ #define PICO_NO_BINARY_INFO 1 +#define PICO_XOSC_STARTUP_DELAY_MULTIPLIER 64 + /* Zephyr compatible way of forcing inline */ #ifndef __always_inline #define __always_inline ALWAYS_INLINE