By long I mean 3+ seconds. See attached image - more than 3 secs (1second per horizontal division)
This is compiled with current esp32 sdk head (1c3dd23fe0c547c5cdcd6a01c111145c572dab91)
Attached sdkconfig as used in app.
Search found 19 matches
- Wed Jan 17, 2018 7:42 pm
- Forum: ESP-IDF
- Topic: ESP32 Wifi Station Modem Sleep Delay
- Replies: 5
- Views: 8975
- Tue Jan 16, 2018 7:43 pm
- Forum: ESP-IDF
- Topic: ESP32 Wifi Station Modem Sleep Delay
- Replies: 5
- Views: 8975
Re: ESP32 Wifi Station Modem Sleep Delay
Any news on this?
Still observing long delay on ESP32 in station mode after connect to AP before modem sleep kicks in...
Still observing long delay on ESP32 in station mode after connect to AP before modem sleep kicks in...
- Mon Oct 30, 2017 10:15 am
- Forum: ESP-IDF
- Topic: esp_wifi_set_country returns ESP_ERR_WIFI_ARG
- Replies: 2
- Views: 5210
Re: esp_wifi_set_country returns ESP_ERR_WIFI_ARG
Same results with WIFI_COUNTRY_POLICY_MANUAL...
- Mon Oct 30, 2017 8:05 am
- Forum: ESP-IDF
- Topic: esp_wifi_set_country returns ESP_ERR_WIFI_ARG
- Replies: 2
- Views: 5210
esp_wifi_set_country returns ESP_ERR_WIFI_ARG
Hello, I wanted to limit the possible channels the station is scanning when trying to connect using the esp_wifi_set_country API: wifi_country_t country = { .cc = "EU", .schan = 3, .nchan = 1, .policy = WIFI_COUNTRY_POLICY_AUTO, }; int ret = esp_wifi_set_country(&country); // returns ESP_ERR_WIFI_AR...
- Sun Oct 29, 2017 11:50 am
- Forum: ESP-IDF
- Topic: esp_wake_deep_sleep not called
- Replies: 0
- Views: 2974
esp_wake_deep_sleep not called
Hello, It seems that after using light sleep in an app and then going to deep sleep the deep sleep wake stub is not called after waking from deep sleep. Here is a sample program that shows the problem: #include "freertos/FreeRTOS.h" #define DEEP_SLEEP_STATUS_ADDR 0x3ff81ff8 #define DEEP_SLEEP_STATUS...
- Tue Sep 26, 2017 7:18 pm
- Forum: ESP-IDF
- Topic: Crash when waking up from light sleep
- Replies: 11
- Views: 19941
Re: Crash when waking up from light sleep
Thanks ESP_igrr, the light sleep does work now!
- Tue Sep 26, 2017 7:09 pm
- Forum: General Discussion
- Topic: Reducing clock frequency
- Replies: 7
- Views: 20381
Re: Reducing clock frequency
It seems that changing the cpu freq to 2Mhz using the rtc_clk_cpu_freq_set does not work now. Using the simple app: #include "esp_system.h" #include "soc/rtc.h" #include "rom/uart.h" void app_main(void) { printf("before freq set\n"); uart_tx_wait_idle(0); rtc_clk_cpu_freq_set(RTC_CPU_FREQ_2M); // rt...
- Tue Sep 26, 2017 5:16 am
- Forum: ESP-IDF
- Topic: Crash when waking up from light sleep
- Replies: 11
- Views: 19941
Re: Crash when waking up from light sleep
Just to explain why we need spi_flash_read_encrypted is because we are planning to use the very cool feature of esp32 - encrypted flash. And when using encrypted flash the bootloader is doing spi_flash_read_encrypted to load partition table or something thus preventing light sleep in apps that use e...
- Tue Sep 26, 2017 5:06 am
- Forum: ESP-IDF
- Topic: Crash when waking up from light sleep
- Replies: 11
- Views: 19941
Re: Crash when waking up from light sleep
Hello, So I have investigated the problem some more and found that actual culprit of esp32 not being able to wake from light sleep is call to Cache_Flush_rom(0); called by Cache_Flush(0); called by spi_flash_mmap_pages(); called by spi_flash_mmap called by spi_flash_read_encrypted when I comment out...
- Sat Sep 23, 2017 7:59 pm
- Forum: ESP-IDF
- Topic: Crash when waking up from light sleep
- Replies: 11
- Views: 19941
Re: Crash when waking up from light sleep
Thanks esp_igrr, just tried the fix, the situation has improved, but there is still a problem with light sleep. I have boiled it down to following code where there seems to happen some random crash on wakeup: #include "esp_spi_flash.h" #include "nvs_flash.h" #include "esp_system.h" #define FLASH_NV_...