Solution to esp8266 failed to burn firmware-clear flash

Sometimes we will encounter it when we burn the firmware for esp8266. After clicking burn, the blue light of the development board also flashes, and then the progress bar also moves forward, but

The progress bar has been stuck in one place, it will not move, and then try again. At this time, we usually use the method of clearing the flash to solve the problem.

After the flash is cleared, the firmware can be burned and the program can be downloaded again.

So, let's connect the development board to the computer, and secondly, we need to check the port, not to go into details, you can see through the device manager, which is your board

It is connected to the port, wait a minute, we will use it when we clear it.

1.First of all, we need to install and configure the python development environment. This will not be elaborated. There are many tutorials on Baidu, and python2 is generally installed.

2. Install pip.

3. Install esptool and pyserial.

4.To enter the upgrade mode of the development board, press the flash button first, then press the reset button, wait for two seconds to send the reset button, and then release the flash button.

5. In the command line mode, execute esptool --port comX erase_flash

What is your com port, just fill in that X.

Take a look at the renderings:



 

Guess you like

Origin blog.csdn.net/qqliuzhitong/article/details/114314920