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

majkel
Posts: 2
Joined: Wed Sep 04, 2024 5:06 pm

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

Postby majkel » Wed Sep 04, 2024 5:33 pm

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

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Thu Sep 05, 2024 1:58 am

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).

majkel
Posts: 2
Joined: Wed Sep 04, 2024 5:06 pm

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

Postby majkel » Mon Sep 09, 2024 4:22 pm

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?

teicoba
Posts: 1
Joined: Thu Oct 24, 2024 1:36 am

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

Postby teicoba » Thu Oct 24, 2024 1:39 am

Did you fix?

Who is online

Users browsing this forum: Google [Bot] and 45 guests