This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Power-fail comparator and flash write/erase op

Good day!

52840 datasheet states "If the power failure warning is enabled and the supply voltage is below the threshold, the power-fail comparator will prevent the NVMC from performing write operations to the flash."

The question: is this a hardware feature that will block flash write (and erase?) operation in case power-fail monitor is enabled and Vdd is below its threshold? In other words, is it sufficient to use sd_power_pof_enable() and sd_power_pof_threshold_set() to prevent NVMC from writing when Vdd is below the threshold?
Or more FW changes are needed (e.g. adding a handler for the power fail event)?

Thanks!

Related