ESP32 and machine.reset() #9331
-
https://docs.micropython.org/en/latest/library/machine.html
but on an ESP32DevKitC dev board pressing the ENABLE button actually returns GPIO Does that doc also relate to the ESP32? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is a difference between a hardware and a software action. Pulling the EN pin low at the ESP32 causes an internal power cycle, after which the code starts at a well defined address. The latter can be done by software as well. But the code may not reset internal states to the |
Beta Was this translation helpful? Give feedback.
There is a difference between a hardware and a software action.
machine.reset()
does NOT change the voltage level at the EN pin, but causes the same code to be executed that pushing the EN pin. There can still be hardware related differences caused by wiring inside the chip, where pulling EN low may cause hardware state changes to some internal modules, which are not set like that by the software. That's why it's calledsimilar
.Pulling the EN pin low at the ESP32 causes an internal power cycle, after which the code starts at a well defined address. The latter can be done by software as well. But the code may not reset internal states to the
power-on
state.