-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP32 Build/Compile/ Example sketches work nothing else & no execution #7821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@Surfacve -
It means that the compilation and upload had success. |
Hi @SuGlider sure, I would agree with you, everything looks perfect, the libraries, resolve, I don't get a fatal/ELF/build error, but for such a simple program, the expectation is that the terminal/serial monitor will print The issue is that no matter what I do, delete the rest of the code for example and compile, leaving just void setup as print begin, and void loop as print end, the serial monitor outputs nothing. If you have an S3, or if anyone has an S3, please attempt because I am confused! |
Okay, two things have happened since. I have been continuous flashing the Adafruit ESP32 S3 with the wifi scan and I came up with two random errors. The most recent one was after the hard resetting:
The second error is a build error that I hadn't seen before:
I read this might have to do with the board installation! |
I tested a S3 with USB port and uploaded a simple sketch that prints "loop..." in the I see no issue so far. |
Hi I have the exact same settings. I have noticed something. Since I have you attention. Sometimes, when I plug in the s3, the Arduino IDE assigns the board random different board names. For the time being, this board has been stable in flash mode (as ESP32 S3 Dev Module) and in run mode it comes up as (Adafruit Feather ESP32-S3 2MB PSRAM) , but sometimes, the port name would be a random ESP32S3 board from the board manager. This has subsided since I deleted Arduino and reinstalled the boards in the board manager a number of times. Test results, I have made a blank sketch as standard run the same code. Serial.begin(115200); void loop() {
I cam across this thread/issue on github here. about this error being a broken JSON file, but I am confused, why would this problem not affect example sketches. I have looked on my PC and I do have this Arduino15 folder structure, I also have 3 instances of the IDE, the 2.0.0 Beta, 1.8.19 and the IDE 2.0.3. |
The S3 has in the same USB plug pins, two different modes: Hardware Serial JTAG/CDC and Native USB OTG. Each of those modes, when the is plugged or the sketh is running may change the name of the device in Windows.
The Serial USB CDC COM port will be availble only after Windows is able to enumerate the USB device. This may explain the issue. Remember to alway close and open a new Serial Terminal window after uploading or reseting the board. This is bug in the IDE that should treat it correctly. |
Hi @SuGlider thank you for your insight. What I am experiencing isn't plug and play behaviour of these boards and that is frustrating because it makes them unreliable. I stress tested it this past weekend and it just won't work reliably. (I use both platformIO VSCode) and Arduino IDE. |
Another way to go it to always put the S3 in Upload Mode before starting the IDE upload process. |
I'm closing this issue as expired, if needed you can reopen. |
Board
Adafruit ESP32 S3 2MB PSRAM
Device Description
Adafruit feather
Hardware Configuration
I2C device, AdafruitMotorshield
Version
latest master (checkout manually)
IDE Name
Arduino IDE 1.8.19
Operating System
Windows 10
Flash frequency
80Mhz
PSRAM enabled
yes
Upload speed
921600
Description
Example sketches function, Anything else does not function. If I make a simple blink sketch, it will not function outside of the examples. The code will compile, the sketch will upload, the IDE sees the port changes depending on the board state, everything works fine.
I have verbose for example upload vs a custom sketch upload, I can not see any fatal errors or issues that would cause this behaviour, code uploaded other than the example sketches eventually does not Execute at all. I have tried to read through the verbose but I just cannot see anything that is wrong that I should be aware of, as it stands, I am using the version 2.0.6 in the board manager. I'm not sure how I can move foward with this project, this code functions fine on every other arduino compatible board (tested on teensy 4.0,4.1) The verbose from the terminal in arduino is just immense, I imbedded it into Microsoft word and at 181 pages @7118 words, I'm not sure why this amount of verbose is coming out. I have attached both the verbose of the successful wifi scan and the custom sketch as a zip.
What am I missing?
verbose attached as cpp files using visual studio.
Custom sketch verbose.zip
Sketch
Debug Message
Other Steps to Reproduce
I have tried to compare the example files with my code, but I am no longer sure what to be looking for. The Board is functional, the wifiscan works, compiles, and uploads as instructed. Every code made as a new sketch, compiles, uploads, but the board will not do anything.
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: