Search found 11 matches

by Thomas1
Thu May 23, 2019 12:06 pm
Forum: ESP32 Arduino
Topic: Clearing a register from the main program
Replies: 1
Views: 3348

Re: Clearing a register from the main program

Well, I figured it out myself. You can just use the macro

Code: Select all

REG_CLR_BIT(RTC_CNTL_STATE0_REG, RTC_CNTL_ULP_CP_SLP_TIMER_EN);
by Thomas1
Wed May 22, 2019 11:03 pm
Forum: ESP32 Arduino
Topic: Clearing a register from the main program
Replies: 1
Views: 3348

Clearing a register from the main program

I need to stop an ULP program from running from the main program. According to the documentation: "To disable the timer (effectively preventing the ULP program from running again), clear the RTC_CNTL_ULP_CP_SLP_TIMER_EN bit in the RTC_CNTL_STATE0_REG register. This can be done both from ULP code and...
by Thomas1
Tue Feb 26, 2019 9:18 pm
Forum: ESP32 Arduino
Topic: Changing timer alarm in ISR
Replies: 3
Views: 9720

Re: Changing timer alarm in ISR

Thanks. I'll look into that.
by Thomas1
Mon Feb 25, 2019 5:28 pm
Forum: ESP32 Arduino
Topic: Changing timer alarm in ISR
Replies: 3
Views: 9720

Changing timer alarm in ISR

Hi, I'm trying to use hardware timer interrupts to change a pin's output between high and low for varying durations. To do this, I change the timer alarm value in the ISR. However, calling the timerAlarmWrite function in the ISR causes A Guru Meditation Error: Guru Meditation Error: Core 1 panic'ed ...
by Thomas1
Tue Feb 12, 2019 4:18 pm
Forum: ESP32 Arduino
Topic: Is it possible to set the threshold for external wake up?
Replies: 3
Views: 5377

Re: Is it possible to set the threshold for external wake up?

No, there is not. Suggest you use an external solution for this. You should be able to implement it using something like a simple RC network to filter out the spikes. Could you please give more details on how such a RC circuit would work? We are not trying to filter out frequencies, we want to filt...
by Thomas1
Fri Feb 08, 2019 7:19 pm
Forum: ESP32 Arduino
Topic: Is it possible to set the threshold for external wake up?
Replies: 3
Views: 5377

Is it possible to set the threshold for external wake up?

I'm having a chip that sleeps after a few seconds of inactivity and can be woken up by a GPIO that is connected to microphone. The relevant code is here. The wakeup is set to trigger on the GPIO being high. #define SLEEPTIMEOUT 3000 int lastActive; void setup(void) { lastActive = millis(); } void lo...
by Thomas1
Fri Feb 08, 2019 6:01 pm
Forum: ESP32 Arduino
Topic: EEPROM maximum size
Replies: 4
Views: 41040

Re: EEPROM maximum size

Looking into this more, I think SPIFFS will be more suitable either way.

Thanks for the help esp_igrr.
by Thomas1
Fri Feb 08, 2019 3:33 pm
Forum: ESP32 Arduino
Topic: EEPROM maximum size
Replies: 4
Views: 41040

Re: EEPROM maximum size

You can find the exact layout in the following partition table: https://github.com/espressif/arduino-esp32/blob/master/tools/partitions/default.csv. Other files in the same directory provide alternative partition tables. You can read more about partition tables in ESP-IDF programming guide: https:/...
by Thomas1
Wed Feb 06, 2019 5:01 pm
Forum: ESP32 Arduino
Topic: EEPROM maximum size
Replies: 4
Views: 41040

EEPROM maximum size

What is the maximum size of EEPROM on ESP32? I can't find the information in the data sheet, and googling shows either 512 or 4096.
Is it possible to increase the amount of flash memory assigned to eeprom?

Thanks.
by Thomas1
Thu Jan 24, 2019 5:56 pm
Forum: ESP32 Arduino
Topic: Is it possible to use the RTC to track how long the chip was sleeping
Replies: 4
Views: 8716

Re: Is it possible to use the RTC to track how long the chip was sleeping

ESP_igrr wrote:
Thu Jan 24, 2019 4:23 am
You can call esp_timer_get_time or gettimeofday functions. Time reported by these function will advance correctly (up to the precision of the RTC clock) while the chip is in light sleep.
Thank you!