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:
python3 get-pip.py
cd Downloads/<unzipped_archive>
ls
pip3 install -r requirements.txt
ls /dev/cu.*
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.
We’re empower your business with our technology expertise
./2smart.sh erase_flash
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
If the flashing stops at the “Connecting ….___….___” step, press the Boot button on the DevKit board.
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.
Share with us your business idea and expectations about custom software development for the internet of things.