My code is pretty mindless right now. I am using
To enter RUN mode and I am using
To enter VLPR mode but I am getting hung on the check of the PMSTAT register. The VLPR status bit never gets set and I am hung in RUN mode. The CME bit is cleared.
Those@@ functions seems to handle all of the necessary changes to satisfy the requirements I see in the reference manual as well as AN4503 and AN4470.