# Firmware

#### Connectivity

Firmware update can be done over SWD interface with an inexpensive programmer.

1\. If possible disconnect the lens from the controller.

2\. Connect programmer to the controller.

<table border="1" id="bkmrk-st-link%2Fv2-signal-%28p" style="border-collapse: collapse; width: 100%; height: 177px;"><tbody><tr style="height: 29px;"><td class="align-center" style="width: 50%; height: 29px;">**ST-LINK/V2 signal (pin)**</td><td class="align-center" style="width: 50%; height: 29px;">**Controller signal**</td></tr><tr style="height: 32px;"><td style="width: 50%; height: 32px;">V<sub>APP </sub>(1,2)</td><td style="width: 50%; height: 32px;">V<sub>APP </sub>(3.3-5V)</td></tr><tr style="height: 29px;"><td style="width: 50%; height: 29px;">GND (20)</td><td style="width: 50%; height: 29px;">GND</td></tr><tr style="height: 29px;"><td style="width: 50%; height: 29px;">TRST (3)</td><td style="width: 50%; height: 29px;">RST</td></tr><tr style="height: 29px;"><td style="width: 50%; height: 29px;">TMS\_SWDIO (7)</td><td style="width: 50%; height: 29px;">IO</td></tr><tr style="height: 29px;"><td style="width: 50%; height: 29px;">TCK\_SWCLK (9)</td><td style="width: 50%; height: 29px;">CLK</td></tr></tbody></table>

3\. Connect power supply to the controller.

[![IMG_7221_r.jpg](https://wiki.kurokesu.com/uploads/images/gallery/2022-08/scaled-1680-/img-7221-r.jpg)](https://wiki.kurokesu.com/uploads/images/gallery/2022-08/img-7221-r.jpg)

#### Firmware update

<p class="callout warning">Before updating firmware, read GRBL parameters! Use [tools](https://github.com/Kurokesu/SCE2-SDK/tree/main/01_send_parameters) to automate the process.</p>

We recommend using original [ST-LINK/V2](https://www.st.com/en/development-tools/st-link-v2.html), [STLINK-V3SET](https://www.st.com/en/development-tools/stlink-v3set.html) or [STLINK-V3MINI](https://www.st.com/en/development-tools/stlink-v3mini.html) programmer. Download [STLINK-UTILITY](https://www.st.com/en/development-tools/stsw-link004.html) software from ST, open firmware file and program the microcontroller.

[![stlink-utility.png](https://wiki.kurokesu.com/uploads/images/gallery/2022-08/scaled-1680-/stlink-utility.png)](https://wiki.kurokesu.com/uploads/images/gallery/2022-08/stlink-utility.png)

<p class="callout warning">After the firmware update, internal EEPROM content is erased. Lens settings should be updated. Do not connect the lens before restoring settings! Reference parameters and tools for can be found [here](https://github.com/Kurokesu/SCE2-SDK/tree/main/01_send_parameters)</p>

#### Firmware revisions

Binary firmware files can be downloaded from the [SCE2-SDK](https://github.com/Kurokesu/SCE2-SDK/tree/main/firmware) Github repository.

<table border="1" id="bkmrk-module-fw-version-da" style="border-collapse: collapse; width: 100%; height: 292px;"><tbody><tr style="height: 29px;"><td class="align-center" style="width: 11.2963%; height: 29px;">**Version**</td><td class="align-center" style="width: 13.5185%; height: 29px;"> **Date**</td><td class="align-center" style="width: 60.1852%; height: 29px;">**Changes**</td></tr><tr style="height: 26px;"><td style="width: 11.2963%; height: 26px;">1.1f-SCE2</td><td style="width: 13.5185%; height: 26px;">2022-01-19</td><td style="width: 60.1852%; height: 26px;">Initial public release version

</td></tr><tr style="height: 29px;"><td style="width: 11.2963%; height: 29px;">1.1g-SCE2</td><td style="width: 13.5185%; height: 29px;">2022-08-21</td><td style="width: 60.1852%; height: 29px;">Fixed axis homing issue

</td></tr></tbody></table>