ULP change sleep timer

chrs37
Posts: 2
Joined: Tue Jan 29, 2019 7:23 pm

ULP change sleep timer

Postby chrs37 » Tue Jan 29, 2019 7:32 pm

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?

boarchuz
Posts: 605
Joined: Tue Aug 21, 2018 5:28 am

Re: ULP change sleep timer

Postby boarchuz » Wed Jan 30, 2019 4:09 am

Are you trying to do this while in deep sleep? Because I recall it also says somewhere there that you can't do so.

chrs37
Posts: 2
Joined: Tue Jan 29, 2019 7:23 pm

Re: ULP change sleep timer

Postby chrs37 » Mon Feb 04, 2019 8:52 pm

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?

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], Kniroxe and 91 guests