• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

esp32 wont work

Q&A Forum › Category: ESP32 › esp32 wont work
0 Vote Up Vote Down
Andrew Garello asked 5 years ago

when I first plugged esp32 in it blinked continuously, but couldn’t get the program (blink) to talk to it.  Now it doesn’t blink and still can’t get outputs to work.

I loaded esp32 from board manager

Copied and loaded two different programs to Arduino.  Selected DevKit as on the back of my esp.

Pinout is the same as in the course.

program compiles but red java stuff below.

"Sketch uses 207705 bytes (15%) of program storage space. Maximum is 1310720 bytes.
Global variables use 15228 bytes (4%) of dynamic memory, leaving 312452 bytes for local variables. Maximum is 327680 bytes.
java.lang.NullPointerException
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingProgrammer(SerialUploader.java:295)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:90)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77)
at processing.app.SketchController.upload(SketchController.java:732)
at processing.app.SketchController.exportApplet(SketchController.java:703)
at processing.app.Editor$UploadHandler.run(Editor.java:2047)
at java.lang.Thread.run(Thread.java:748)"

please advise

Andy

9 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi Andrew.
I think that Java stuff is normal and your code was successfully uploaded to your board. Do you see the “Done Uploading” message below the IDE?
What do you mean by you cannot”couldnt get the program (blink) to talk to it.”?
Are you referring to the serial monitor?
What sketches did you try uploading to the ESP32?
After uploading the code to your ESP32, you need to press the on-board EN button to reset the ESP32 and actually run the program.
Regards,
Sara
 

0 Vote Up Vote Down
Andrew Garello answered 5 years ago

Hi Sara, thanks for replying.
When I didn’t have luck with the pushbutton program, I reverted to the simpler “blink esp32”
/*
Blink
*/
// ledPin refers to ESP32 GPIO 23
const int ledPin = 23
;
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin ledPin as an output.
pinMode(ledPin, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(ledPin, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(ledPin, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
In this  instance I have ground from esp going to 330 resistor.  Resistor to LED and long lead on LED going to pin23 on the ESP32.  To check the LED I first removed the pin 23 lead and jumpered over with 3.3v to the long lead and the light worked., but no output from pin 23.
Just tried it again pressing the button – No luck
I also tried holding the boot button while uploading-no luck
Andy

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi again.
But I still don’t understand some issues.
Do you see the “Done Uploading” message below the IDE? What happens when you try to compile the code?

0 Vote Up Vote Down
Andrew Garello answered 5 years ago

No, when I compile the message on the green bar says “done compiling”, but when I upload all those java things come up and stop , but the message continues to say “uploading”
Andy

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi again.
I’ve found this issue: https://forum.arduino.cc/index.php?topic=442771.0
Seems to be the same as yours. Follow the suggestions and see if you can get it working properly.
I hope this helps.
Regards,
Sara

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi.
I think this is the same issue as yours: https://rntlab.com/question/arduino-ide-2/
Regards,
Sara

0 Vote Up Vote Down
Andrew Garello answered 5 years ago

Hi Sara,
Thanks for following up.  My answer turned out to be somewhere in between.  First I downloaded the windows zip file instead of going through microsoft store.  Now my arduino uno worked with its own com.  Then I went back through your load procedure and used a slightly different board. (there were different ones there but not the one I had originally picked.)  I did the wi-fi program and got a java error.   Then I pressed the boot button while uploading and wala! it worked.  Saw 3 networks when I did the printout.  But then I downloaded the Blink program and got another error.
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
Then went looking again and found this from your tutorials
https://randomnerdtutorials.com/solved-failed-to-connect-to-esp32-timed-out-waiting-for-packet-header/
So either pressing the en button or the boot button while loading seems to work and I will solder a 10 mf cap across the board (I’m familiar with all that).
Thanks again.  Maybe you can point others to this solution.
Andy

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

I’m happy that you’ve solved your issue.
If you don’t have any more problems, I’ll mark this issue as resolved.
If you need any help, you just need to open a new question in our forum.
Regards,
Sara

0 Vote Up Vote Down
Andrew Garello answered 5 years ago

Thank you,
Great service
Andy

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.