The following instructions will show vendors how to install the ESPHome firmware on the ESP32 microcontroller using MacBook, iMac, Mac Pro or Mac mini. They will be required for the first time during product testing when the test firmware is installed on the prototype.
You can install the firmware on the microcontroller using Python.
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
After this, install the package manager:
cd Downloads/<unzipped_archive> ls
pip3 install -r requirements.txt
In example you should now see /dev/cu.usbserial-0001, you may choose your serial port. It is necessary for the flashing device in the next steps.
If the memory erasing stops at the “Connecting ….___….___” step, press the Boot button on the DevKit board:
./2smart.sh write -d /dev/cu.usbserial-0001
When getting confirmation that your connection to the prototype platform with test firmware was successful, you can continue working on your product. A similar approach (steps 5 and 6) is used to install the production firmware on finished devices.