Search found 8 matches

by Michaelboeding
Mon Nov 18, 2024 5:35 am
Forum: General Discussion
Topic: Best way to share variables between ULP & Wake Up stub
Replies: 1
Views: 400

Best way to share variables between ULP & Wake Up stub

I'm attempting to share RTC memory variables between ULP & Deep sleep wakeup stubs but im having trouble getting it working. Basically I want to have an easy way to link variables that I can reference in my RISC-V ULP (ESP32-S3) and then also access these in the deep sleep wakeup stubs and during th...
by Michaelboeding
Fri Oct 25, 2024 10:36 pm
Forum: ESP-IDF
Topic: Reading system time in ULP
Replies: 6
Views: 4545

Re: Reading system time in ULP

Tried to implement this but it seem to lock up my ulp whenever it tries to call the following. // Read RTC timer SET_PERI_REG_MASK(RTC_CNTL_TIME_UPDATE_REG, RTC_CNTL_TIME_UPDATE); rtc_timestamp_low = READ_PERI_REG(RTC_CNTL_TIME0_REG); rtc_timestamp_high = READ_PERI_REG(RTC_CNTL_TIME1_REG); Full ULP ...
by Michaelboeding
Fri Oct 25, 2024 5:37 am
Forum: ESP-IDF
Topic: Reading system time in ULP
Replies: 6
Views: 4545

Re: Reading system time in ULP

Thanks so much! Ill try to implement this now and just use the interrupts and the timestamp of the RTC in the ulp!
by Michaelboeding
Thu Oct 24, 2024 10:48 pm
Forum: ESP-IDF
Topic: ULP RISC-V Interrupts/Timers
Replies: 5
Views: 827

Re: ULP RISC-V Interrupts/Timers

Perfect in that case I could just read that when an interrupt happens for activity and that would be way better than polling....would you happen to know how to do that in the RSIC-V ULP? I found an assembly example here but not sure how to actually accomplish this using the RISC-V https://esp32.com/...
by Michaelboeding
Thu Oct 24, 2024 4:46 am
Forum: ESP-IDF
Topic: Reading system time in ULP
Replies: 6
Views: 4545

Re: Reading system time in ULP

How would you do this in C for the RISC-V ULP?
by Michaelboeding
Thu Oct 24, 2024 4:34 am
Forum: ESP-IDF
Topic: ULP RISC-V Interrupts/Timers
Replies: 5
Views: 827

Re: ULP RISC-V Interrupts/Timers

How would you get the time in the ULP? This would be fine if I had a way to also log the timestamp and back calculate once the main processor is woken up. Ideally without running a while loop in the ULP.
by Michaelboeding
Tue Oct 22, 2024 10:46 pm
Forum: ESP-IDF
Topic: ULP RISC-V Interrupts/Timers
Replies: 5
Views: 827

ULP RISC-V Interrupts/Timers

I’m working on using the ESP32's ULP (Ultra-Low Power) mode for activity tracking with an accelerometer, and I’m trying to figure out the best way to implement this. Here’s what I want to achieve: Mark Activity as Active/Inactive: I need to monitor each minute. If a wake-up interrupt occurs from the...
by Michaelboeding
Tue Aug 29, 2023 2:14 pm
Forum: ESP-IDF
Topic: Problem with PPP connection to UBlox SARA-R5
Replies: 3
Views: 2996

Re: Problem with PPP connection to UBlox SARA-R5

Do you have code showing how you were able to do this with the SARA-R5? I've been trying to do it for awhile now. Thanks