Questions tagged [esp-idf]

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

377 questions
3
votes
1 answer

Linker error in ESP-IDF framework (undefined reference)

I am learning to write apps on ESP32 platform. When I was trying to compile my code, I got this error from linker: undefined reference to `Serial_Init' Where Serial_Init is a function declared in a file serial_cli.h which is in the same directory…
Filip Pawelec
  • 53
  • 1
  • 6
3
votes
2 answers

(ESP-IDF) Sending .txt file (log data) over BLE? (large file from ESP32 to Android Phone)

I would like to download my log file from the flash of my ESP32 to my Android Phone. I knew that we can only send files with 20 bytes at a time. Hence, I partitioned the file into chunk of 20 Bytes. Here's my code : #define PAYLOAD_CHUNK_SIZE…
3
votes
1 answer

C Buffer pointer

Question I'm currently working with ESP-NOW with the esp-idf. Below is a snippet from their espnow examples. I need some help in identifying what does this line means, but I'm not quite sure what to google. Can someone point me in the correct…
Wb10
  • 89
  • 4
3
votes
1 answer

Analyze ESP32 backtrace on NodeMCU

I'm debugging some crashes on the dev-esp32 branch of the NodeMCU Lua firmware. How do you other NodeMCU devs analyze the backtraces? During normal ESP32 dev the idf monitor handles decoding the backtrace. I've tried to use the IDF monitor with my…
Kit Klein
  • 31
  • 3
3
votes
1 answer

How to install ESP-IDF after installing PlatformIO?

I installed PlatformIO to develop programs for the ESP32. PlatformIO automatically installs "everything" to create ESP-IDF projects. In part that works but some things, like menuconfig, does not work in PlatformIO. I also read here that some code…
Edgar
  • 2,527
  • 2
  • 19
  • 40
3
votes
3 answers

How can I change the stdout baud rate in ESP-IDF?

I wrote a small program on PlatformIO for an ESP32 with ESP-IDF framework. Currently this is connected to my PC with USB cable. I receive lots of data from a CAN-BUS and I print this data with printf() It seems the output with the standard baud rate…
Edgar
  • 2,527
  • 2
  • 19
  • 40
2
votes
2 answers

vTaskCreatePinnedToCore() isn't behaving as expected

I was working with ESP-IDF and I want to run two task at the same time of different cores of ESP32, So I used xTaskCreatePinnedToCore(sensorsTask, "Sensor" , 5000, 0, 0, &sensorTaskHandler,0); xTaskCreatePinnedToCore(storageTask, "Storage", 5000, 0,…
2
votes
0 answers

How can I include ESP-IDF header files when building unit tests with Clang without creating a web of dependencies?

I would like to run unit tests for some ESP32 code I'm writing via the ESP-IDF development framework in VS Code. My unit tests require some simple mocks for the related esp32 components (esp-wifi, esp-netif, etc.). My unit test workflow involves…
georgev93
  • 21
  • 1
2
votes
0 answers

ESP32 - ESP-IDF - Sweep frequency DAC

I'm trying to do sort of a frequency sweep using the ESP32's DAC. Currently I'm not so sure on how to change the frequency without stopping the DAC first. And also stopping the DAC rises an issue since I often get the issue that the DAC has not been…
Mart
  • 475
  • 4
  • 21
2
votes
0 answers

Compile Tensorflow on Platformio ESP-IDF

How do I compile a project with ESP-IDF (ESP32) on Platformio with Tensorflow? It is an existing project with other libraries and custom code. I just want to add tensorflow micro as any other library, normally with git clone into components. I…
Ari Veiene
  • 23
  • 2
2
votes
0 answers

How to get the 64-byte signature from secure element (ATECC608B) in esp-idf

I'm trying to get the 64-byte signature after signing (ATECC608B) from buf, but the returned size is 72, and sometimes varies between 70-72, depending on the size of hash. Any ideas on how I can get hold of the 64-byte signature? ESP_LOGI(TAG, "…
2
votes
0 answers

error while using ESP-IDF MQTT TCP example (0x8001)

One ESP32 is in APSTA mode AP to other ESP32 STA to keep it connecting it to the internet This worked fine after testing it The mosquitto config file is as follows:- listener 1883 allow_anonymous true And on the other, I am trying to use the…
Ohm
  • 21
  • 4
2
votes
1 answer

tm struct converts to wrong time_t

I have the following code to parse a datetime string received from GPS satellites into the struct tm, and then use mktime() to get the epoch from it, the result is correct on my Debian machine, but wrong on my ESP32 with ESP-IDF, do you have any…
Ahmad Mansoori
  • 177
  • 1
  • 11
2
votes
0 answers

How to use GPIO19 and GPIO20 in esp32-S3

I was trying to use the GPIO19 and GPIO20 in esp32-S3 but these pins always stay High, I tried disabling the TinyUSB driver in the esp-idf menuconfig but still, I was not able to use those pins as generic GPIOs. How can I do that? I am using ESP-IDF…
Adharsh K
  • 21
  • 2
2
votes
0 answers

What is the pin assignment for an OV7670 cam with the ESP32-WROVER-KIT?

I have a sketch that takes a picture and sends that picture to a REST interface. This sketch works great on my ESP32-WROVER-DEV board from Freenove. ESP32-WROVER-DEV Now I got the ESP-WROVER-KIT from Espressif and would like to upload the sketch to…
1
2
3
25 26