What board in Arduino IDE should I select for esp32-wromm-32U?

I tried both "esp32 dev module" and "ESP32-WROOM-DA Module" but none of them seem to be working, when I run a test sketch I get this error message, can anyone please help?


[2024-09-14T19:54:46.496Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
"C:\\Users\\maria\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\openocd-esp32\\v0.12.0-esp32-20240318/bin/openocd" -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s "c:\\Users\\maria\\Documents\\Arduino\\esp8266_wifi_tutorial" -f "C:/Users/maria/AppData/Local/Programs/Arduino IDE/resources/app/plugins/cortex-debug/extension/support/openocd-helpers.tcl" -f board/esp32-wrover-kit-3.3v.cfg
Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
CDRTOSConfigure
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
Info : Listening on port 50001 for tcl connections
Info : Listening on port 50002 for telnet connections
Error: unable to open ftdi device with description '*', serial '*' at bus location '*'
C:/Users/maria/AppData/Local/Arduino15/packages/esp32/tools/openocd-esp32/v0.12.0-esp32-20240318/bin/../share/openocd/scripts/target/esp_common.cfg:9: Error: 
at file "C:/Users/maria/AppData/Local/Arduino15/packages/esp32/tools/openocd-esp32/v0.12.0-esp32-20240318/bin/../share/openocd/scripts/target/esp_common.cfg", line 9
[2024-09-14T19:54:48.200Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed
GDB server session ended. This terminal will be reused, waiting for next session to start...

Hi @syr_maria. What exactly were you attempting to accomplish when you encountered this error message?

I ask because this error message indicates you are clicking the "Start Debugging" button in Arduino IDE, but you don't mention anywhere in your post that you were actually attempting to use the Arduino IDE 2.x integrated sketch debugger.

Screenshot 2024-09-14 at 16.49.23

I am just getting started to learn, and I wanted to run this test code
/*********
Rui Santos
Complete project details at Getting Started with VS Code and PlatformIO IDE for ESP32 and ESP8266 | Random Nerd Tutorials
*********/

#include <Arduino.h>

#define LED 2

void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(LED, OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:
digitalWrite(LED, HIGH);
Serial.println("LED is on");
delay(1000);
digitalWrite(LED, LOW);
Serial.println("LED is off");
delay(1000);
}
,its from this tutorial Getting Started with ESP8266 NodeMCU Development Board| Random Nerd Tutorials

so I uploaded it, and when I upload it I get this error mesaage

Variables and constants in RAM (global, static), used 28184 / 80192 bytes (35%)
║   SEGMENT  BYTES    DESCRIPTION
╠══ DATA     1496     initialized variables
╠══ RODATA   944      constants       
╚══ BSS      25744    zeroed variables
. Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 60267 / 65536 bytes (91%)
║   SEGMENT  BYTES    DESCRIPTION
╠══ ICACHE   32768    reserved space for flash instruction cache
╚══ IRAM     27499    code in IRAM    
. Code in flash (default, ICACHE_FLASH_ATTR), used 236212 / 1048576 bytes (22%)
║   SEGMENT  BYTES    DESCRIPTION
╚══ IROM     236212   code in flash   
esptool.py v3.0
Serial port COM4
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal esptool.py error occurred: Failed to connect to ESP8266: Timed out waiting for packet header

So this is why I was trying to debug.
Any tips or help, please? :frowning:

Esp32 dev module should be fine.
Non of your tutorials linked are for you, first one is not for arduino ide and second one is not for esp32.
Try this:

Hold down the boot button while uploading

for 1 second or so and release (once 'Uploading'... begins)