Search found 10 matches

by hcasper
Sun Mar 09, 2025 11:13 am
Forum: ESP-IDF
Topic: ESP32-S3 ULP power consumption
Replies: 15
Views: 4627

Re: ESP32-S3 ULP power consumption

Thank you, I appreciate any feedback. I'm not sure I quite understand. Could you be more specific about what you mean, what race conditions you see and what I should change in the example code? Should we maybe move forward with just one of the ULPs? FSM always had lower currents than RISCV, so I thi...
by hcasper
Sun Mar 02, 2025 7:06 pm
Forum: ESP-IDF
Topic: ESP32-S3 ULP power consumption
Replies: 15
Views: 4627

Re: ESP32-S3 ULP power consumption

Any news on this?
by hcasper
Sun Feb 16, 2025 11:02 am
Forum: ESP-IDF
Topic: ESP32-S3 ULP power consumption
Replies: 15
Views: 4627

Re: ESP32-S3 ULP power consumption

Sure, this is the code for RISCV. Main Processor: #include <stdio.h> #include <inttypes.h> #include "esp_sleep.h" #include "ulp_riscv.h" #include "ulp_adc.h" #include "ulp_main.h" #include "ulp/example_config.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" extern const uint8_t ulp_main_...
by hcasper
Sun Feb 16, 2025 9:01 am
Forum: ESP-IDF
Topic: ESP32-S3 ULP power consumption
Replies: 15
Views: 4627

Re: ESP32-S3 ULP power consumption

So I have updated to the current ESP-IDF 5.4 and started using Visual Studio Code. I have run the ULP ADC examples for both FSM and RISCV, also modifying each one with the previously discussed statements to disable the ADC from ULP. The result: In all cases the consumption is still around 50 µA (# 2...
by hcasper
Wed Jan 22, 2025 7:07 pm
Forum: ESP-IDF
Topic: ESP32-S3 ULP power consumption
Replies: 15
Views: 4627

Re: ESP32-S3 ULP power consumption

Ok, so I looked into this more and came up with the following lines to disable the ADC from ULP. WRITE_RTC_REG(SENS_SAR_PERI_CLK_GATE_CONF_REG, SENS_SARADC_CLK_EN_S, 1, 0) WRITE_RTC_REG(SENS_SAR_PERI_CLK_GATE_CONF_REG, SENS_IOMUX_CLK_EN_S, 1, 0) WRITE_RTC_REG(SENS_SAR_POWER_XPD_SAR_REG, SENS_SARCLK_...
by hcasper
Mon Jan 13, 2025 12:36 pm
Forum: ESP-IDF
Topic: ESP32-S3 ULP power consumption
Replies: 15
Views: 4627

Re: ESP32-S3 ULP power consumption

Sorry, I forgot to mention that I am using ULP-FSM not RISCV. Is the same possible there?
by hcasper
Mon Jan 13, 2025 11:17 am
Forum: ESP-IDF
Topic: ESP32-S3 ULP power consumption
Replies: 15
Views: 4627

Re: ESP32-S3 ULP power consumption

I am in too deep in this project now, I have to get it working. I would really like to try to turn the ADC on/off from ULP and thoroughly test it. Can someone tell me how I can implement that on the ULP?
by hcasper
Wed Jan 08, 2025 9:55 pm
Forum: ESP-IDF
Topic: ESP32-S3 ULP power consumption
Replies: 15
Views: 4627

Re: ESP32-S3 ULP power consumption

Thank you very much. I don't have that much experience with ESPs yet, could you please explain a bit more what I need to do to implement your two approaches?
by hcasper
Wed Jan 08, 2025 11:24 am
Forum: ESP-IDF
Topic: ESP32-S3 ULP power consumption
Replies: 15
Views: 4627

Re: ESP32-S3 ULP power consumption

Thank you, that is a good test, should have thought of that myself. I removed everything that would cause changes after deep sleep and now all 4 batches are around 8 µA in deep sleep, as they should be. On one of the boards that had 50 µA before, I then re-activated step by step different parts that...
by hcasper
Tue Jan 07, 2025 6:38 pm
Forum: ESP-IDF
Topic: ESP32-S3 ULP power consumption
Replies: 15
Views: 4627

ESP32-S3 ULP power consumption

I have a serious problem with an ESP32-S3 based project, which needs to run a long time on a single battery. I have programmed everything using ESP-IDF 5.1.1 in Eclipse. The main program does some calculations, starts the ULP program and then we go to esp_deep_sleep_start(). The ULP periodically set...