Hardware Interrupt For Flash Protection

thethinker
Posts: 58
Joined: Thu Mar 01, 2018 1:26 am

Hardware Interrupt For Flash Protection

Postby thethinker » Tue Jan 22, 2019 3:35 am

Hi,
In order to prevent flash corruption, I have been taking extra precautions to minimize flash writes. But when it's time for firmware upgrades (OTA), then there is nothing I can do. However I have a power management IC and a super cap which can let me know about a second before power completely dies. I also have an output from management chip going to ESP32 GPIO.
What would be the best approach for using this pin as an interrupt input to safely and quickly shutdown all flash operations before things get corrupted?

Who is online

Users browsing this forum: No registered users and 167 guests