ESP-WROOM-32 error

Hi all.

An Arduino newbie here.

I have a ESP32S ESP32 ESP-WROOM-32 Development Board 2.4GHz Dual-Core WiFi +Bluetooth 2 Function Microcontroller for Arduino

Arduino: 1.8.19 (Windows 7), Board: "ESP32-WROOM-DA Module, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None, Disabled"

I bought it here: https://www.amazon.com/gp/product/B09J95SMG7/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1

My sketch is not compiling and giving me an error.
I got my sketch from: ESP NOW - Peer to Peer ESP32 Communications
( I ran this same sketch on a different windows computer a few weeks ago, with the same hardware and sketch. It work perfectly then).

My sketch is below and the error file was so long I am attaching it as a text file.
ugyui.txt (141.1 KB)

I would like input on how to fix this issue.

Ty

/*
  ESP32 MAC Address printout
  esp32-mac-address.ino
  Prints MAC Address to Serial Monitor

  DroneBot Workshop 2022
  https://dronebotworkshop.com
*/

// Include WiFi Library
#include "WiFi.h"

void setup() {

  // Setup Serial Monitor
  Serial.begin(115200);

  // Put ESP32 into Station mode
  WiFi.mode(WIFI_MODE_STA);

  // Print MAC Address to Serial monitor
  Serial.print("MAC Address: ");
  Serial.println(WiFi.macAddress());
}

void loop() {

}

This is the OP. I solved the problem by changing the upload speed to 115200. In all my life I never had to mess around with the upload speed. I just hit upload, and all went smooth.

This is the OP again. The sketch compiles but when I tried to upload it, it threw me a new error!!!

Global variables use 42256 bytes (12%) of dynamic memory, leaving 285424 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port COM21
Connecting......................................

A fatal error occurred: Failed to connect to ESP32: Wrong boot mode detected (0x13)! The chip needs to be in download mode.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
the selected serial port For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
 does not exist or your board is not connected

This is how I solved this issue:

I continuously pushed down the right button on the board and then clicked on Upload. I let go the button only after it said Hard resetting pins or something like that. It uploaded properly.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.