I am sure I am missing something here.
Could someone explain to me why the following code does not work? It works when I replace the sleep part with an one second delay.
CyGlobalIntEnable; /* Enable global interrupts. */
//enable the 1 second interval for RTC interrupt
//start the RTC
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
Solved! Go to Solution.
I am sorry, but I don't have the project any more, since I changed to an external RTC with a 1Hz IRQ signal. However, I had the 32kHz clock activated and a RTC component instantiated. The project compiled without giving any error.
Hi, Only thing I can see is there should be some delay after power up before you put device into sleep. CyDelay(100) before main loop might help.