Greetings,
Device: RP2040
SDK: 2.1
I use USB UART and when I write to flash via flash_safe_execute the pico freezes.
What is a bit surprising is that it works as long as I had debug printf enabled. Removing the printf call before flash_safe_execute leads to 100% reproducable freeze.
I found a bug report from 2021 which mentions disabling interrupts, however flash_safe_excecute should do that already. https://github.com/raspberrypi/pico-examples/issues/34
My current workaround is to call stdio_usb_deinit before writing too flash, but this is the nuclear option.
Thanks for any advice.
Device: RP2040
SDK: 2.1
I use USB UART and when I write to flash via flash_safe_execute the pico freezes.
What is a bit surprising is that it works as long as I had debug printf enabled. Removing the printf call before flash_safe_execute leads to 100% reproducable freeze.
I found a bug report from 2021 which mentions disabling interrupts, however flash_safe_excecute should do that already. https://github.com/raspberrypi/pico-examples/issues/34
My current workaround is to call stdio_usb_deinit before writing too flash, but this is the nuclear option.
Thanks for any advice.
Statistics: Posted by chuvok — Thu Apr 03, 2025 11:08 am — Replies 0 — Views 33