> For the complete documentation index, see [llms.txt](https://nxp.gitbook.io/vmu-rt1176/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nxp.gitbook.io/vmu-rt1176/board-setup.md).

# Board Setup

## Flashing guide

This guide will briefly go through how to flash your RT7 board. To connect to the RT7 board the first step is to flash the board with the latest firmware. This is done in a few quick steps:

{% hint style="success" %}
Assuming you are on an Ubuntu Linux environment!
{% endhint %}

* Create an empty folder, then clone the PX4-Autopilot directory in it.

```
git clone https://github.com/PX4/PX4-Autopilot/
```

* Move to that new directory.

```
cd PX4-Autopilot
```

* Make the required RT7 binary file.

```
make nxp_fmurt1170-v1
```

{% hint style="warning" %}
Keep note of the location of this directory so that you can locate it later.
{% endhint %}

### Connecting the adapter boards

After you have the binary set and ready you can connect the JLink adapter to the RT7 board (J23 port) through the Holybro Pixhawk debug adapter. The diagram bellow displays how these adapters should be connected to each other.

<figure><img src="/files/Vzv6afVn4WF2IV5DUSSq" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
In case of any doubts of where the Debug pin is located on your board go to the [Pin Out](/vmu-rt1176/pin-out.md) page for some more clarification.
{% endhint %}

#### Holybro Pixhawk Debug Adapter&#x20;

This adapter is used to connect the JLink to the RT7 board. You can also use the Serial port (USB-C) to debug the board and read and write messages in the board. A simple diagram of what each port in the adapter board is can be seen below.

<figure><img src="/files/RhZ1wAuKHqiwHjvMnnRo" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
More information regarding the Holybro Pixhawk Debug Adapter can be found on the PX4-Autopilot page:

<https://docs.px4.io/main/en/debug/swd_debug.html>
{% endhint %}

### Flashing the binary

After the adapter boards are connected to your PC and to the RT7 we can flash the board. You will need to install the SEGGER JLink probe to be able to use the adapter. This can be done by going through the installation instructions on the following PX4 page (just the installation is necessary):

{% embed url="<https://docs.px4.io/main/en/debug/probe_jlink.html>" %}

Then you can launch the probe then follow the next steps when connected to the JLink.

1. Lauch the probe: `JLinkExe`
2. Type `connect`
3. Select `SWD` and target is `MIMXRT1176XXXA_M7`
4. Type `reset` and then `halt`
5. Type `loadbin /path/to/firmware/nxp_fmurt1170-v1_default.bin 0x30000000`
6. Type `reset` and then `go`

Now the board should be flashed with the latest firmware.

{% hint style="info" %}
For some examples on how the board can be used, go through the [Examples](/vmu-rt1176/examples/testing-can3-in-px4.md) chapter.
{% endhint %}
