Hello,
I’m experiencing very off behavior on my Photon after it wakes from standby mode. There are 2 issues:
- it insists on connecting to the cloud, despite being run in MANUAL mode. This seems like a bug
- OneWire communication is dead. You must be doing something in pre-startup that kills it after exiting from standby. As an ugly workaround I’m calling
NVIC_SystemReset();
to force a full restart when the last restart was caused by exiting from standby. It works, but I don’t like it.
So my 2 questions are:
- how can I prevent photon from connecting to the cloud after exiting from standby (
SLEEP_MODE_DEEP
)? - is there anything I can do to make OneWire work ofter Photon wakes up from standby?
Some additional info:
- other sleep modes are out of the question as they consume too much power, it has to be standby mode.
- everything works ok in other sleep modes (ie stop mode), so I assume it has to do specifically with code Photon executes after existing from standby
- I’m using PA0 GPIO to for OneWire communication. It is possible something is done to this particular GPIO, as it is also connected to WKP as well according to photon docs.