ESP32-S2 Wont flash

This isn’t an WLED issue, Im seeing if anyone can help with a board issue please.
I flashed a couple ESP32-S2’s with a Firmware for Jailbreaking PS4’s, I can flash new versions of that firmware and the board work, but for some reason, If I want to flash WLED onto one of the boards, it says it has erased the flash and installed, but its like nothing happened.
I have manual erased the flash, I have flashed the bootloader first and still nothing, is there a way to completely restore the board at all? Find it strange as to why they will only accept the Jailbreak firmware. I’ll add a link to the Jailbreak Github if that helps understand how the board is been used as sadly thats out of my knowledge, I just know how to flash things :slight_smile:
Jailbreak Github Source

You sure you took the release bin for the S2?

1 Like

Yeah, downloaded from WLED github, compiled my own and used the web installer, Using a flasher it flashes but nothing, if using the Web Installer it asks to hold the boot button when flashing which I do as thats the only way to flash them. Im wondering if the Jailbreak firmware has changed the format of the flash or something. D1 Minis flash fine, I flashed a spare ESP32-S2 that hadn’t been flashed with Jailbreak firmware and WLED installed fine and worked.

Would maybe try uploading a simple Blink from arduino and seeing if that works…

Tried that and blink worked, flashed WLED over again and nothing, and web installer still wont detect it, test with a fresh S2 and worked… I have no idea whats gone on with them both… hmmm

you need bootloader and partition map as well

I flashed the bootloader first, then flashed WLED, still nothing.
After flashing Bootloader, when flashing WLED do you select Erase flash or no in the ESPtool options?
Could be where im going wrong.

You need to:

  1. esptool erase_flash (optional, if flash contains non WLED code)
  2. esptool write_flash 0x0 bootloader.bin (optional, if bootloader is too old or missing after erase_flash)
  3. esptool write_flash 0x8000 partitions.bin (optional, if partitions are incompatible with WLED)
  4. esptool write_flash 0x10000 wled.bin

You don’t need to disconnect or reboot ESP after each operation.
You may need to compile bootloader binary and/or partition map yourself.

Please see:
https://docs.espressif.com/projects/esptool/en/latest/esp32/esptool/basic-commands.html
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/bootloader.html
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/partition-tables.html

1 Like

Thanks very much, will take a look at the info provided thanks.

I have the bootloader.bin which was created with VScode, how do I create a partions.bin for wled?
Thanks

I used this website and flashed the top one from the menu, then flashed again using 2nd firmware thats highlighted in image below. Flashing first firmware was needed for 2nd to work properly.

EDIT: Updated steps to get boards working.

Fixed using the website I linked before and using the settings in image I have uploaded, then using ESPEasy’s settings I “Updated” using WLED firmware and that seems to have done the trick.