Page 2 of 2
Re: ULP execution flow
Posted: Fri Feb 03, 2017 6:31 am
by WiFive
Maybe if you manually tweak the correct rtc registers you can cause a wake event. Then you could set a flag in rtc memory that is checked by the main CPU.
Re: ULP execution flow
Posted: Wed Feb 08, 2017 3:00 am
by jeromeh
@igrr, are you back from vocation now? would you please help here?
Re: ULP execution flow
Posted: Wed Feb 08, 2017 7:09 am
by ESP_igrr
I'm working on an example of deep sleep wakeup modes, ulp wakeup included. As soon as I get either ADC or TSENS working, will put this into a branch for you to try.
Re: ULP execution flow
Posted: Wed Feb 22, 2017 7:41 am
by jeromeh
Any good new on this example? @ESP_igrr
Re: ULP execution flow
Posted: Fri Feb 24, 2017 7:28 am
by ESP_igrr
deep sleep / ULP example is finished, but we're only going to merge it after 2.0. Currently it polls the on-chip temperature sensor, but I also have some code for polling an ADC which I will integrate in there.
Re: ULP execution flow
Posted: Fri Feb 24, 2017 12:59 pm
by jeromeh
I would be eager to see some pre-release if you don't mind...it doesn't need to be in pretty format...my project was stuck due to current ULP are not able to read GPIO input through RTC_GPIO_IN_REG. I'm trying to find out if using ADC can be a viable work-around.
deep sleep / ULP example is finished, but we're only going to merge it after 2.0. Currently it polls the on-chip temperature sensor, but I also have some code for polling an ADC which I will integrate in there.
Re: ULP execution flow
Posted: Thu Mar 09, 2017 7:27 am
by ESP_igrr
Sorry, I haven't noticed your last message. The deep sleep example is now on Github, and i think it answers some questions you have asked above. Also there are some bugfixes which have been merged, related to access to RTC registers, so you should be able to read GPIOs from the ULP now.
Extending the example to illustrate ADC sampling is work-in-progress, as is the integration of ULP binutils into the ESP-IDF.