Updated Installing the Firmware (markdown)

rstrouse 2023-02-27 13:49:08 -08:00
parent 6d8e77c2d4
commit 7e095d5e86

@ -5,7 +5,7 @@ The flash download tool is probably the most straight forward way to onboard you
For those of you using a regular ESP32S device then you do not need to set any jumpers. The chip select will be controlled by the software.
There are two files attached to every release in this repository. These are `SomfyController.ino.esp32.bin` and `SomfyController.littlefs.bin`. Download both of these files to your computer somewhere. These files are located on this repository under releases on the right side of the main page.
The initial firmware onboarding can be performed using a single file. These are `SomfyController.onboard.esp32.bin`. Download this file to your computer somewhere. The file is located on this repository under releases on the right side of the main page.
![image](https://user-images.githubusercontent.com/47839015/221660466-ab827cf1-4bfe-4e4d-8b5a-5b1245544a53.png)
@ -15,15 +15,15 @@ This tool only works in Windows but I suspect that if you are on a Linux environ
Once you download the zip file extract it to a directory. In this newly extracted directory you will find an executable file named for the version you downloaded. I downloaded version 3.9.4 so run the `flash_download_tool_3.9.4.exe` file.
A window will appear asking for a ChipType. Choose ESP32-D2WD and leave the rest of the settings alone. Then press OK. At the top of the next screen check the top two file checkboxes. Then click the `...` next to the top one and select the file `SomfyController.ino.esp32.bin` file from the location where you downloaded it to. In the `@` box next to it enter `0x1000`. In the second line choose the `SomfyController.littlefs.bin` file from its location and enter `0x290000` in the `@` box. The download tool will have two entries in this like below.
A window will appear asking for a ChipType. Choose ESP32-D2WD and leave the rest of the settings alone. Then press OK. At the top of the next screen check the top file checkbox. Then click the `...` next to the top one and select the file `SomfyController.onboard.esp32.bin` file from the location where you downloaded it to. In the `@` box next to it enter `0x0000`. The download tool will have one entry in it this like below.
![image](https://user-images.githubusercontent.com/47839015/221662265-3dfcdfeb-1482-4b2a-b876-8ca864330252.png)
![image](https://user-images.githubusercontent.com/47839015/221692229-bb182016-d212-45ca-aebf-53ca794a569e.png)
Next choose the COM port from the dropdown. If you do not know which COM port the device is on, unplug the USB port and see which one goes away from the dropdown. Then plug it back in and use that one. You do not need to change any of the other values. Once you have selected the COM Port press the start button and the firmware will start flashing to your device.
Next choose the COM port from the dropdown. If you do not know which COM port the device is on, unplug the USB port and see which one goes away from the dropdown. Then plug it back in and use that one. You do not need to change any of the other values. Once you have selected the COM Port press the START button and the firmware will start flashing to your device. If you receive a communications stability error `8-download data fail` try it again as any inconsistency in the packets over the port can cause it to fail.
![image](https://user-images.githubusercontent.com/47839015/221664147-39ef28da-e6c4-43a9-af7e-fb168fd06471.png)
![image](https://user-images.githubusercontent.com/47839015/221692974-208fc842-440c-4229-a59a-c9fdef4dd525.png)
If you receive an error then double check to ensure you have set the board to download mode using whatever jumper or voodoo chant required to get the board to accept firmware. If you are sure you have done this correctly, then the next most likely issue is the cable you are using. There are a ton of cables out there that are charge only. This means they are not capable of sending or receiving data. On the surface you will not be able to tell which is which but I suspect it is cheaper to not include two wires inside the cable.
If you continue to receive an error then double check to ensure you have set the board to download mode using whatever jumper or voodoo chant required to get the board to accept firmware. If you are sure you have done this correctly, then the next most likely issue is the cable you are using. There are a ton of cables out there that are charge only. This means they are not capable of sending or receiving data. On the surface you will not be able to tell which is which but I suspect it is cheaper to not include two wires inside the cable.
Once the flash process is complete disconnect any jumpers you have installed to get the device to accept firmware and reboot the device. Then follow the instructions to connect the device to your network in the [Configuring the Software](https://github.com/rstrouse/ESPSomfy-RTS/wiki/Configuring-the-Software) wiki.