Limited Reset Options Showing for MACHINE on PICO W #10858
-
I'm just starting to work with micropython on my PICO W. I've seen the various options for reset in in the documentation. Here's what I see for MACHINE
When I power cycle, I get the reset_cause of 1 (PWRON_RESET) reset() and soft_reset() return 3 (WDT_RESET). I'm using Pico Display and loaded their firmware pimoroni-picow-v1.19.12-micropython.uf2 and was wondering if that could be the issue. My question is this what I'm seeing in help(machine) normal micropython for PICO W? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
This is what I get on a Pico W:
MicroPython help text is usually extremely terse. Best to the current (not ‘latest’) Reset related functions online. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Try this: reset_source = machine.mem32[0x40058008]. |
Beta Was this translation helpful? Give feedback.
-
Be aware some chips on some IDEs will change their claimed pwrup_cause depending on if your program is running from within the chip (eg as boot.py) or if you run it from your PC via the IDE (typically during development). I'm wishing now I'd made a note of which chip & which IDE was telling me porkies so I could test br4cine's mem32 location for invariance. |
Beta Was this translation helpful? Give feedback.
See https://github.com/orgs/micropython/discussions/10884