Has anyone had success installing onto the Xiao S3 board? I found the topic here and tried both intallation websites mentioned. They both claim to flash without issue, but the board never comes up on Wi-Fi. I tried this on several different brand new boards.
Hi,
Today, after 1.5 hours of reflashing my XIAO board, I finally had success with running WLED on XIAO ESP32s3 board: I had to compile wled firmware for this particular board.
What worked for me:
Install git platformio, see Compiling WLED - WLED Project
It is also recommended to use platformio in VS code, but I had problem with finding Platformio IDE plugin on Linux.
Clone WLED repository
git clone https://github.com/Aircoookie/WLED.git
cd WLED
Open and edit platformio.ini file to modify existing esp32s3dev_8MB configuration or create its copy:
3.1. Leave only one board configuration in ‘[platformio]’ section,
[platformio]
...
default_envs = esp32s3dev_8MB
3.2. Modify or copy&modify board configuration:
set board to seeed_xiao_esp32s3
set platform to https://github.com/platformio/platform-espressif32.git
so finally your board configuration section should look like this:
[env:esp32s3dev_8MB]
;; ESP32-S3-DevKitC-1 development board, with 8MB FLASH, no PSRAM (flash_mode: qio)
board = seeed_xiao_esp32s3
platform = https://github.com/platformio/platform-espressif32.git
platform_packages = ${esp32s3.platform_packages}
upload_speed = 921600 ; or 460800
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} ${esp32s3.build_flags} -D WLED_RELEASE_NAME=ESP32-S3_8MB
-D CONFIG_LITTLEFS_FOR_IDF_3_2 -D WLED_WATCHDOG_TIMEOUT=0
-D ARDUINO_USB_CDC_ON_BOOT=0 ;; -D ARDUINO_USB_MODE=1 ;; for boards with serial-to-USB chip
;-D ARDUINO_USB_CDC_ON_BOOT=1 ;; -D ARDUINO_USB_MODE=1 ;; for boards with USB-OTG connector only (USBCDC or "TinyUSB")
;-D WLED_DEBUG
lib_deps = ${esp32s3.lib_deps}
board_build.partitions = tools/WLED_ESP32_8MB.csv
board_build.f_flash = 80000000L
board_build.flash_mode = qio
; board_build.flash_mode = dio ;; try this if you have problems at startup
monitor_filters = esp32_exception_decoder
Build firmware:
platformio run
Flash!
I’m using esptool.py with following command:
Wow, thanks! that helped a lot. I got it to build. But, I am on Windows and having a hard time getting it to flash. The flashing process errors out around every time. I literally copied and pasted in your [env:esp32s3dev_8MB] section.
I’m on Windows, so I tried the build/flash button in VSCode on two different boards. Each time, it builds fine, but the flashing process errors out midway through It says that pySerial is throwing the error.
Writing at 0x000d782b... (57 %)
Writing at 0x000dc768... (59 %)
Writing at 0x000e1844... (61 %)
A serial exception error occurred: Cannot configure port, something went wrong. Original message: PermissionError(13, 'The device does not recognize the command.', None, 22)
Note: This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or drivers.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
I have tried several lower baudrates (down to 9600), and also trying different cables/connecting directly to the USB port on my PC. Different combinations of cables and baudrates yield different amounts of progress, but none above 70% or so.
Also, I can use the Arduino IDE to flash a random sketch, so I don’t think this is a cable or baudrate issue. Any ideas? In the meantime, I’ll try manually using esptool from the command line.
Hey, sorry to bother you again. I got the firmware to compile and flash from the VSCode IDE on Mac. Still not sure why my flash process from VSCode on Win kept barfing - it works fine when flashing any other project than this one!
Anyway, I got the code to flash onto the Xiao S3…but the WLED-AP doesn’t come up as an option. So I am not sure if it’s actually running. Is there something that I need to do to make sure that everything is ending up in the right memory location when it’s getting flashed?
I am pretty sure that my hardware is fine, because I can upload/run a random Wifi test sketch on it, it connects to my home wifi fine.
Try the exact process in this post with the old files Discord , i personally only tested on Lolins3 but I seen confirmation from many other guys used it with other boards , and if that works then OTA latest build and yes AP might take a bit of time to show or do not show unless you reset the device after flashing
I’ve just spent a few days having major issues with 20/30 of these boards. It looked like a hardware issue with the wifi just refusing to work unless you prod the board / antenna.
It turns out there is an issue between chip revisions. Try this fix if you’re having the same issue. A quick reflash with this and its rock solid.