The following instructions will show vendors how to install the ESPHome firmware on the ESP32 microcontroller using a PC or laptop running Windows. They will be required for the first time during the product testing stage, after installation of the test firmware on the prototype.
pip install esptool
esptool.py --chip esp32 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0xd000 boot_app0.bin 0x1000 bootloader_dio_40m.bin 0x10000 firmware.bin 0x8000 partitions.bin
After getting confirmation that the prototype with test firmware has been successfully connected to the platform, you can continue working on your product. A similar approach is used to install the production firmware version on finished devices.