I am working on K64FN controller with KDS 3.2.0. I would like to detect low voltage on K64 for writing data to flash to protect it from being erase on power on reset. I am using processor expert for my project. I have tried the below configuration from link
K64 Low Voltage Detect
- PMC_LVDSC1 = PMC_LVDSC1_LVDIE_MASK | PMC_LVDSC1_LVDV(1);
- PMC_LVDSC2 = PMC_LVDSC2_LVWACK_MASK | PMC_LVDSC2_LVWIE_MASK | PMC_LVDSC2_LVWV(3);
Also I have made changes in unhandled vector from Build option of the CPU component to Own handler for every, so that I can check if LVD interrupt occurred. I did debug this by using J-link debugger. When I decreased the voltage below 3.1 V, it is showing me message that No source available at 0x00 and it is not going to the LVD_ISR.
My question is how to get the LVD interrupt fire in my code?
Any help is appreciated.