Page 1 of 1

ESP32-H2-DevKitM-1-N4 not working after first LED example program upload.

Posted: Wed Sep 04, 2024 5:33 pm
by majkel
Hello Guys,

Recently, I decided to start my adventure with esp32 boards. I bought ESP32-H2-DevKitM-1-N4 equipped with ESP32-H2-MINI-1 module. I go for Arduino IDE as the easiest way to start playing around with this board. I installed the drivers and managed to successfully connect to the device. I uploaded Blink example which looks like below:

Code: Select all

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(1000);                      // wait for a second
  digitalWrite(LED_BUILTIN, LOW);   // turn the LED off by making the voltage LOW
  delay(1000);                      // wait for a second
}
The program was working as expected. Unfortunately, after this first upload the board stopped responding. Just red led is On. Every time I try to upload new sketch to the device following error message appears:
A fatal error occurred: Could not open /dev/cu.SLAB_USBtoUART, the port doesn't exist
Failed uploading: uploading error: exit status 2
When I connect the board to PC, two new ports popup. So, I understand that UART chip is working fine. I tried to upload the sketch using both of them but to no avail. I tried to keep the Boot button pressed when Connecting info appears but it doesn’t help neither. What is also unusual is that when I press the Reset button the LED is not blinking according to the program that was on the board (I expect that the GPIO8 multicolour LED will work as programmed once).

Any ideas what could be the problem? I didn’t connect any external hardware to the pins. I’m just using esp board connected with same cable to my Mac. Is it possible that the ESP32 module was faulty and don’t work after first programming routine?

Thank you in advance for your help,
Majkel

Re: ESP32-H2-DevKitM-1-N4 not working after first LED example program upload.

Posted: Thu Sep 05, 2024 1:58 am
by ESP_Sprite
Not sure what the issue is; for some reason the program may be touching the pins that are otherwise used for USB but I see no evidence of that. Regardless, you can always force an ESP32 back into bootloader mode by holding the BOOT button and pressing the reset button (after which you can release the BOOT button).

Re: ESP32-H2-DevKitM-1-N4 not working after first LED example program upload.

Posted: Mon Sep 09, 2024 4:22 pm
by majkel
Hello ESP_Sprite, thank you for your answer.
I tried to reset the bootloader by pressing the Boot button followed by Reset press and Boot release but it didn't change anything. I tried it multiple times but with no success. During the tries, I was connected via a screen command tool to see the output from the device. Unfortunately the window remained empty.
Later I tried to use the online reset tool: https://espressif.github.io/esptool-js/ but device was not accessible via this interface too.

Any additional ideas to check?

Re: ESP32-H2-DevKitM-1-N4 not working after first LED example program upload.

Posted: Thu Oct 24, 2024 1:39 am
by teicoba
Did you fix?