Debug interrupt didn't clear - what does it mean?

Hi!

I keep getting this error message, but I don’t know what it means or why openocd/gdb keep crashing. What could be causing this?

Error: Timed out waiting for debug int to clear.Increase timeout with riscv set_command_timeout_sec.
Error: Debug interrupt didn't clear.
Error: Debug RAM 0x0: 0x7b046073
Error: Debug RAM 0x1: 0xf1402473
Error: Debug RAM 0x2: 0x10802623
Error: Debug RAM 0x3: 0x3f80006f
Error: Debug RAM 0x4: 0x4000f063
Error: Debug RAM 0x5: 0x80000004
Error: Debug RAM 0x6: 0x00000000
Error: Debug RAM 0x7: 0x7ffffeb9
Error: Debug RAM 0x8: 0x00000000
Error: Debug RAM 0x9: 0x00000000
Error: Debug RAM 0xa: 0x00000000
Error: Debug RAM 0xb: 0x00000000
Error: Debug RAM 0xc: 0x00000000
Error: Debug RAM 0xd: 0x00000000
Error: Debug RAM 0xe: 0x00000000
Error: Debug RAM 0xf: 0x00000000
Error: cache_write() failed.

Are you sure your chip has not put itself to sleep and/or is in reset, or has turned off its clocks? If you are using the “safe bootloader” mode (instructions are in the https://www.sifive.com/documentation/boards/hifive1/hifive1-getting-started-guide/) do you still get the same behavior?

yes, going to sleep was the problem. the deadly combination was
disabling all external interrupts and then wfi. thanks!