Page 1 of 1

ULP change sleep timer

Posted: Tue Jan 29, 2019 7:32 pm
by chrs37
In the technical reference manual their is a figure (157) showing the change of the sleep cycles for the ULP. I't states its using the SLEEP command. When I try to change the SLEEP_CYC_REG, it still uses REG0, not REG1.

I set the register in the main program with:

Code: Select all

 ulp_set_wakeup_period(0, 250 * 1000);
 ulp_set_wakeup_period(1, 1000 * 1000);
But I can't get it to use any other register than 0

I their something I'm doing wrong?

Re: ULP change sleep timer

Posted: Wed Jan 30, 2019 4:09 am
by boarchuz
Are you trying to do this while in deep sleep? Because I recall it also says somewhere there that you can't do so.

Re: ULP change sleep timer

Posted: Mon Feb 04, 2019 8:52 pm
by chrs37
Yes, I'm trying to do this while the main core is in deep sleep. But if it can't be done in deep sleep, what is de point of de SLEEP command? And do you know of an other way to change the sleep time while in deep sleep?