# Flashing Bootloader

## Tools Required

Manufactured boards come WITHOUT bootloader pre-installed. You can easily flash them yourself. The tools needed include:

* ST-Link v2 ARM JTAG Debugger
* ARM JTAG Mini connector 1.25 mm pitch

## Connections

ST Link debugger looks something like this:

![](/files/-MTPndCremvt6l7Ym9ez)

You will need to connect the ST-Link pins to your SmartAP Pins.

The reference for ST Link pins:

![](/files/-MTPndClPJbg6ABNxanb)

The reference for SmartAP JTAG pins (view from top):

![](/files/-MTPndCk1N6s3OHpO4Xe)

Your connection should look like the below:

![](/files/-MTPndCmJs8nVu_YqoCS)

Your autopilot and ST Link debugger should be powered via USB only.

## Flashing

Open STM ST Link Utility and then go to `Target` > `Program and Verify`:

![](/files/-MTPndCqFIPzDUvraVHW)

Select the bootloader file to flash:

![](/files/-MTPndCo9s00eUjMgi14)

Finally, press `Start`

![](/files/-MTPndCpp0a2Im98-sPt)

Once completed you'll see the following:

![](/files/-MTPndCno7PbMxymX4Nd)

If you now see the board LEDs flashing, congratulations! Bootloader has been successfully flashed! Now you're able to install the firmware.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sky-drones.com/avionics/legacy-autopilots/flashing-bootloader.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
