Questions tagged [esp32]

For issues relating to the ESP 32 Wi-Fi and Bluetooth combo chip of Espressif.

The ESP32 is a 2.4 GHz Wi-Fi and Bluetooth combo chip from Espressif and the successor to the . It is designed for mobile, wearable electronics, and Internet-of-Things (IoT) applications.

Resources:

The CPU itself is based on the Xtensa ISA. Use for questions about Xtensa assembly language, ISA, and gcc options. But not for problems compiling / linking with the ESP32 SDK; that's specific to the vendor-supplied SDK not really the ISA.

2859 questions
5
votes
1 answer

PlatformIO on VSCode not compiling: collect2.exe: error: ld returned 1 exit status

I recently had to wipe my computer and after getting everything up and running it was time to open up some ESP32 programs I was working on before and found that Platform IO on VSCode would no longer compile. After running through the compiler I get…
Lloyd Richards
  • 330
  • 3
  • 12
5
votes
2 answers

How do you build a BLE app when you don't have access to the official GATT XML files?

To build a BLE app, you need service UUID the service's characteristic UUIDs the characteristic's permissions (read / write / notify ...) If you are sending any data, you need to know the value type (uint8_t, uint16_t ...) For an instance, if it…
kukrt
  • 2,117
  • 3
  • 21
  • 32
5
votes
2 answers

"Lost bytes" when sending image from ESP32 to Android Studio via Bluetooth

First time asking here. I'm currently facing an issue with sent pictures taken from and ESP32 CAM to my Android Studio app. Although the picture is received, it's most of the time not complete, or it shows some gray areas as shown on here in the…
5
votes
1 answer

Write data to ESP32 over USB connection with MicroPython

I have an ESP32 connected to a computer via USB port. I can use the ESP32 to send data over the serial connection using the print statement, I need to periodically write commands into the ESP32. How do I read what is coming over the COM port on the…
Mike C.
  • 1,761
  • 2
  • 22
  • 46
5
votes
2 answers

Difference between C++ mutex and RTOS xMutex

I'm experimenting with locking on an ESP32. Apparently, there are different ways to implement a lock: There is the default C++ mutex library: #include std::mutex mtx; mtx.lock(); mtx.unlock(); And there is the implementation from…
Falko
  • 17,076
  • 13
  • 60
  • 105
5
votes
2 answers

Write String to permanent flash memory of Arduino ESP32

I want to write some text into the flash memory of an Arduino ESP32. It works kinda but not as I want it to. void writeString(const char* toStore, int startAddr) { int i = 0; for (; i < LENGTH(toStore); i++) { EEPROM.write(startAddr + i,…
DrEichenbach
  • 382
  • 1
  • 2
  • 13
5
votes
1 answer

Try to send image file to PHP with HTTPClient

I got this after I try to running my code on esp32 Notice: Undefined index: imageFile in C:\xampp\htdocs\acc.php on line 23 My code on esp32 HTTPClient http; http.begin("http://192.168.43.86/acc.php"); //Specify destination for HTTP…
GuyFromSky
  • 87
  • 1
  • 2
  • 8
4
votes
1 answer

No serial data received: ESP32 CAM

I keep getting error as I upload my code to my AI thinker esp 32 cam. I connect it using microusb and it always has this error: A fatal error occurred: Failed to connect to ESP32: No serial data received. For troubleshooting steps visit:…
me-hapi
  • 69
  • 1
  • 4
4
votes
1 answer

Rust on ESP32 - How to send (and receive) data using the MQTT protocol to AWS IoT (Core)?

First off: I know running Rust on an ESP32 isn't a very common practice yet, and some (quite a bit of) trouble is to be expected. But I seem to have hit a roadblock. What works: flashing and running the code on an ESP32 passing along the…
Nico V
  • 107
  • 1
  • 9
4
votes
2 answers

unable to flash esp32. the port doesn't exist

I've been trying to flash esp-wroom-32 for a long time, but I can't seem to get it. idf.py throws this error: Serial port /dev/ttyUSB0 A fatal error occurred: Could not open /dev/ttyUSB0, the port doesn't exist CMake Error at…
4
votes
2 answers

A fatal error occurred: Failed to connect to ESP32: Invalid head of packet (0x00)

I tried all the google solutions, It seems like RST button doesn't actually reset. Just red led blinking all the time, and no serial output or anything I'm working on Windows 10, ESP32 Dev Module ,on COM4 ,Default 4MB with spiffs (1.2MB APP/1.5MB…
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…
4
votes
1 answer

ModuleNotFoundError: No module named 'machine'

when I try to control my esp32 microcontorller with micropython I get the following error: File "c:/Users/supre/Documents/Python Programme/micropython/blinktest.py", line 1, in from machine import Pin ModuleNotFoundError: No module…
user15309583
4
votes
1 answer

What are the files boot_app0.bin and bootloader_dio_80m.bin for? (ESP32 - Arduino IDE)

The ESP32 flash command, as executed by the Arduino IDE, seems to flash two bootloader files: boot_app0.bin at offset 0xe000 and bootloader_dio_80m.bin at offset 0x1000. I wonder what these two bootloader files actually do, and why there are two of…
K.Mulier
  • 8,069
  • 15
  • 79
  • 141
4
votes
3 answers

ESP32-CAM fastest way to stream video output to nodejs server with socketIO

I would like to stream video camera from ESP32-CAM to web browser. To do so, I use a nodejs server (to broadcast video and serve html) and SocketIO to communicate (between ESP32-CAM -> nodejs and nodejs -> web browser). In this way, this avoid…
Inglebard
  • 427
  • 5
  • 14