3,372 questions
0
votes
1
answer
153
views
Problem connecting ESP32 to EMQX MQTT Broker over TLS (Eclipse Mosquito works fine)
I am having connecting to my ESP32-S3 to an EMQX Broker. I am not experienced with TLS security and am very much feeling my way here.
I can successfully connect to Eclipse on local PC over TCP or on a ...
0
votes
0
answers
98
views
ESP32 Can I use MQTTS with TLS and OTA over HTTPS (TLS) at the same time
I have an ESP32 IDF project using version 5.5.0 and WiFi Mesh
My project uses MQTTS currently with Eclipse Broker (using TLS). It also supports OTA updates from an HTTPS server (again TLS)
Can I use ...
2
votes
1
answer
233
views
Getting garbled data from UART on ESP32 from DSMR5 meter
I'm trying to read out my DSMR5 electricity meter on an ESP-WROOM-32. I've connected the 3.3v from the ESP to the RTS on the meter, and connected the ground and TXD from the meter to the ground and ...
0
votes
1
answer
76
views
ESP32 IDF Problem running MQTT with TLS over WIFI MESH
I have 2 ESP32-S3 dev boards with the same software including mqtt5_cfg.broker.verification.certificate loaded. I am using the latest IDF ver 5.5.0
I am running MQTT5 over IDF WIFI Mesh.
If I ...
1
vote
1
answer
132
views
ESP32 run temporary firmware from RAM
Is it possible, ideally by using platformio pio tooling, to write a temporary firmware to an ESP32 and run it until reboot? For example to set a realtime clock, without having to integrate the code ...
1
vote
2
answers
167
views
How to Enable Flash Encryption After Secure Boot V2 is Enabled? [closed]
I’ve successfully enabled Secure Boot V2 on my ESP32 device using ESP-IDF, and everything is working fine. Now, I want to enable Flash Encryption as the next step in securing my firmware.
I’m ...
0
votes
1
answer
211
views
In esp32,Build is failing because of partition table
I am using ESP-IDF v5.4.1.I have a project with custom partition table.When I building that project.When I run idf.py build command,build is getting failed.
Logs of failure:
[110/1369] Generating ../.....
0
votes
0
answers
129
views
AES + RSA OTA updater
I am doing an OTA updater for an ESP32. I am using AWS Lambda to encrypt a presigned URL that is being generated for a certain element from an S3 bucket. I am first doing an AES encryption, and then ...
0
votes
1
answer
70
views
Questions regarding IDF docs description of esp_mqtt_client_init() config parameters
Can someone provide a more helpful description than the docs have of the MQTT esp_mqtt_client_config_t used in esp_mqtt_client_init(), specifically the following 3 parameters:
struct buffer_t
size /...
1
vote
1
answer
139
views
Get open TCP/IP socket count on ESP32 / ESP-IDF
How can I get the number of currently open / active TCP/IP connections on the ESP32 IDF platform?
1
vote
0
answers
118
views
C BARE METAL LEDC pwm module timer on ESP32
I'm new to C and ESP32 too. I currently write functions that generate PWM pulse. It's DOIT ESP32 DEVKIT V1 and the reference manual i'm using here RM. I got stuck here: No PWM pulse out. I've tried to ...
0
votes
3
answers
112
views
Converting a 16 bit audio file to 24 bit for I2S
I am trying to convert a 16 bit audio samples to 24 bit audio samples file for replaying and mixing purposes. I am shifting it to the left by 8 bytes and then send it to the i2s_channel but the sound ...
-1
votes
1
answer
165
views
VS Code: no output from serial monitor but Putty works ok
I'm having problems getting the VSCode serial monitor to work. I don't see any output. If I use Putty, the output is displayed as expected. The app starts:
void setup() {
Serial.begin(115200);
...
3
votes
0
answers
220
views
Using multiple targets in a RustRover workspace
I'm working on a rust app that will be compiled flashed and ran on an ESP32-S3 using the esp-idf-template project, aswell as holding the codebase for a server it will be later communicating to. When ...
-1
votes
1
answer
112
views
What configuration to use for PlatformIO using a Elegoo ESP32 512k ram
I have some of the elegoo esp32 chips But platform IO does not have anything with the same ram as its 512K and all the default boards are only up to 320.KB. What could I select for platormio.ini ...
0
votes
0
answers
49
views
esp_http_server with httpd_req_async_handler_begin crashes
I want My ESP32 to send it's log messages over Wi-Fi. For this I register a uri handler that starts an async response. In principle, this works fine but it crashes at a random moment. Sometimes ...
-1
votes
1
answer
140
views
ESP32 Firebase Realtime Database Upload Not Working — No Data Appears in Database
I am working on an ESP32 project to measure voltage, current, power, and energy consumption using the EmonLib library, and send the data to Firebase Realtime Database. Although my ESP32 is connected ...
1
vote
1
answer
126
views
Out of Memory on ESP32 with Zephyr 4.1
I have a Zephyr 4.1 application that is reading values from an MPU6050 and calculating Roll and Pitch.
I have been developing on a nRF52840DK and it builds correctly, as such I thought I would try ...
2
votes
0
answers
98
views
How to read square waves above 1.5kHz using esp-idf with a ESP32C3 hardware?
I am trying to make a pulse counter with an esp32c3 using esp-idf. But I am hitting a limit that seems too low to be hardware related. So I wanted to share the code that I am using and the performance ...
1
vote
0
answers
98
views
Static DRAM Usage
I’ve read in the ESP32 documentation that:
There is 520 KB of available SRAM (320 KB of DRAM and 200 KB of IRAM) on the ESP32. However, due to a technical limitation, the maximum statically allocated ...
0
votes
1
answer
338
views
Installing ESP-IDF
I've tried to install the ESP-IDF extension through VS Code three times, and also tried using the windows installer first for the independent ESP-IDF environment, and then tried to link that to VSCode....
-1
votes
1
answer
63
views
ESP32 + L293D – Not Moving as Expected
I'm working on a simple 4-wheel robot project. I have a chassis with 4 DC motors connected via an L293D motor driver to an ESP32 board. My goal is to control the robot to move forward, backward, left, ...
0
votes
0
answers
130
views
How do I configure raw_opus_decoder(from esp-adf) to play audio from a simple Python server?
On the server side, load the wav file, read and encode it into raw opus frames with opuslib_next.Encoder, then decode and play using raw_opus_decoder on esp32
Problem: On the server side, no matter I ...
0
votes
1
answer
91
views
platformio.ini for ESP32-S3-MINI-1-N4R2 with TFT or other SPI peripherals
I've designed my own PCB which has an ESP32-S3-MINI-1-N4R2. I can flash a simple blink program to it, and that works fine. But when I start trying to work with my SPI TFT display, it all goes wrong. I'...
0
votes
1
answer
167
views
Very slow write speed in SDMMC 1 bit mode on ESP32 s3
I have an esp32-s3 wroom camera board. I have an Arduino program that takes a picture and save sit on the SD card. Nothing really fancy. It works well, it saves the picture in 1-2 seconds. I didn't ...
0
votes
0
answers
118
views
ESP32 micro-ROS RPLIDAR N10 + MPU6050 publishes /scan & /imu/data_raw but SLAM Toolbox shows “No map received”
I’m building a handheld mapping setup with:
ESP32‑WROVER‑E running micro‑ROS
UART2 → RPLIDAR N10 → publishes /scan (sensor_msgs/LaserScan)
I²C → MPU6050 → publishes /imu/data_raw (sensor_msgs/Imu)
...
0
votes
1
answer
75
views
Why does HTTP POST latency from ESP32 to server fluctuate significantly?
I'm testing an ESP32 device that sends data to a server every minute using HTTP POST. I noticed that the latency fluctuates heavily. For example, in one 20-minute test, the latency values (in ...
0
votes
1
answer
70
views
Signed SPIFFS FS on ESP32C3 with secure boot
I have an ESP32C3 application based on platformio with secure boot enabled, i.e., after booting I read out the following information from the partition table:
Partition Name: nvs Type: 0x01 - Subtype:...
0
votes
0
answers
38
views
ESP32 RFID Sytem Button Issues
`when i scan a card on the rc522 module, it should display the purpose of visit on the OLED display and the user will select one before it starts to send the data on the database. But the code i have ...
0
votes
0
answers
90
views
Allow response 404 and serving compressed files without triggering the captive portal
ESP32, Arduino Framework, using these libraries:
lib_deps=
ESP32Async/AsyncTCP
ESP32Async/ESPAsyncWebServer
https://github.com/guestisp/ESP32AsyncDNSServer.git
here the relevant code:
#...
3
votes
1
answer
334
views
Esp32 bare metal bootloader
After being able to use ledc module and PWM without using idf drivers I am trying to build a very simple bootloader for my esp32 devkit v1.
I am doing it to keep learning low level coding so I don't ...
0
votes
1
answer
243
views
Subscriber issues on ESP32 running Micro-ros
I'm working on a micro-ROS project using ESP32 connected to a PC via serial (USB) at 921600 baud. While the publisher functionality works fine, when I add a subscriber , the ESP32 goes into an error ...
0
votes
0
answers
37
views
Arduino IDE does not find the ESP32-SBC-FabGL board after a necessary downgrade of the ESP32 library. Why?
I'm trying to compile and transfer a sketch (particularly KeyoardScanCodes.ino, but the other example sketches show the same behavior) for my FabGL board (Olimex-ESP32-FabGL) by using the Arduino IDE ...
0
votes
1
answer
42
views
What determines the name of the upload port?
Why am I seeing the serial port designation change? Does it matter? Is it expected?
I click the "Select Port to Use" thing in the VS Code footer:
This opens a dropdown at the top of the ...
0
votes
1
answer
590
views
Esp idf shows hardware nack when communicating with ov7670 camera module over i2c
I am writing a program that reads register value from ov7670 camera module over I2C (SCCB). While I am using driver/i2c.h library the code successfully executes and reads the register value but new ...
0
votes
1
answer
164
views
How do I do softap provisioning for an esp32-c6 in flutter?
I'm trying to write an app in flutter to perform softap provisioning for an ESP32-C6 (https://docs.espressif.com/projects/esp-idf/en/v5.4.1/esp32c6/api-reference/provisioning/wifi_provisioning.html). ...
0
votes
0
answers
37
views
ESP32 FFat fprintf garbage in text file
At first I wrote sketch and it worked. File "info.txt" was created correctly.
Then I tried to rewrite the sketch in the style
File file = FFat.open(path); file.print(message) etc.
But when I ...
1
vote
1
answer
73
views
Update partition tables boot loop
I am working on a patch designed to update the partition tables of an encrypted ESP32 device using a USB connection for the update process. During testing, I've encountered a persistent issue where ...
0
votes
1
answer
136
views
Multiple SPI ports usage on ESP32
I'm fighting with this code to make it work... The aim of it is to control a LoRa module from the hspi pins of the esp32 while the vspi pins will be used by an sd module (not provided in this code).
I ...
0
votes
1
answer
33
views
How to fix Registers with Esp32 and 9dof?
I have the following problem: I'm going to do window detection with the ESP32 and the 9DoF sensor. First, I wanted to put the ESP into deep sleep with the 9DoF. I managed that, see the code, but I ...
-1
votes
1
answer
101
views
ESP32-S3 connecting to SPI Module ILI9488 failing on memory issues
I'm building a project that display data to LCD, for that, I've connected ESP32S3 with 3.5inch SPI Module ILI9488 (SKU:MSP3520).
I'm using 2 libraries to achieve that:
drivers library: GitHub link ...
2
votes
1
answer
224
views
OTA Update of encrypted ESP32 firmware
I want to encrypt my ESP32 firmware with espsecure.py and then update my devices with OTA. Strangely, espsecure.py requires me to pass the partition address:
python espsecure.py encrypt_flash_data --...
0
votes
1
answer
655
views
Resetting the Task Watchdog Timer on ESP32-CAM gives error task_wdt: esp_task_wdt_reset(705): task not found
I hope someone can help we with some errors I get from the ESP-IDF Watchdog Timer functionality.
What I'm trying to do
I'm trying to use an ESP32-CAM to post messages on the Mastodon social network.
...
0
votes
0
answers
94
views
Acknowledging Indication on ESP32 / Arduino BLE Communication
I have an ESP32S3 communicating to a proprietary device via BLE. I can connect to two of the services and underlying characteristics on the device and get notifications just fine. However one of the ...
-1
votes
1
answer
58
views
ESP32 records corrupt WAV file audio
I am using SeedStudio ESP32 Xiao Sense to record multiple samples of audio at once. I modified the sample code to do so. However, for some reason the header is corrupted(not sure for other parts) and ...
1
vote
0
answers
56
views
Very Specific Combination of Servo.write and analogWrite messes up frequencies on esp32 PWM pins
Preface: First time asking a question, please take it easy with the "YOU SHOULD FORMAT YOUR QUESTIONS THIS WAY!"
Question: Why does this happen?
I'm programming an esp32 S3 dev module using ...
3
votes
1
answer
72
views
Difficulty enabling CAN on ESP32
I am currently trying to implement CAN on an ESP32. Here is my code:
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/twai.h&...
0
votes
1
answer
207
views
TI BQ76952 with ESP32 over I2C, can't initialize and get into config mode
I'm trying to solve this problem three days now, I narrowed it down and the root of the problem seems that the device doesn't want to exit sleep and initialize itself based on the reading the 0x12 ...
0
votes
0
answers
209
views
LilyGO with a SIMCom A7670E suddenly returns errorcode 715 (Handshakefailed) when accessing an Azure Function App
My LilyGO TTGO T-SIM-A7670E R2 ESP32 - ESP32-WROVER sudddenly couldn't access my Azure Function App anymore.
It has been functioning non stop for more then 2 months. Without a problem.
And then, out ...
1
vote
1
answer
79
views
Make Connection Not Reset When STA Connects To a New Network
I am making a device that requires web interface and this is how I setup WiFi (inspired by my smart plug):
open AP for devices to connect
make itself's 6.6.6.6 so clients can send request to that IP
...