Flashing and Updating

There are two main modules in the HMG that can be flashed and updated:

  • ESP32: Responsible for the device's operations, including connection to Ethernet and Wi-Fi, and the functioning of additional systems such as LEDs.
  • CC2652P: Controls the Zigbee network and is flashed with Z-Stack 3.x.0 firmware, available at the Official Z-Stack 3.x.0 repository.

Update ESP32

Updating ESP32 Over the Air (OTA)

If your HMG device has a LAN connection, you can update the ESP32 firmware remotely via Over-the-Air (OTA) updates. To update the firmware via OTA, follow these steps:

  1. Get the latest firmware.
  2. Access the web interface of the device.
  3. Navigate to the Preferences section. In the "ESP32 Update" card:

    • Click "Choose file".
    • Select the firmware (*.bin file).
    • Click "ESP32 OTA Update".

    HMG ESP32 OTA Flashing

  4. Wait for the firmware to finish updating and reboot the device.

Updating ESP32 via USB

If your HMG device is not connected to LAN or you prefer to flash ESP32 via USB for other reasons, it can be easily done using a USB cable. For this purpose, you need:

  1. A USB cable.
  2. The firmware file from the dealer.
  3. Flashing software like esptool.

Follow these steps:

  1. Connect the HMG to your PC using the USB cable.
  2. Open the flashing software and select the firmware file.
  3. Start the flashing process according to the software instructions.
  4. Wait for the process to complete and reboot the device.

Update CC2652P

Updating CC2652P via USB

To update the CC2652P module via USB, follow these steps:

  1. Download the Z-Stack 3.x.0 firmware from the Official Z-Stack 3.x.0 repository.
  2. Install Texas Instruments Flash Programmer 2 software.
  3. Connect the CC2652P to your PC using a USB cable.
  4. Open the Flash Programmer 2 software and select the firmware file.
  5. Configure the settings:

    • Select the firmware file under Flash images with the option Single.
    • Enable checkboxes for Erase (All unprotected pages), Program (Entire source file), Verify (CRC check).
    • Ensure the Disable bootloader checkbox remains UNCHECKED.

    Flash programmer 2 settings

  6. Click the Start button to begin the flashing process.

  7. Wait until the message Success! appears in the progress bar and the Status window states Reset of target successful. The flashing takes about 3 seconds.

    Flash programmer 2 - finish flashing

  8. The flashing is complete. You can now use your device with the new Zigbee firmware. Proceed with the installation.

Updating with HW Flasher

The HMG adapter has DIY pinouts that enable users to flash directly via J-TAG. Note that the pin-outs are 2.54mm in size.