ULP execution flow

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: ULP execution flow

Postby WiFive » Fri Feb 03, 2017 6:31 am

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.

jeromeh
Posts: 31
Joined: Thu Dec 22, 2016 5:41 am

Re: ULP execution flow

Postby jeromeh » Wed Feb 08, 2017 3:00 am

@igrr, are you back from vocation now? would you please help here?

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: ULP execution flow

Postby ESP_igrr » Wed Feb 08, 2017 7:09 am

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.

jeromeh
Posts: 31
Joined: Thu Dec 22, 2016 5:41 am

Re: ULP execution flow

Postby jeromeh » Wed Feb 22, 2017 7:41 am

Any good new on this example? @ESP_igrr

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: ULP execution flow

Postby ESP_igrr » Fri Feb 24, 2017 7:28 am

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.

jeromeh
Posts: 31
Joined: Thu Dec 22, 2016 5:41 am

Re: ULP execution flow

Postby jeromeh » Fri Feb 24, 2017 12:59 pm

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.
ESP_igrr wrote: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.

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: ULP execution flow

Postby ESP_igrr » Thu Mar 09, 2017 7:27 am

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.

Who is online

Users browsing this forum: Majestic-12 [Bot] and 221 guests