Search found 302 matches

by mbratch
Tue Jan 24, 2023 3:09 am
Forum: ESP-IDF
Topic: Memory leakage: esp_partition_write
Replies: 4
Views: 1784

Re: Memory leakage: esp_partition_write

The semaphores are implemented an working, I just omit those pieces of code just to keep it clean. So they don't allocate any dynamic resources? The solution you say is to add a 'free(write_buf);' in the partition_linux.c function? I'm not quite saying that. What I noticed is that there is one erro...
by mbratch
Mon Jan 23, 2023 7:57 pm
Forum: ESP-IDF
Topic: Memory leakage: esp_partition_write
Replies: 4
Views: 1784

Re: Memory leakage: esp_partition_write

You have comments that give/take a semaphore but no code that does anything with semaphores. Did you just omit that code in your post, or is there really no code there that is being executed in your memory leak scenario? Is `write_value_to_flash` the only thing you are commenting out when you have t...
by mbratch
Mon Jan 23, 2023 7:52 pm
Forum: ESP-IDF
Topic: Wifi provisioning manager
Replies: 1
Views: 1229

Re: Wifi provisioning manager

Looks to me like the example just hasn't been updated. I use `esp_event_handler_instance_register` in my wifi provisioning code.
by mbratch
Mon Jan 23, 2023 6:09 pm
Forum: ESP-IDF
Topic: Default flash set at 2MB
Replies: 1
Views: 1257

Re: Default flash set at 2MB

I have mine set to "4MB" and I don't have any issues. I must have changed it at the beginning of my project. I use various features of the ESP32 and haven't noticed any limitations or issues.
by mbratch
Mon Jan 23, 2023 4:29 pm
Forum: ESP-IDF
Topic: Is there a reason bool and float aren't supported in nvs_flash?
Replies: 2
Views: 1753

Re: Is there a reason bool and float aren't supported in nvs_flash?

It does seem a little arbitrary. Maybe the developers considered the integer types as being the most common (?). I chased down various predefined functions and it seems that, under the hood, it ultimately treats each as a small binary object (bsob? haha) whose length is sizeof(T) where T is the type...
by mbratch
Mon Jan 23, 2023 4:00 pm
Forum: ESP-IDF
Topic: Installing ESP-IDF.
Replies: 11
Views: 6586

Re: Installing ESP-IDF.

I'd like to point out that the official and supported way to install ESP-IDF on Windows is the Windows Installer: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/windows-setup.html#esp-idf-tools-installer This is the way I install it (on Windows), after having tried other me...
by mbratch
Mon Jan 23, 2023 3:49 pm
Forum: General Discussion
Topic: ESP-32 keeps resetting
Replies: 12
Views: 8425

Re: ESP-32 keeps resetting

stnmane wrote:
Sun Jan 22, 2023 4:05 am
I have a esp32-wroom-32d module that ive been using and programming using ESP-IDF.
Today during a power up, the device stopped working and kept resetting. The error code is the following:
Was the identical code working previously? Or was anything changed prior to this error appearing?
by mbratch
Mon Jan 23, 2023 3:43 pm
Forum: General Discussion
Topic: No HTTP response
Replies: 1
Views: 972

Re: No HTTP response

Apologies for the stackoverflow-ish reply, but if you want others to read through all that code, as a courtesy to them, you should at least properly indent it and use the "Code" option in the editor to give it a fixed font to make it a bit easier to read.
by mbratch
Mon Jan 16, 2023 8:45 pm
Forum: ESP-IDF
Topic: Problems while compiling the project Hello_World
Replies: 33
Views: 31387

Re: Problems while compiling the project Hello_World

The only thing that could be deduced based upon this information so far is that your ESP-IDF environment isn't installed properly. It's impossible to determine more than that without knowing some fundamentals: What platform are you using? (Windows or Linux) What did you do to install the ESP-IDF env...
by mbratch
Mon Jan 16, 2023 6:31 pm
Forum: ESP-IDF
Topic: Problem using the method esp_flash_get_size
Replies: 4
Views: 2287

Re: Problem using the method esp_flash_get_size

I guess I should have asked this initially to be sure... are you using external SPI flash component? There are different manufacturers and there are differences in the SPI commands in some cases. Thus, there's a bit of work required on your part to configure it to your specific needs. The documentat...