Difference between reset and soft reboot
-
The SiPy freezes (REPL unresponsive) on this line after a soft reboot but works fine after a reset.
sd = SD() -
@pmulvey it is my experience, though haven't had it confirmed from anyone else, that soft reset will introduce all kinds of weird problems (compared to a hard reset) eg, for me - I get OS errors that different resources aren't available. Like ADC and Network.. I'm on a Lopy btw.
-
@soren Soft reset clear mostly the micropython space. The underlying OS, the network stack and the hardware modules are not reset. For instance, when you have sockets open and do a soft reset, you'll get an error to use these sockets again. Definitely reliable is a hard reset by pulling the reset input low, e.g. by pushing the reset button. Close to that is using machine.reset().
If you are tracing errors and need a clear repeatable state, starting with a hard reset is recommended. -
@robert-hh Is there a software way to do a hard reset? You say machine.reset() is close but we all know what close is good for.
-
@ssmith Unless you find something specific, machine.reset() is as good as it can get. It seems to do everything software does after hard reset.
-
@pmulvey
I have the same feeling as you
i have reported issue about SD card reset few months ago
https://github.com/pycom/pycom-micropython-sigfox/issues/18 -
@ssmith If you need a hard reset, you could connect a GPIO pin to Reset and pull that low. I have experienced the SD card issue too, which seems to require a pyhsical reset signal. But I dod not follow up that yet, whther it's a missimng software init of the SD card interface/driver, or a pysical reset signal missing.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login