# Firmware Update

The SRS-3 firmware can be updated on ground using the provided Satlab JTAG/serial adapater. The update procedure requires a Linux development machine and OpenOCD version 0.10.0 or later, which can be installed from http://openocd.org/ or most distribution package managers. Please ensure that the `udev` permissions are also configured as described in Getting Started.

Firmware packages are distributed as a `tar.xz` archive. The package includes a script, `flash.py`, which wraps the OpenOCD commands and flashes the board:

    satlab@satlab:~$ tar xvf srs3-v1.0.0.tar.xz
    srs3-v1.0.0/satlab-jtag.cfg
    srs3-v1.0.0/flash.py
    srs3-v1.0.0/srs3-v1.0.0.bin
    satlab@satlab:~$ cd srs3-v1.0.0
    satlab@satlab:~/srs3-v1.0.0$ ./flash.py srs3-v1.0.0.bin
    [+] Satlab firmware flash tool v1.1.0
    [+] Flashing image using OpenOCD srs3-v1.0.0.bin
    [+] Succesfully flashed the firmare to the board