Several questions regarding the pico environment #2329
-
Hi there, As having a strong background in ESP8266 and ESP32, and yet new to the raspberry pico world, I'm having several inquiries/questions:
With thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It will
You can override
See the 1st note. USB is in SW on the Pico., You crash the Pico, you have immediate USB freeze.
No. On the 8266 we used UMM which handled this behind the scenes. It was important since we had only ~40KB total usable heap. The Pico uses Newlib's malloc which is scalable to the larger memory size.
No, and there's no real need for this. On the ESPs they stored some RF connection info in user flash and if it got corrupted you could end up with their BLOB hanging during chip boot or no WiFi. Here, any WiFi state lives in RAM on the CYW chip, not in the flash or the Pico chip. The RPI folks do have a UF2 which you can manually/script upload to erase everything, check the SDK docs. |
Beta Was this translation helpful? Give feedback.
It will
panic()
and you can use any SWD debugger (another Pico, even) to examine state. The ESPs dump stack over a physical UART/serial port, and there's a chip onboard that speaks USB on 1 end and UART on the other. Here, the Pico controls the port so a crash means no USB comms are possible, it's crashed.You can override
panic()
or use a watchdog timer to have the HW do it if your code doesn't tickle it every XXX milliseconds