Skip to content

ESP32C2 WDT cannot be used #18666

@dahanzimin

Description

@dahanzimin

Port, board and/or hardware

ESP32 /ESP32_GENERIC_C2

MicroPython version

MicroPython v1.27.0 on 2025-12-09; ESP32C2 module with ESP32C2

Reproduction

from machine import WDT
wdt = WDT(timeout=2000)  # enable it with a timeout of 2s
wdt.feed()

Expected behaviour

No response

Observed behaviour

Rebooting...
�r�bll��r�rblb�nn lpl� �nn�r���ll �lrb r� blrl�lbbpn� � bl�l��l�l�~llrl�⒂� 쎜�l�l�� �rn ~bnnpn� bll�pn�b rp�� bn|b b�l�pn�b lrr bn|b �ll�pn�b lb bn|b b쎎l��n|� lrrl
MicroPython v1.27.0 on 2025-12-09; ESP32C2 module with ESP32C2
Type "help()" for more information.

A fatal error occurred. The crash dump printed below may be used to help
determine what caused it. If you are not already running the most recent
version of MicroPython, consider upgrading. New versions often fix bugs.

To learn more about how to debug and/or report this crash visit the wiki
page at: https://github.com/micropython/micropython/wiki/ESP32-debugging

MPY version : v1.27.0 on 2025-12-09
IDF version : v5.5.1
Machine : ESP32C2 module with ESP32C2

Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0).

Core 0 register dump:
MEPC : 0x4038801c RA : 0x403844a0 SP : 0x3fcbae50 GP : 0x3fcac028
TP : 0x3fcbaf50 T0 : 0x40081260 T1 : 0x0000000f T2 : 0xffffffff
S0/FP : 0x00000000 S1 : 0x00000001 A0 : 0x3fcb3928 A1 : 0x00000001
A2 : 0x00000000 A3 : 0x00000004 A4 : 0x00000001 A5 : 0x3fcb3000
A6 : 0x00000004 A7 : 0xfff00000 S2 : 0x00000004 S3 : 0x00000001
S4 : 0x3c136000 S5 : 0x00000002 S6 : 0x00000005 S7 : 0x3fcb4000
S8 : 0x3fcaf498 S9 : 0x00000001 S10 : 0x00000000 S11 : 0x00000000
T3 : 0xffffffff T4 : 0xffffffff T5 : 0xffffffff T6 : 0xffffffff
MSTATUS : 0x00001881 MTVEC : 0x40380001 MCAUSE : 0x00000018 MTVAL : 0x70e7aa23
MHARTID : 0x00000000

Stack memory:
3fcbae50: 0x00000004 0x00000003 0x3fcaf000 0x42127076 0x00000004 0x00000003 0x3fcaf000 0x42029b86
3fcbae70: 0x00000004 0x00000003 0xffffffff 0x42048586 0x00000000 0x00000003 0x3c130000 0x42048f34
3fcbae90: 0x00000020 0x3fcc3f64 0x00000001 0x3fcaf000 0x00000020 0x00000000 0x3fcbb830 0x3fcaf400
3fcbaeb0: 0x00000000 0x00000000 0x3fcaf498 0x3fcb4000 0x42029000 0x3c132000 0x3fcaf000 0x3fcbaee0
3fcbaed0: 0x3fcc3f64 0x00003c00 0x3fcbaf64 0x420297d2 0x00000000 0x00000000 0x00000000 0x00000000
3fcbaef0: 0x00000000 0x00000000 0x00000000 0x3fcbaee0 0x00000000 0x00000000 0x00000000 0x00000000
3fcbaf10: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbaf30: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fcbaf50: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00009000 0x55555559 0xaaaaaa56 0x6aaa5aaa
3fcbaf70: 0xaa966aaa 0x555aaaaa 0xaaa42555 0xa9aaaaa6 0x90aaaaaa 0x0a9a90a6 0x00000000 0x00000000
3fcbaf90: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbafb0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbafd0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbaff0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbb010: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbb030: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbb050: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbb070: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbb090: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbb0b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbb0d0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbb0f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbb110: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbb130: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbb150: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbb170: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbb190: 0x00000000 0x00000000 0x00000000 0x00040000 0x00000000 0x00000010 0x00000000 0x00000000
3fcbb1b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbb1d0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbb1f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbb210: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcbb230: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000

ELF file SHA256: 348ea43d8

Additional Information

No, I've provided everything above.

Code of Conduct

Yes, I agree

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions