Search found 18 matches

by ukrsms
Thu Jul 30, 2020 10:12 am
Forum: ESP32 IDF
Topic: How to implement custom bootloader
Replies: 2
Views: 292

Re: How to implement custom bootloader

Thank you, it really helped to solve the issue!
by ukrsms
Tue Jul 28, 2020 3:57 pm
Forum: ESP32 IDF
Topic: How to implement custom bootloader
Replies: 2
Views: 292

How to implement custom bootloader

I'd like to override the original bootloader to extend its functions. Guided by the description from https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/bootloader.html I copied the folder /esp-idf/components/bootloader to /my_project/components/bootloader. The page said one shoul...
by ukrsms
Wed Jul 15, 2020 3:33 pm
Forum: ESP32 IDF
Topic: printf crashes within critical section
Replies: 5
Views: 672

Re: printf crashes within critical section

@esp_angus, thank you for the explanation. Can you fill us in on the big picture of what this critical section is protecting? I use the critical section as an alternative for mutex in order to decrease overhead. In the case described I use it inside a function that read ADC value which additionally ...
by ukrsms
Tue Jul 14, 2020 8:49 am
Forum: ESP32 IDF
Topic: printf crashes within critical section
Replies: 5
Views: 672

Re: printf crashes within critical section

Thank you, ets_printf() is the function I usually use to avoid problems within a critical section but is not convenient each time to predict whether the current procedure will or not be used within a critical section. I was hoping some more convenient practice exists. Nevertheless, is it possible to...
by ukrsms
Fri Jul 10, 2020 1:54 pm
Forum: ESP32 IDF
Topic: printf crashes within critical section
Replies: 5
Views: 672

printf crashes within critical section

Several times I faced an issues when my program crases within a critical_section. Each time the cause is linked to printf() function. Recently I found that the program paniced when printf() was called within a critical section and the last case happened when trying to call gpio_config() which yet ha...
by ukrsms
Thu Apr 16, 2020 7:28 am
Forum: ESP32 IDF
Topic: Memory leakage in IDF function
Replies: 7
Views: 3250

Re: Memory leakage in IDF function

No, it doesn't cause problems for the program. It just made me do spend time in order to decide whether I have memory leak in my program or not.
It would be easier if that information was documented (about "lazy initialization")
by ukrsms
Fri Mar 06, 2020 4:49 pm
Forum: ESP32 IDF
Topic: Memory leakage in IDF function
Replies: 7
Views: 3250

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: 7
Views: 3250

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: 7
Views: 3250

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: 7
Views: 3250

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...

Go to advanced search