Search found 8 matches
- Tue Feb 18, 2025 1:35 pm
- Forum: ESP-IDF
- Topic: Light sleep mode does not wake up - ESP32-C3
- Replies: 3
- Views: 940
Re: Light sleep mode does not wake up - ESP32-C3
How did you configure wake-up event? Is its wakeup source a timer or an uart? This code works for me: static int nap(unsigned int timeout_sec, int uart) { if (!timeout_sec) { esp_sleep_enable_uart_wakeup(uart); uart_set_wakeup_threshold(uart, 1); } else { esp_sleep_disable_wakeup_source(ESP_SLEEP_WA...
- Thu Feb 06, 2025 11:33 am
- Forum: ESP-IDF
- Topic: HW data watchpoints
- Replies: 1
- Views: 645
HW data watchpoints
Hello! Xtensa ISA reference mention data breakpoint registers, and ESP-IDF even has the code (xt_utils, set_watchpoint). But how can these be used? I mean, after I write the data address/length in a corresponding DBREAKA, DBREAKC registers, what would happen on data access? An interrupt? Which on? H...
- Sat Dec 14, 2024 8:17 am
- Forum: ESP-IDF
- Topic: Multiple PCNT at once
- Replies: 4
- Views: 2965
Re: Multiple PCNT at once
Solution. Last two days spent trying to make it work with global PCNT ISR. Results are negative: only PCNT UNIT#0 seemed to generate interrupts. UNIT#1 counts but never generates interrupts. Thats what was with pcnt_isr_register()-style iunterrupt. However when I switched from this global isr to a p...
- Thu Dec 12, 2024 10:52 pm
- Forum: ESP-IDF
- Topic: Multiple PCNT at once
- Replies: 4
- Views: 2965
Re: Multiple PCNT at once
Thanks! It worked 

- Thu Dec 12, 2024 7:44 am
- Forum: ESP-IDF
- Topic: Multiple PCNT at once
- Replies: 4
- Views: 2965
Multiple PCNT at once
Hello, I have a code, which uses PCNT to measure frequency. The code uses interrupts to catch counter overflow (counter is 16bit only). Now I need to run 4 counters in parallel but it is not clear what to do with interrupts. Should it be 4 different interrupts? Or, if it is single interrupt (like wh...
- Fri Sep 13, 2024 3:45 am
- Forum: ESP-IDF
- Topic: Writing IRAM
- Replies: 1
- Views: 1339
Writing IRAM
Hello!
Can I configure MMU in a such way so I can write to a IRAM? What I want is to enable writing to the instruction ram, and then inject some binary code at the beggining of FreeRTOS task creation function to hook onto it.
Is this doable?
Can I configure MMU in a such way so I can write to a IRAM? What I want is to enable writing to the instruction ram, and then inject some binary code at the beggining of FreeRTOS task creation function to hook onto it.
Is this doable?
- Thu Aug 01, 2024 6:51 am
- Forum: Hardware
- Topic: Choosing resistor values for a voltage divider ESP32-C3 analogue input
- Replies: 3
- Views: 4342
Re: Choosing resistor values for a voltage divider ESP32-C3 analogue input
imply just use one 2M resistor between the battery and the analog pin. Yes many people do like this. However the discharge curve of cell batteries are very flat until they are almost discharged. So unlikely you can get something like 90%, 75%, 52%.. It will be sort of 100%, 100%, 100%, and then sud...
- Wed Jul 31, 2024 6:03 am
- Forum: ESP32 Arduino
- Topic: ESP32 Dual Core: Periodic Task Interruption
- Replies: 4
- Views: 2275
Re: ESP32 Dual Core: Periodic Task Interruption
Your Task2 (protocol handling) is not alone on Core#1 . Arduino also runs on Core#1. Try to switch cores for your protocol generation, let the protocol part to be on Core#0. Just an idea.