The README says: "Additionally the panic message is written to flash"
Unless I'm missing something, this is not true. It looks like you are using rp2040-panic-usb-boot, and that's not writing to flash.
It uses a RAM area usually used as a flash cache. So by disabling the flash cache, the panic handler can be sure that this memory is unused and the panic message can be stored there without overwriting anything that could be useful for debugging.
However, in contrast to flash memory, that RAM area will get erased once the rp2040 gets rebooted.
The README says: "Additionally the panic message is written to flash" Unless I'm missing something, this is not true. It looks like you are using
rp2040-panic-usb-boot
, and that's not writing to flash.It uses a RAM area usually used as a flash cache. So by disabling the flash cache, the panic handler can be sure that this memory is unused and the panic message can be stored there without overwriting anything that could be useful for debugging.
However, in contrast to flash memory, that RAM area will get erased once the rp2040 gets rebooted.