Hi!
I want to share with you some issues I am having in a project with an esp32s2 (LOLIN-S2 dev board).
The project is about a weather station in which the main processor takes some measures (using i2c sensors like aht20, bmp280 and so on) and transmits them via wifi. To save power the main processor has 10 minutes deepsleep cycles.
In order to build an anemometer I wanted to employ the ULP to count pulses on every rotation, then the number of rotation is read from the main cpu to get windspeed.
The issue is that the setup works for days or even weeks but sometimes between sleep cycles of the main cpu the ulp stops and never runs again. For spotting this issue I made the ulp at each cycle write a canary value (namely 117) to an address of the RTC_SLOW_MEM.
The code is an aruidno sketch where the ULP is programmed using C macros. Have anyone encountered this issue? I searched everywhere and even tried every AI code assistant in the market, but no solution is able to fix this issue.
I will provide in the attachments the code.
The issue is fixed when I manually reset the board using the button
Thank you!
PS the file is called *.ino.txt only because the extension is not supported for attachments
ULP after some deepsleed cycles is unable to run again
ULP after some deepsleed cycles is unable to run again
- Attachments
-
- esp_ulp_bmp_aht .ino.txt
- (9.46 KiB) Downloaded 11 times
-
- ulp_program.h
- (3.79 KiB) Downloaded 16 times
Who is online
Users browsing this forum: Bing [Bot], ChatGPT-User, coccocbot and 5 guests