<aside> ❗ Attention: all boards we ship are pre-flashed, so you probably do not need to flash a board.

You only need to flash a board if:

If we have supplied you with a pre-flashed version, you do not need to run these steps.

To update the firmware, go to Updating the Software

</aside>

<aside> ⚠️ If we have supplied you with an unflashed version, you can run these steps yourself or RMA it back to our lab where we will flash it for you.

</aside>

At-a-Glance

Download the latest release (or older releases) here

UbiSwitch Revision B Modifications

Flashing Firmware

Requirements

By no means an exhaustive list of debuggers but to help get started.

JLink

STLINK

Steps

  1. Download and unzip the binaries on the release page. Please choose the latest release.
    1. (SIMPLE) If there is a combined bootloader and app binary provided, then you can use this and only need to flash one file.
      1. app_with_bootloader_vX.X.X_YYYYMMDD.hex with the version number and date.
    2. (ALTERNATIVE) 3 files: bootloader.hex , app.hex and app_dfu.bin are provided
      1. bootloader.hex = bootloader binary
      2. app.hex and app_dfu.bin = application binaries (in hex and bin file format, used for flashing and upgrades over serial respectively).
  2. Connect the debug probe to your host machine. Confirm the debug probe is found by your system.
    1. If using ST-Link probes: On STM32CubeProgrammer, refresh Serial number in STLINK configuration tab to find your probe. Ensure Port=SWD .

      Screenshot 2024-04-12 at 17.55.55.png

      Wire up your ST-Link probe to your TC2030 cable.

    2. If using J-Link probes: Load SEGGER J-Link Configuration (or JLinkConfig) and confirm the appearance of your debug probe

      Screenshot 2024-04-13 at 00.39.28.png

      Connect the 6 pin TC2030 cable with 20 pin adapter directly into the J-Link debug probe.