ESP32-H2-DevKitM-1-N4 not working after first LED example program upload.
Posted: 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:
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:
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
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
}
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).A fatal error occurred: Could not open /dev/cu.SLAB_USBtoUART, the port doesn't exist
Failed uploading: uploading error: exit status 2
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