Skip to content

Several questions regarding the pico environment #2329

Answered by earlephilhower
HamzaHajeir asked this question in Q&A
Discussion options

You must be logged in to vote
  • On exception/abort, both ESPs dumps a stack, is there any comparable concept in pico?

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.

  • On exception, what method could be used to make the MCU reboot instead of hanging?

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

  • The Serial terminal (in PlatformIO) does not respond when the MCU is hanging. It seems…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@HamzaHajeir
Comment options

Answer selected by HamzaHajeir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants