Ask Your Question
3

How can the current program on ESP32 that is controlled by Arduino be removed?

asked 2022-01-09 11:00:00 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-08-21 02:00:00 +0000

qstack gravatar image

To remove the current program on an ESP32 that is controlled by Arduino, you can do any of the following:

  1. Use the Erase Flash routine in the Arduino IDE: This option will erase the entire flash memory of your ESP32, including the current program, settings, and data. To perform the erase flash routine, follow these steps:

    • Connect your ESP32 to your computer using a USB cable.
    • Open the Arduino IDE.
    • Click on the ESP32 board in the boards manager.
    • Select the port your ESP32 is connected to.
    • Go to Sketch > Upload Using > Erase Flash > All Flash Contents.
    • Wait for the process to complete.
  2. Use the esptool.py command-line tool: This tool can be used to erase the flash memory of your ESP32 using the command-line interface. To use this tool, follow these steps:

    • Install Python on your computer if it's not already installed.
    • Install the esptool.py tool by running the command pip install esptool in your terminal or command prompt.
    • Connect your ESP32 to your computer using a USB cable.
    • Open a terminal or command prompt and navigate to the directory where esptool.py is installed.
    • Run the command esptool.py --port PORT_NAME erase_flash where PORT_NAME is the name of the port your ESP32 is connected to.
    • Wait for the process to complete.
  3. Use a JTAG debugger: A JTAG debugger can be used to erase the flash memory of your ESP32. This may require additional hardware and software, and is typically used by advanced users or developers. To use a JTAG debugger, follow these steps:

    • Connect your JTAG debugger to your ESP32.
    • Open the software that comes with your JTAG debugger.
    • Use the software to erase the flash memory of your ESP32.

Note: Remember to always backup your projects before erasing flash memory as these methods will erase all previously stored data.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-01-09 11:00:00 +0000

Seen: 10 times

Last updated: Aug 21 '21