- Fri Sep 16, 2016 4:38 pm
#55248
Thanks martinayotte it's good to get confirmation that the 470R resistor is ok. Everything is connected exactly as per the schematic that I attached in this thread, with the exception of a new 100uF cap across the battery which has improved stability massively. So yes the RST pullup is still there.
I added some logging to my firmware and was able to see that the device actually is waking from deep sleep but I had a bug which came with the side effect of nothing logged for the wake event which mislead me to think deep sleep wake up wasn't working when it was..my bad
There is one odd thing that remains though: if the device is in deep sleep and I manually reset via the switch pulling the reset pin to ground, I see that the boot rst_reason flag comes through as REASON_DEEP_SLEEP_AWAKE = 5. I'd really hope that this would have come through as REASON_EXT_SYS_RST = 6 because then I could then detect in code that the device had been manually woken from sleep as opposed to automatically woken from sleep.
If I disconnect the battery for a short while when the device is in deep sleep then reconnect it, I see that the boot rst_reason flag does come through as REASON_EXT_SYS_RST = 6
I see this running with Arduino Core v2.3.0 on sdk v1.5.3
Does anyone have any idea why this would happen?
Cheers
Joe