PSOC5 ES1 trouble with RTC sample code | Cypress Semiconductor
PSOC5 ES1 trouble with RTC sample code
I was trying to get sample code for the RTC working on my PSOC5 kit with ES1 silicone and I may be running into one of the known issues..
If I program and run the code, it writes to the LCD once then seems to hang.
If I debug and put a breakpoint in the main loop, and "play" from that breakpoint after waiting a second, it will update the LCD each time and come back to the breakpoint. If I "Play" from the breakpoint wiht less than a second delay, it never returns to the breakpoint and never updates the LCD any more.
In this document on page 7, item #21:
It states that it won't wake from sleep cleanly, and recommends defining a compiler macro for CYLIB_POWER_MANAGEMENT in the project build properties under compiler. Being a noob, I can't seem to figure out what this means, nor can I figure out the right keywords to find any useful information on creating compiler macros to figure it out.. A little help would be greatly appreciated. I already figured out the clock setup mentioned in the same item (I think..)
If I comment out the sleep routines and prevent that from happening, the RTC is alive and well and updates the LCD with no problem. Attached is my project. (with the sleep routines commented out in the main loop