Browse Source

Backup work on flashing guide.

pull/24/head
Maurice Makaay 3 years ago
committed by GitHub
parent
commit
2fa266c531
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 12 deletions
  1. +26
    -12
      doc/flashing.md

+ 26
- 12
doc/flashing.md View File

@ -6,9 +6,9 @@
* Allen key (2mm, 5/64") or torx (T8) screw driver * Allen key (2mm, 5/64") or torx (T8) screw driver
* Soldering Iron * Soldering Iron
* Perhaps some sticky tape
* A serial to USB adapter (FTDI) * A serial to USB adapter (FTDI)
* Some wires * Some wires
* Optional: sticky tape, hot glue
## Warning ## Warning
@ -34,32 +34,41 @@ Unbolt the 4 screws which were hidden under the rubber pads.
Detach the bottom from the rest of the lamp, exposing the PCB. This might Detach the bottom from the rest of the lamp, exposing the PCB. This might
take a bit of force. Just pull it off bit by bit, until it pops loose. take a bit of force. Just pull it off bit by bit, until it pops loose.
<img src="images/06_pull_off_the_bottom.jpg" width="200"><img src="images/07_bottom_removed.jpg" width="200"><img src="images/08_board_exposed.jpg" width="200">
<img src="images/06_pull_off_the_bottom.jpg" width="200"><img src="images/07_bottom_removed.jpg" width="200">
<img src="images/08_board_exposed.jpg" width="400">
## Solder the wires ## Solder the wires
The wires will be connected to the debug pads that are shown in the following image. The wires will be connected to the debug pads that are shown in the following image.
<img src="images/09_debug_pads_for_soldering.jpg " width="400">
<img src="images/09_debug_pads_for_soldering.jpg" width="400">
Many of the serial to USB adapter have some header pins to which you can Many of the serial to USB adapter have some header pins to which you can
connect the wires of a device. Therefore, it might be useful to take some connect the wires of a device. Therefore, it might be useful to take some
dupont wires, cut off one end, and solder the stripped end to the board. dupont wires, cut off one end, and solder the stripped end to the board.
TODO
<img src="images/10_stripped_dupont_wires.jpg " width="200">
*Note: Whether to use male or female dupont wires depends on how you want to connect
the serial adapter. In this example, I have used male wires, so I could plug them
into a breadbord.*
<img src="images/10_stripped_dupont_wires.jpg" width="200">
Solder the wires to the `RX`, `TX`, `GND` and `GPIO0` debug pads.
Solder the wires to the `RX`, `TX`, `GND` and `GPIO0` debug pads that are
shown in the following photo. It is *not* required to solder a wire to the
`3.3V` debug pad. This pad is not directly connected to the 3.3V Vin of the
*Note: The board has a debug pad that exposes 3.3V. It is not required to
solder a wire to this debug pad. For that reason, I have not marked this debug
pad in the images. This pad is not directly connected to the 3.3V Vin of the
ESP32 chip, making it a less than optimal candidate for powering the board ESP32 chip, making it a less than optimal candidate for powering the board
during flashing. Instead, powering the lamp using its own power supply works
best.
during flashing. Instead, powering the lamp using its own power supply works best.*
You could use some sticky tape to fixate the cables before soldering.
You can use some sticky tape to fixate the cables before soldering.
When you want to keep the wires attached after flashing the new firmware,
then you might want to apply some hot glue to fixate the wires. This prevents
the wires from breaking off, due to excessive movement.
<img src="images/11_soldered_wires.jpg" width="200"><img src="images/12_optional_hot_glue.jpg" width="200">
## Connect the wires to your serial to USB adapter ## Connect the wires to your serial to USB adapter
@ -108,6 +117,11 @@ find another way to attach `GPIO0` to ground. Some options:
that you need. Remove the lead after flashing is done, otherwise the that you need. Remove the lead after flashing is done, otherwise the
lamp won't boot in normal mode. lamp won't boot in normal mode.
In the images below, you can see the first solution, using a breadboard.
<img src="images/
13_connect_to_serial_to_usb_adapter.jpg" width="200"><img src="images/14_connect_to_serial_to_usb_adapter_close_up.jpg" width="200">
## Make a backup of the current firmware ## Make a backup of the current firmware
Backing up the firmware makes it possible to revert to the original firmware, Backing up the firmware makes it possible to revert to the original firmware,


Loading…
Cancel
Save