Questions tagged [esp-idf]

Official development framework for ESP32 microcontroller (as opposed to Arduino). Abbreviation for Espressif IoT Development Framework.

377 questions
0
votes
0 answers

How to change SPI Flash size in ESP32 in eclipse?

In my eclipse console Auto-detected Flash size: 4MB is showing but in the terminal I (55) boot: SPI Flash Size : 2MB which is giving error because the partition table requires 4MB. And strangely this was not the problem a week ago, everything was…
lalitahuja
  • 105
  • 1
  • 4
  • 13
0
votes
1 answer

"sprintf" error in esp-idf. gcc version 9.1.0 in msys2

I was using msys2 earlier with gcc 6.4.0 and was working for my project. I upgraded the toolchain and gcc to 9.1.0. Now I am getting this error: small part of code: memset(payload, 0, 8192); sprintf(payload, "GET %s%s HTTP/1.1\r\n",…
0
votes
1 answer

msys2 error in installing requirements.txt for ESP-IDF

I am trying to install the requirements.txt using "pip install -r requirements.txt" for ESP-IDF in msys32 but getting this error. $ pip install -r requirements.txt failed to create process (C:\msys32\mingw32\bin\python2.exe…
0
votes
1 answer

Error while building aws_iot (thing shadow) example in release/v4.2 SDK

Hey everybody, In the release/v3.3 there exists an aws_iot example which does not exist in release/v4.2 of esp-idf. So I copied the aws_iot (thing shadow) example and made desired changes according to my requirement in…
0
votes
1 answer

Button counter with interrupt

I want to increment a variable every second when an interrupt is triggered. Code on esp32, esp-idf. I have connected a button, when the button is pressed I want to count the number of seconds. I did this using polling function, but I want to learn…
DDBE
  • 325
  • 3
  • 13
0
votes
0 answers

Maximum tcp client connection number does not increase

A tcp server is established in Esp32(station mode). I accept the clients with the code below. int sock = accept(listen_sock, (struct sockaddr *)&source_addr, &addr_len); if (sock < 0) { ESP_LOGE(TAG, "Unable to accept connection: errno %d",…
Qwe Qwe
  • 399
  • 4
  • 13
0
votes
1 answer

How does ble_gatts_chr_updated in NimBLE get the characteristic's value?

I am writing a BLE peripheral using the NimBLE API in esp-idf. All the code I can find store values of characteristics in variables, not in anything NimBLE can access. However, there is the function ble_gatts_chr_updated in…
Joonazan
  • 1,408
  • 10
  • 18
0
votes
2 answers

How to fix this Firebase message format sent from ESP32 (Arduino, ESP-IDF - all text, no Firebase library used)

I'm trying to get this code below to work which was working perfectly a year ago the last time I tried it. After running it I receive no notification in my app. Using in Arduino IDE on ESP32 module. No changes were made at all to the sketch that was…
wdbwdb1
  • 195
  • 2
  • 9
0
votes
1 answer

espidf COMPONENT_DIR

I'm trying to compile a simple Hello_world example using the Smooth component (https://github.com/PerMalmberg/Smooth), and get error: include could not find load file: ../lib/compiler_options.cmake. It seems that COMPONENT_DIR is not set, but I'm…
0
votes
1 answer

Unable to build project for ESP32

I am trying to build project esp-obd-emulator I always get the following error, maybe someone can help me with that. I am using esp-idf to build project. C:\Users\edvar\Desktop\esp-idf-2\examples\emu>idf.py build Checking Python…
user2996120
  • 67
  • 1
  • 10
0
votes
1 answer

C array declaration with inline assembly

I recently came upon this snippet: extern const uint8_t server_root_cert_pem_start[] asm("_binary_server_root_cert_pem_start"); // ^^^^^^^^^^^^^ what's going on here? in the esp-idf examples(line 74).…
Lorah Attkins
  • 5,331
  • 3
  • 29
  • 63
0
votes
2 answers

esp-idf path doesn't override when esp-iot-solution repository is used

I have cloned the esp-idf-solution repository and followed the instructions in readme.md file. I already have esp-idf repository cloned before and can compile and flash successfully. But when I try to compile the new examples in esp-iot-solution it…
Abishek
  • 369
  • 4
  • 21
0
votes
2 answers

What is the least delay "yield" like call?

The getting started examples in Espressif's esp-idf are hello-world and blink. Hello-world outputs prints then calls esp_restart(); - so it is in it's own special infinite loop. The blink example (with comments removed) has this app_main, which is…
NULL pointer
  • 1,116
  • 1
  • 14
  • 27
0
votes
1 answer

how to solve aws connection error for esp32

I am getting the following error while connecting ESP32 with AWS IOT:- (error attached following) I went thru many links but was not able to solve the issue. I have generated valid certificates that are…
Anju
  • 3
  • 1
  • 5
0
votes
1 answer

esp32 printf channel through uart (esp-idf)

I try to disable all logs on my program, I did disable esp logs but when I use printf in my channel and open make monitor printf still works. how and why? I want to disable it.
daniel
  • 151
  • 1
  • 13