Select "Tools" > "Board" > "Boards Manager..." from the tools menu.
In the Boards Manager's search bar, type "ESP32" and click the "Install" button for "ESP32 by Espressif Systems".
From the Arduino IDE's "File" menu, select "Preferences" and check the "Show verbose output during upload" option to display detailed information during upload and compilation processes.
Preparing USB Serial Adapter
Connect the USB Serial Adapter to your PC using the included cable.
Open the "Tools" > "Port" menu in the Arduino IDE and select the port that corresponds to your USB Serial Adapter.
Select a board by navigating to "Tools" > "Board" > "ESP32" and choosing "ESP32S3 Dev Module" from the list.
Attempt to upload any sketch. This process is not to successfully upload but to find paths of command "esptool" and the serial port used for writing.
Please press the "→" upload button. If "Show verbose output during upload" is enabled, the paths to esptool and serial port will be displayed. Please note thiese paths.
Writing to the qNinjaLite Device
Connect the USB Serial Adapter to the back of the qNinjaLite device.
If the pin configuration of your USB adapter does not match that of the qNinjaLite's serial connector, please connect them using jumper wires. Serial communication is possible as long as the GND, RX, and TX pins are connected.
Press and hold the "BOOT" button on the back of the qNinjaLite device while turning on the power to enter programming mode.
Open the Terminal (on macOS or Linux) or Command Prompt (on Windows) and execute the following command to erase the device's flash memory. Please replace "/path/to/esptool", "/path/to/serial", and "/path/to/binary" with the actual paths./path/to/esptool --port SERIAL_PORT erase_flash
Next, write the new firmware to the device./path/to/esptool --port /path/to/serial write_flash 0x0 /path/to/binary