Search found 12 matches

by ukrsms
Fri Mar 06, 2020 4:49 pm
Forum: ESP32 IDF
Topic: Memory leakage in IDF function
Replies: 6
Views: 1571

Re: Memory leakage in IDF function

One more "Lazy initialization" found. After executing the following sequence for the first time 204 bytes disappears TEST_ASSERT(nvs_flash_init_partition(PARTITION_LABEL_FACTORYDATA)==0); nvs_handle_t handle; TEST_ASSERT(nvs_open_from_partition(PARTITION_LABEL_FACTORYDATA, STORE_NAMESPACE_FACTORY, (...
by ukrsms
Thu Mar 05, 2020 10:09 am
Forum: ESP32 IDF
Topic: Memory leakage in IDF function
Replies: 6
Views: 1571

Re: Memory leakage in IDF function

Thank you, Angus

that are "lazy initialization", actually. However, it seems it is wrong behavior of the functions reported as IDF provided us with deinitialization function, however, not all memory is freed.
by ukrsms
Fri Feb 14, 2020 4:59 pm
Forum: ESP32 IDF
Topic: Memory leakage in IDF function
Replies: 6
Views: 1571

Re: Memory leakage in IDF function

after recent test I found one more function stealing memory:
esp_efuse_mac_get_default()
it steals 84 bytes after first calling
by ukrsms
Wed Jan 29, 2020 2:26 pm
Forum: ESP32 IDF
Topic: Memory leakage in IDF function
Replies: 6
Views: 1571

Memory leakage in IDF function

During debugging of my own code I found two functions that don't deallocate all the memory they used. Memory leaked only after the first used of the function here are the fubctions: memory leak 20 Bytes ledc_fade_func_install(0); ledc_fade_func_uninstall(); and memory leak 84 Bytes: esp_adc_cal_char...
by ukrsms
Fri Sep 20, 2019 2:03 pm
Forum: ESP32 IDF
Topic: CMake Build System require the main module to be called "main"
Replies: 4
Views: 722

Re: CMake Build System require the main module to be called "main"

Thank you, Angus, for your kindly reply. In the component CMakeLists.txt where you call idf_component_register you need to name which components your component will require. So in this case you'd add "idf_component_register(... REQUIRES spi_flash)" so that the "user" component could see the "spi_fla...
by ukrsms
Thu Sep 19, 2019 7:20 am
Forum: ESP32 IDF
Topic: CMake Build System require the main module to be called "main"
Replies: 4
Views: 722

Re: CMake Build System require the main module to be called "main"

I am new to CMake, therefore, I am not sure enough how to use "REQUIRES ....". However, at first I simply added "user" to the EXTRA_COMPONENT_DIRS, but during the building, some IDF header files included to my main.c were "not found". For example, I had these files including in my main.c #include <s...
by ukrsms
Wed Sep 18, 2019 4:39 pm
Forum: ESP32 IDF
Topic: CMake Build System require the main module to be called "main"
Replies: 4
Views: 722

CMake Build System require the main module to be called "main"

I am trying to switch from the gnu make to CMake build system and faced with a problem: some header files are not visible from my "main.c" file. The key thing is that I've moved my project from ESP8266 and my "main" code lays within "user" dir. After digging CMake related files I found that there ar...
by ukrsms
Thu Sep 05, 2019 4:21 pm
Forum: ESP32 IDF
Topic: BLE modem sleep still needs much current
Replies: 1
Views: 683

BLE modem sleep still needs much current

ESP-IDF version 3.2.2 I've studied the topic ble taking too much power on how to set up Bluetooth modem sleep with external 32.768kHz crystal and tried it by my own. I enabled Enable Power Management Enabled Tickless Idle and set RTC clock source (External 32kHz crystal) as well as Bluetooth low pow...
by ukrsms
Thu Sep 05, 2019 3:44 pm
Forum: ESP32 IDF
Topic: Change BLE default MTU for iOS application
Replies: 4
Views: 669

Re: Change BLE default MTU for iOS application

I noticed this issue as well
The difference is I use cpp_utils by Kolban:

Code: Select all

    BLEDevice::init("MY BLE");
    BLEDevice::setMTU(100);
But the masseges are still limited to about 20symbols
by ukrsms
Fri Aug 23, 2019 7:57 am
Forum: ESP32 IDF
Topic: HTTP client response data corrupted
Replies: 4
Views: 953

HTTP client response data corrupted

I faced and issue with HTTP client when performing POST request. The code is as followed: esp_http_client_config_t config = { .method=HTTP_METHOD_POST, .url=Request->Query, .timeout_ms=CLOUD_LOOKUP_TIMEOUTms, .disable_auto_redirect=1, //no redirection .event_handler = HTTP_EventHandler, }; client = ...

Go to advanced search