Search found 4 matches

by pablopabota
Wed Oct 25, 2023 5:16 am
Forum: ESP-IDF
Topic: esp_sleep_enable_ext0_wakeup not working
Replies: 1
Views: 755

esp_sleep_enable_ext0_wakeup not working

Hi, I'm trying to wake up my ESP-32 WROVER-E from an external source using the esp_sleep_enable_ext0_wakeup() function: void go_to_sleep(uint32_t useconds) { esp_wifi_stop(); esp_sleep_enable_ext0_wakeup(GPIO_NUM_4, 0); esp_deep_sleep(useconds); } I call that function in order to send my device to s...
by pablopabota
Tue Jan 24, 2023 4:24 pm
Forum: ESP-IDF
Topic: Memory leakage: esp_partition_write
Replies: 4
Views: 1875

Re: Memory leakage: esp_partition_write

So they don't allocate any dynamic resources? They don't, 'xSemaphoreTakeRecursive' and 'xSemaphoreGiveRecursive' is used. As native freeRTOS functions I guess there is no problem with them, also only when 'esp_partition_write' is commented is when memory leakage ceases. I'm not quite saying that. ...
by pablopabota
Mon Jan 23, 2023 9:19 pm
Forum: ESP-IDF
Topic: Memory leakage: esp_partition_write
Replies: 4
Views: 1875

Re: Memory leakage: esp_partition_write

Hi mbratch, I'm using 4.4.3 IDF version. The semaphores are implemented an working, I just omit those pieces of code just to keep it clean. I have been comenting different lines through my main code until I found that 'esp_partition_write' (inside my custom 'write_value_to_flash' function) is the fu...
by pablopabota
Thu Jan 19, 2023 3:05 am
Forum: ESP-IDF
Topic: Memory leakage: esp_partition_write
Replies: 4
Views: 1875

Memory leakage: esp_partition_write

Hi, I'm sending data over MQTT to my server and I found a memory leakage after saving data in flash memory. I don't know if I'm missing something when writting data in flash. Here is what I get in console: I (19:23:47.354) mqtt: mqtt_publish on topic /telemetry, payload {"ts":1673033027000,"values":...