Official development framework for ESP32 microcontroller (as opposed to Arduino). Abbreviation for Espressif IoT Development Framework.
Questions tagged [esp-idf]
377 questions
13
votes
1 answer
Why do I get the Debug exception reason: Stack canary watchpoint triggered (main)?
I'm writing a program for esp32-wroom-32 using esp-idf-v3.0.
I'm trying to add logs, which will be saved in fatfs.
After some logs I get:
21:54:21.306 -> Debug exception reason: Stack canary watchpoint triggered (main)
21:54:21.306 -> Register…

user2993539
- 375
- 1
- 3
- 14
6
votes
1 answer
Implementing Wi-Fi Direct for ESP32
First, I'm referring to the Wi-Fi P2P standard as described here, and specified here. I'm not referring to the method of creating an AP and station pair.
Second, if an implementation of Wi-Fi Direct for the ESP32 already exists, please share. I've…

Ababwa
- 131
- 1
- 8
5
votes
1 answer
in ESP32 / ESP-IDF - when to use EEPROM vs NVS vs SPIFFS?
I'm fairly new to doing production work on ESP32 microcontrollers, and I'm wanting a little context and nuance from people who've been around the block a few times. So this question is a bit more on that kind of thing rather than a "how do I code X"…

chrispitzer
- 991
- 1
- 8
- 26
4
votes
0 answers
Failed to resolve component 'esp_ipc'
I am configuring a project on an ESP32doitdev board. I am using the native esp32-framework as well as arduino. I am working with the platformio core in order to compile. I am getting an error which resolves to a inter-processor call module in the…

Nick Goralka
- 41
- 4
4
votes
1 answer
How to cleanly tell a task to die in FreeRTOS
I'm making a light with an ESP32 and the HomeKit library I chose uses FreeRTOS and esp-idf, which I'm not familiar with.
Currently, I have a function that's called whenever the colour of the light should be changed, which just changes it in a step.…

Tugzrida
- 491
- 2
- 6
- 17
4
votes
1 answer
Can we reduce ESP IDF boiler plate size?
I tested running bare bones code using ESP IDF on an ESP32 chip using duinotech XC-3800, and obtained the following results in terms of image size.
Analysis Binary Size for ESP32
Folder…

Rijul Gupta
- 1,045
- 13
- 20
3
votes
1 answer
Running Multiple Versions of ESP-IDF concurrently
Just had a go at running up the most recent version of ESP-IDF on my machine. All good.
Current Version = 4.3.2
Latest Version = 5.0.1
I work in Visual Studio, but use the ESP cmd terminal directly to build etc. Haven't managed to figure out the…

monkey
- 1,213
- 2
- 13
- 35
3
votes
1 answer
`.bss' is not within region `ram' error - esp32 ulp risv-v
I'm trying to copy array elements from one array to another.
One of the arrays uses a int32_t index to track the current index.
int32_t pres_log_last_5_readings_raw[5];
int32_t final_arr_pressure[100];
int32_t final_array_index = 0;
for…

shachaf zilberman
- 33
- 4
3
votes
1 answer
How to build multiple configurations of an ESP-IDF application
I have one ESP-IDF application and two hardware boards. I use a preprocessor definition to control which hardware board version to build. For now, I'm modifying the config in the sdkconfig file via menuconfig. But I would like to build both versions…

Scott Eklund
- 33
- 3
3
votes
2 answers
Making HTTPS requests from ESP32
I am making a post request from my ESP32 S2 Kaluga kit.
I have tested the HTTP request while running a server program in my LAN.
I am using
esp_http_client_handle_t and esp_http_client_config_t from
esp_http_client.h to do this.
Now, I have a HTTPS…

Brotchu
- 115
- 1
- 8
3
votes
2 answers
Difference between printf and ESP_LOGI?
I just want to know, what is the difference between esp's ESP_LOGx and printf, related to memory use and its other features.
And which is the best to use for log ESP_LOGI, printf or any other logging function?

horsemann07
- 79
- 1
- 7
3
votes
2 answers
ESP32 esp-idf what is the sdkconfig.ci file used for?
Several of the examples in the esp-idf contain a sdkconfig.ci file (e.g. examples/bluetooth/nimble/blehr).
I understand the usage of sdkconfig.defaults but I can't find any reference to sdkconfig.ci in the Espressif build system API guide.
When…

Martin CR
- 1,250
- 13
- 25
3
votes
2 answers
CMakeLists - How to include a directory of source and header files?
I feel like this question has been asked a bunch of times, but none of the answers I have found seem to be working for me. I'm extremely new to CMake and C/C++ as I come from the world of Java, and am struggling to understand cmake and how it…

The Kaese
- 419
- 5
- 15
3
votes
2 answers
ESP-IDF project with multiple source files
I started my project with a simple "blink" example and used it as a template to write my code.
This example used only one source file blink.c.
Eventually, I want to a use multi source files project and can't figure out how to configure…

Dmitry Kezin
- 105
- 1
- 3
- 10
3
votes
3 answers
Unable to compile ESP-IDF example project
I'm trying to compile my first ESP32 example project.
I set up Visual Studio Code with all the latest tools. (Python, toolschain, etc).
I'm not sure what exactly I need as I'm new in this environment, so maybe I missed something.
I followed the user…

Dmitry Kezin
- 105
- 1
- 3
- 10