I have no idea how this happened. I was testing my codes when i thought about changing the delay between the results in the loop so I changed it but it never got uploaded later instead all I saw was this error message which I tried to solve by restarting the application and pc. Maybe I didnt understand the problem quiet well. Can someone tell me a solution to make flash work again in this board?
Error is:
Sketch uses 261025 bytes (19%) of program storage space. Maximum is 1310720 bytes.
Global variables use 21344 bytes (6%) of dynamic memory, leaving 306336 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port COM8
Connecting..........
Chip is ESP32-D0WD-V3 (revision v3.1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: b0:a7:32:c7:f2:e0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x0004ffff...
Compressed 18992 bytes to 13110...
Writing at 0x00001000... (100 %)
A fatal error occurred: Serial data stream stopped: Possible serial noise or corruption.
Failed uploading: uploading error: exit status 2
Sure there are a lot of things you can do.
If you want straight forward advice you have to provide more information straight forward.
The most important thing that you can do is provide sufficient information by answering questions
The more details you provide at once the more things can be checked at once
If you prefer short-messaging the result will be a looooong time taking thread.
Did you try with a different USB-Cable?
Provinding sufficient information is to write down more words than just
"Yes I did"
write "Yes I tried with another USB-cable" the result is:_________________
What exact board have you chosen in the Arduino IDE? Post a screenshot of your Arduino-IDE
Post a picture of the "not working" ESP32
For posting pictures you have to do a few things that are easy to do
You have to reach trustlevel 1 through these activities:
Get to trust level 1 by…
clicking on 5 different threads
reading 30 postings (they must have been visible on the screen
beeing a minimum time of 10 minutes in the forum
adjust the Arduino-IDE to print out most verbose details about the upload-process by like shown in this tutorial
I moved your topic to a more appropriate forum category @tirthkamdar.
The Nano ESP32 category you chose is only used for discussions directly related to the Arduino Nano ESP32 board.
In the future, please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.