RTEMS | Draft: bsps/riscv/esp32: Disable the watchdogs bsp_start() means to disable (!1555)
Sam Price (@TheSamPrice)
gitlab at rtems.org
Tue Nov 3 05:21:20 UTC 2026
Sam Price started a new discussion on bsps/riscv/esp32/start/bspstart.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1555#note_161777
> #define RTC_CNTL_SWD_CONF_REG (uintptr_t) 0xac
> #define RTC_CNTL_SWD_CONF_AUTO_FEED_EN BSP_BIT32( 31 )
>
> +/* Register 9.39, RTC_CNTL_SWD_WPROTECT_REG (0x00B0), page 255 */
> #define RTC_CNTL_SWD_WPROTECT_REG (uintptr_t) 0xb0
> -#define RTC_CNTL_SWD_WPROTECT_KEY 0x8f1d312aU
>
> +/*
> + * Section 12.3.2.2, Workflow, page 310:
> + *
> + * "When trying to feed SWD, CPU needs to disable SWD controller's write
> + * protection by writing 0x8F1D312A to RTC_CNTL_SWD_WKEY."
> + *
> + * The super watchdog's key differs from the digital watchdogs' key above.
> + */
> +#define RTC_CNTL_SWD_WKEY_VALUE 0x8f1d312aU
**Reference code for the super watchdog key.** ESP-IDF defines the same value as [`RTC_CNTL_SWD_WKEY_VALUE`](https://github.com/espressif/esp-idf/blob/0e6b480f858c69862ffb6001d96e9eef74599a6e/components/esp_hal_wdt/esp32c3/include/hal/rwdt_ll.h#L26), `0x8F1D312A`.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1555#note_161777
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/namespace/49/sent_notifications/6-0fb9mwamrktrtdlip1o02l9h9-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20261103/bca7139c/attachment-0001.htm>
More information about the bugs
mailing list