Search found 14 matches
- Wed Mar 19, 2025 8:57 pm
- Forum: ESP-IDF
- Topic: ESP32-S3 ULP power consumption
- Replies: 22
- Views: 87976
Re: ESP32-S3 ULP power consumption
It works! Thank you so so much boarchuz, my project is finally back on track. And I think all of this information might be relevant to others as well.
- Mon Mar 17, 2025 9:15 pm
- Forum: ESP-IDF
- Topic: ESP32-S3 ULP power consumption
- Replies: 22
- Views: 87976
Re: ESP32-S3 ULP power consumption
Thanks, I tried it but it only has the effect that when the ULP program crashes, it consumes about 1.5 mA instead of 200 µA before. I have added reading the modified registers on the ULP and writing the values:
Main processor:
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include ...
Main processor:
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include ...
- Sun Mar 16, 2025 7:55 pm
- Forum: ESP-IDF
- Topic: ESP32-S3 ULP power consumption
- Replies: 22
- Views: 87976
Re: ESP32-S3 ULP power consumption
Thank you so much boarchuz, that is the first step forward so far. I can reproduce the result, that adding
void esp_sleep_enable_adc_tsens_monitor(bool enable);
esp_sleep_enable_adc_tsens_monitor(false);
before esp_deep_sleep_start() does drop the current from about 50 µA to about 9 µA, which ...
void esp_sleep_enable_adc_tsens_monitor(bool enable);
esp_sleep_enable_adc_tsens_monitor(false);
before esp_deep_sleep_start() does drop the current from about 50 µA to about 9 µA, which ...
- Fri Mar 14, 2025 8:38 pm
- Forum: ESP-IDF
- Topic: ESP32-S3 ULP power consumption
- Replies: 22
- Views: 87976
Re: ESP32-S3 ULP power consumption
I tried to follow the approach of undoing everything that the ulp_adc_init() does. I went through the code and found that all registers that are modified are in rtc_io_reg.h, rtc_cntl_reg.h and sens_reg.h. I then modified my code to just read all registers in these files before and after ulp_adc ...
- Sun Mar 09, 2025 11:13 am
- Forum: ESP-IDF
- Topic: ESP32-S3 ULP power consumption
- Replies: 22
- Views: 87976
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 ...
- Sun Mar 02, 2025 7:06 pm
- Forum: ESP-IDF
- Topic: ESP32-S3 ULP power consumption
- Replies: 22
- Views: 87976
Re: ESP32-S3 ULP power consumption
Any news on this?
- Sun Feb 16, 2025 11:02 am
- Forum: ESP-IDF
- Topic: ESP32-S3 ULP power consumption
- Replies: 22
- Views: 87976
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 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 ...
- Sun Feb 16, 2025 9:01 am
- Forum: ESP-IDF
- Topic: ESP32-S3 ULP power consumption
- Replies: 22
- Views: 87976
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 ...
- Wed Jan 22, 2025 7:07 pm
- Forum: ESP-IDF
- Topic: ESP32-S3 ULP power consumption
- Replies: 22
- Views: 87976
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 ...
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 ...
- Mon Jan 13, 2025 12:36 pm
- Forum: ESP-IDF
- Topic: ESP32-S3 ULP power consumption
- Replies: 22
- Views: 87976
Re: ESP32-S3 ULP power consumption
Sorry, I forgot to mention that I am using ULP-FSM not RISCV. Is the same possible there?