Search found 11 matches

by zwer97
Mon Aug 22, 2022 1:42 pm
Forum: ESP-IDF
Topic: ESP32C3 forever loop at boot
Replies: 11
Views: 10526

Re: ESP32C3 forever loop at boot

This is a 220V AC powered device. It contains an AC to DC converter and should fall into a deep sleep when AC power is disconnected. There is a tested schematic, which generates a signal when AC voltage disappears to go to sleep, and generates signal to wake up when AC voltage is back. But sometimes...
by zwer97
Sun Aug 21, 2022 3:42 pm
Forum: ESP-IDF
Topic: ESP32C3 forever loop at boot
Replies: 11
Views: 10526

Re: ESP32C3 forever loop at boot

Aha, now I understand the problem from the hardware side. So may it be somehow solved by software with no hardware changes? Maybe some efuse? Also how from the hardware side would it be correct to provide deep sleep on a super capacitor? I can't generate a reset signal at every wake up, otherwise th...
by zwer97
Sat Aug 20, 2022 2:46 pm
Forum: ESP-IDF
Topic: ESP32C3 forever loop at boot
Replies: 11
Views: 10526

Re: ESP32C3 forever loop at boot

Here is a simplified schematic. IO9 is pulled up with 5.1k. ESP_EN is pulled up with 5.1k + capacitor to add delay for enable signal. IO8 and IO2 may have undefined states at startup in my schematic, as IO2 is used for analog measurements and IO8 for LED control. P.S. I've tried this, but it didn't ...
by zwer97
Fri Aug 19, 2022 1:54 pm
Forum: ESP-IDF
Topic: ESP32C3 forever loop at boot
Replies: 11
Views: 10526

Re: ESP32C3 forever loop at boot

I know that the battery was discharged and why BROWNOUT_RST was triggered. But later I've connected normal voltage and got stuck in forever loop: rst:0x3 (RTC_SW_SYS_RST),boot:0x0 (USB_BOOT) This is potentially dangerous situation, when device will hang with power connected. The question is why it h...
by zwer97
Fri Aug 19, 2022 11:53 am
Forum: ESP-IDF
Topic: ESP32C3 forever loop at boot
Replies: 11
Views: 10526

ESP32C3 forever loop at boot

I have a custom board on ESP32C3, with possibility to fall into a deep sleep by external signal. As a source for power in deep sleep a 0.22F super capacitor is used. But sometimes when ESP goes out of a deep sleep when it's powered from super capacitor only, it falls into a forever loop on the next ...
by zwer97
Sun Nov 14, 2021 8:06 pm
Forum: ESP-IDF
Topic: ESP32C3 critical interrupts
Replies: 0
Views: 1404

ESP32C3 critical interrupts

Hi. I use timer interrupts to make dynamic indication on 7-segment indicators (interrupt period 1000us for show time and 50us for delay between periods to give time for LEDC to change state). To make variable brightness I use LEDC on common pins of the indicator (40kHz 4bit). It works well until wif...
by zwer97
Wed Oct 13, 2021 5:14 pm
Forum: Hardware
Topic: ESP32-C3 stability of wake up from deep sleep
Replies: 1
Views: 4160

Re: ESP32-C3 stability of wake up from deep sleep

I've found the reason of pull down after going to deep sleep, it is in esp_deep_sleep_wakeup_prepare() function, which is called from esp_deep_sleep_start(). For some reason when i disable pulldown of the wake up pin the chip started to wake up much better. I think that function esp_deep_sleep_start...
by zwer97
Mon Oct 11, 2021 11:25 am
Forum: Hardware
Topic: ESP32-C3 stability of wake up from deep sleep
Replies: 1
Views: 4160

ESP32-C3 stability of wake up from deep sleep

Hello. I'm trying to make a custom board on ESP32C3 with wall socket power supply and 0.22F supercapacitor for RTC. So i want the chip to go to deep sleep when 220V power supply disappears and wake up when 220V appears back. I've been successful with going to deep sleep (supercapacitor is not discha...
by zwer97
Wed Sep 15, 2021 8:07 pm
Forum: Hardware
Topic: ESP32-C3 power consumption doesn't match to the datasheet
Replies: 12
Views: 18948

Re: ESP32-C3 power consumption doesn't match to the datasheet

Try this before deep sleep, it seems to help me. for (gpio_num_t gpio_num = GPIO_NUM_0; gpio_num < GPIO_NUM_MAX; gpio_num++) { if (GPIO_IS_VALID_GPIO(gpio_num)) { if (gpio_num <= GPIO_NUM_5) { REG_CLR_BIT(RTC_CNTL_PAD_HOLD_REG, BIT(gpio_num)); } else { CLEAR_PERI_REG_MASK(RTC_CNTL_DIG_PAD_HOLD_REG, ...
by zwer97
Wed Sep 15, 2021 6:06 pm
Forum: Hardware
Topic: ESP32-C3 power consumption doesn't match to the datasheet
Replies: 12
Views: 18948

Re: ESP32-C3 power consumption doesn't match to the datasheet

I also have this issue with ESP32C3 on custom board (not dev board). Current consumption is about 300uA instead of 5uA as in datasheet. Also in esp-idf doccumentation https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/api-reference/system/sleep_modes.html they recommend to use rtc_gpio_is...