T-Display-S3 ESP32S3: How to reset to factory settings after Burn Bootloader?

Hi Forum!
I am new here and also new to ESP32. I have bought a LilyGO T-Display-S3 ESP32S3 and wanted to upload my first code.

I had problems to upload Code via Aruino IDE app on macOs 12.6 Monterey. I get the error

bash: /esptool: No such file or directory
exit status 127

Testing things and clicking to fast I accidently fired 'Burn Bootloader'. Now I am stuck at all, trying to reconnect to the board, loosing the port one second afte selecting it.

Is there a way to reset the board to factory settings after Burn Bootloader?
Thnx!

there is no way Burn Bootloader could do anything

so i trashed it?

When connecting Port, Serial Monitor says "invalid header: 0xffffffff", then connection is gone again.

I will go one here: How to reset to factory settings after Burn Bootloader? · Issue #111 · Xinyuan-LilyGO/T-Display-S3 · GitHub

Burn Bootloader is not applicable for esp32. there is no command behind it

so how could I put the device back into the factory state?

it is not possible to get it out of factory state. the esp32 bootloader is in read-only memory

you problem is that the upload tool is missing on you computer

Its not missing. I installed esptools via pip and can connect via terminal to the device and read the flash successfully.

python3 -m esptool read_flash 0 0x400000 tmp.bin

downloads an image. (found this here - don't know why to use 0x400000)

I think I could use write_flash to fix this. Is there a basic bin file that would reset the flash to factory settings?

I also found this option: CONFIG_BOOTLOADER_FACTORY_RESET but don't know how to use it.

by the way: is there a link to any good knowledge about how microcontrollers and their development work? I need to know some basics.

Hi @headkit

This is caused by a change made to the ESP32 package index file:

You can restore the platform to a functional state by uninstalling and then reinstalling it:

  1. Select Tools > Board > Boards Manager from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
  2. Scroll down through the list of boards platforms until you find the "esp32 by Espressif Systems" entry.
  3. Hover the mouse pointer over the "INSTALLED" label on the "esp32 by Espressif Systems" entry. You will now see it change to an "UNINSTALL" button.
  4. Click the "UNINSTALL" button.
  5. A confirmation dialog will appear. Click the "YES" button.
  6. Wait for the uninstallation to finish.
  7. Select "2.0.7" from the dropdown version menu at the bottom of the "esp32 by Espressif Systems" entry.
  8. Click the "INSTALL" button at the bottom of the "esp32 by Espressif Systems" entry.
  9. Wait for the installation to finish.

thnx for your help.
I deinstalled and reinstalled as told. Using Arduino IDE 2.0.4 I still lose USB connection right after connecting port.

But with Arduino 1.8.19 I was able to upload the "Sprite_draw" example code to the system.

The instructions I shared above were only intended to fix the compilation error you experienced:

They are not expected to resolve the problem with the port.

Yes, of course. It was a good tip, thank you. One part of the puzzle is solved!

1 Like

If you need to restore the T-Display S3 go to the below link download the zip file and program the binaries with the ESP32S3 FLASH TOOL with the screenshot settings below.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.