|
| 1 | +# Initial ESP flashing |
| 2 | + |
| 3 | +You can always use an IDE setup to flash the ESP but if you simply |
| 4 | +want to start using the OBS this way might be more straight forward. |
| 5 | + |
| 6 | +As of today, this thing is foe Windows only. |
| 7 | + |
| 8 | +Other than for the next updates that you can do over the air using |
| 9 | +the small release package, you need the "full flash" zip file, and |
| 10 | +the _Flash Download Tools_ from |
| 11 | +[ESPRESSIF](https://www.espressif.com/en/support/download/other-tools?keys=&field_type_tid%5B%5D=13) |
| 12 | + |
| 13 | +## Preparation |
| 14 | + |
| 15 | +Download the latest release archive from |
| 16 | +[OpenBikeSensorFirmware at GITHub](https://github.com/openbikesensor/OpenBikeSensorFirmware/releases). |
| 17 | +You need the larger ZIP file named `obs-v9.9.9999-full-flash.zip`. |
| 18 | +Extract the files in a temporary folder, they are named like |
| 19 | +0x??????.bin. The numbers are the base address where the data should |
| 20 | +be flashed. Don`t worry this will make sense in the next steps. |
| 21 | + |
| 22 | +Please download _Flash Download Tools (ESP8266 & ESP32 & ESP32-S2)_ from |
| 23 | +[ESPRESSIF](https://www.espressif.com/en/support/download/other-tools?keys=&field_type_tid%5B%5D=13) |
| 24 | +and extract the tool also in a dedicated temporary folder. There |
| 25 | +will be no install step, the tool is started directly in the folder. |
| 26 | + |
| 27 | +Remove USB devices from your computer, that you do not need right now. |
| 28 | +They can be confused during the selection of the right device to be |
| 29 | +flashed. |
| 30 | + |
| 31 | +## Steps |
| 32 | + |
| 33 | +Connect ESP via USB (checkme - driver needed?). Windows should |
| 34 | +confirm that a new device was detected. |
| 35 | + |
| 36 | +Start `flash_download_tool_3.X.X.exe`, in the folder of the _Flash |
| 37 | +Download Tool_. Give it some time to start. It will open a console |
| 38 | +window 1st and eventually a simple UI. |
| 39 | + |
| 40 | +Choose `Developer Mode` - `ESP32 DownloadTool` in the UI. The |
| 41 | +`Factory Mode` can be used if you need to flash a whole batch of |
| 42 | +ESPs. In that case you can also connect multiple ESPs at the same |
| 43 | +time. |
| 44 | + |
| 45 | +Now we need to tell the tool what needs to be flashed. At the |
| 46 | +top of the dialog you now see several lines starting, with |
| 47 | +checkboxes, a textarea, 3 dots an `@` sign and one more |
| 48 | +text ara. |
| 49 | + |
| 50 | +For each of the 4 files we need to flash, select the 3 dots which |
| 51 | +will bring up a file selector where you need to choose one of |
| 52 | +the 4 *.bin files. The order is not important, but you need to |
| 53 | +enter the _address_ of the file in the 2nd text field. The _address_ |
| 54 | +is the same as the filename `0x10000` for example. The boxes get |
| 55 | +a green background confirming a positive sanity check of the flash |
| 56 | +tool. |
| 57 | + |
| 58 | +Now select the checkboxes in front of the entries you just made. |
| 59 | + |
| 60 | +All other values stay with the default: |
| 61 | +`SPI SPEED` : `40MHz`, `SPI MODE` : `DIO` (This one will change |
| 62 | +automatically in a moment), `FLASH SIZE` : `32Mbit` and finally |
| 63 | +`SpiAutoSet` : `selected`, `DoNotChgBin` : `not selected`. |
| 64 | + |
| 65 | +On the button you see a drop-down box `COM:` here you have to |
| 66 | +select the correct com post for the flash process. If unsure |
| 67 | +leave the default and try a different value if the process |
| 68 | +fails. Make sure you have no other devices connected! |
| 69 | + |
| 70 | +Press: "START". |
| 71 | + |
| 72 | +You should see something like this now: |
| 73 | + |
| 74 | + |
| 75 | +If all goes correct, you should see a progress bar with final |
| 76 | +success message. Unplug the USB cable. The ESP is then ready |
| 77 | +to be placed inside the OBS housing (if not done already). |
| 78 | +Thanks to OTA Update you should not need to update this way |
| 79 | +anymore. |
| 80 | + |
| 81 | +If you get some _red_ error feedback, check that the USB |
| 82 | +connection is correct and that the right COM port was selected. |
| 83 | +If all fails, use the OBS Slack to get some help. |
| 84 | +Currently, there is not much troubleshooting info collected, |
| 85 | +but this will change. |
| 86 | + |
| 87 | + |
| 88 | +## Licenses |
| 89 | + |
| 90 | +https://docs.espressif.com/projects/esp-idf/en/latest/esp32/COPYRIGHT.html |
| 91 | + |
| 92 | +TODO |
0 commit comments