# Flashing firmware to the RDDRONE-BMS772

## Downloading J-link

[Download J-Link Software and Documentation Pack](https://www.segger.com/downloads/jlink#J-LinkSoftwareAndDocumentationPack)

J-Link Commander is used to flash binaries onto the RDDRONE-BMS772 board. The latest (stable) release of the J-Link Software and Documentation Pack is available at the SEGGER website for different operating systems.

## Connecting the programmer to the BMS

The software can only be written to the board using a debugger. The HoverGames drone kit includes a J-Link EDU Mini debugger. To use it, you need to install the J-Link Software Pack.&#x20;

The debugger can be plugged into the BMS using a small adapter board. This small PCB comes with a 3D printed case that can easily be put together. The J-Link debugger can be connected using an **SWD cable**. The connectors have to be oriented such that the **wires directly go to the side of the board**, as shown in the picture below.

While you do not need it right now, the adapter board also has a 6-pin connector for a **USB-TTL-3V3 cable**, which you can use to access the system console (CLI) of the BMS. The 3D printed case has a small **notch** on one side of the connector. The USB-TTL-3V3 cable needs to be plugged in such that the **black (ground) wire is on the same side as this notch** in the case. Make sure the cables are plugged in as shown in the picture below. Connect the 7-pin JST GH to the programming header of the BMS, J19.&#x20;

![The debug adapter board](https://3792237485-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M5bN8JOOxzQjppeUgf6%2F-MIs5DWgpw7GY00tnxTj%2F-MIs8XdRjxju5YO1xt8j%2Fimage.png?alt=media\&token=7d3fe088-1d39-4a61-98d3-811e679dc728)

![BMS programming header](https://3792237485-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M5bN8JOOxzQjppeUgf6%2F-MiLFYc-td_gNtcEFjdk%2F-MiLFmNwMuFrwkMLosxB%2Fimage.png?alt=media\&token=7795e327-3ec9-487a-9e26-87093e98dedf)

## Flashing the firmware

A guide for flashing firmware to this board is outlined in one of our consolidated GitBooks for flashing a multitude of NXP hardware. The link to this GitBook is below.

## <https://nxp.gitbook.io/nxpmobilerobotics/flashing-guide/flashing-hovergames-boards>

## Next steps

Once you're done flashing your board, you may continue to the Accessories and tools for development tutorial.
