> For the complete documentation index, see [llms.txt](https://nxp.gitbook.io/mr-b3rb/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/mr-b3rb/software/mr-b3rb-software-developer-guide/cognipilot-prepare-mr-canhubk344-for-programming/connect-j-link-edu-mini-to-mr-canhubk344-with-dcd-lz-adapt-board.md).

# Connect J-Link EDU Mini to MR-CANHUBK344 with DCD-LZ adapt board

This guide provides instructions for connecting the J-Link EDU Mini  to the MR-CANHUBK344 with the objective of flashing the Cognipilot software onto the board.

{% hint style="info" %}
Make sure you have the following DCD-LZ adapt board&#x20;
{% endhint %}

<figure><img src="https://396338415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU93yDWZcgjXGgsC1Duqv%2Fuploads%2FcaVlJzHQskEN4wEPhcEP%2Fimage.png?alt=media&amp;token=44e26c55-96ac-445b-a71a-532604ce016c" alt="" width="375"><figcaption></figcaption></figure>

First take the J-Link EDU Mini, you can find more information here: [WITB MR-B3RB-BMF](/mr-b3rb/archive/whats-in-the-box-pre-production-version/witb-mr-b3rb-bmf.md#j-link-edu-mini-debugger)

<figure><img src="https://396338415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU93yDWZcgjXGgsC1Duqv%2Fuploads%2F5LEPqghnJsZO2TzjICQd%2Fimage.png?alt=media&amp;token=8afce758-d755-436e-9aca-f586d1e9e8b8" alt="" width="188"><figcaption></figcaption></figure>

<figure><img src="https://396338415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU93yDWZcgjXGgsC1Duqv%2Fuploads%2FOVq7nnlGTUF4SmkiqpEc%2Fimage.png?alt=media&amp;token=2a6d8fed-2945-4f8e-8df9-fa26b7527868" alt="" width="188"><figcaption></figcaption></figure>

Then, get the J-Link EDU Mini. Then, use the cable with a micro-USB connector on one end and a USB Type-A connector on the other end.

<figure><img src="https://396338415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU93yDWZcgjXGgsC1Duqv%2Fuploads%2Fmggb5EJkT9RLkCs6obrs%2Fimage.png?alt=media&amp;token=c6c6abce-af8e-4919-b954-2e6138216e83" alt="" width="375"><figcaption></figcaption></figure>

Then take the [10-Pin 2x5 Socket-Socket IDC (SWD) Ribbon Cable](https://www.adafruit.com/product/1675) and connect it to the J-Link EDU mini:

<figure><img src="https://396338415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU93yDWZcgjXGgsC1Duqv%2Fuploads%2FY9XFbRGiC7N7zeBBCPfa%2Fimage.png?alt=media&amp;token=16f86876-5520-401d-a061-8097a8c899c3" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="https://396338415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU93yDWZcgjXGgsC1Duqv%2Fuploads%2F135VGJQC4xqxuZH8wYik%2Fimage.png?alt=media&amp;token=fc511146-a82a-4790-9596-3a45e44acf57" alt="" width="375"><figcaption><p>A closer view of the 10-Pin 2x5 Socket-Socket IDC (SWD) Ribbon cable</p></figcaption></figure>

Please, connect the 10-Pin 2x5 Socket-Socket IDC (SWD) Ribbon cable in the following position to the J-Link EDU Mini:

Next, please pick up the DCD-LZ adapt board:&#x20;

<figure><img src="https://396338415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU93yDWZcgjXGgsC1Duqv%2Fuploads%2FXHpiiFdaYlbwJf40OHsN%2Fimage.png?alt=media&amp;token=d6d95ca6-6b7f-4456-871a-e4120728bf00" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="https://396338415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU93yDWZcgjXGgsC1Duqv%2Fuploads%2FxiCWbUzPoZcPnm5ofdGm%2Fimage.png?alt=media&amp;token=d98bad46-5353-4b88-86a9-7425f0710c08" alt="" width="375"><figcaption></figcaption></figure>

Next, connect one end of the 10-pin 2x5 Socket-Socket IDC (SWD) ribbon cable to the connector on the DCD-LZ adapt board. Ensure that the orientation of the connector corresponds to the one shown in the following image:&#x20;

<figure><img src="https://396338415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU93yDWZcgjXGgsC1Duqv%2Fuploads%2Fiyy2rqvggVfiHUJG0eg0%2Fimage.png?alt=media&amp;token=77ae59ce-fe59-4314-a5c8-d32a228763f2" alt="" width="375"><figcaption></figcaption></figure>

The pick the 7 position JST-GH connector:&#x20;

<figure><img src="https://396338415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU93yDWZcgjXGgsC1Duqv%2Fuploads%2FD5sSpxDhDUihYlkRKyDi%2Fimage.png?alt=media&amp;token=21da0c3f-db7c-478e-b0d9-52d422194cf2" alt="" width="375"><figcaption><p> 7 position JST-GH connector</p></figcaption></figure>

Finally, connect one end to the DCD-LZ adapt board and the other end of the 7 position JST-GH connector to the MR-CANHUBK344. Please, connect it into the pin showed in the following image:

<figure><img src="https://396338415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU93yDWZcgjXGgsC1Duqv%2Fuploads%2FFOyg7wcqqxAIoXCq5DE9%2Fimage.png?alt=media&amp;token=ddf3639b-1538-4043-a347-1e79fc55ced0" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="https://396338415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU93yDWZcgjXGgsC1Duqv%2Fuploads%2FizeKNQW7VPtb3Ni7QeDY%2FScreenshot%20from%202024-03-11%2019-36-37.png?alt=media&amp;token=4bdd10a9-3e08-42d3-976b-4336e61145e2" alt="" width="242"><figcaption></figcaption></figure>

<figure><img src="https://396338415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU93yDWZcgjXGgsC1Duqv%2Fuploads%2FJWPDgzCln941PYtpv62s%2Fimage.png?alt=media&amp;token=56922aec-35d6-4bca-8a9c-4b28a92a3072" alt="" width="375"><figcaption></figcaption></figure>

Now, you just need to connect the USB cable to your development computer and also remember to connect the LiPo battery to the PDB to flash the MR-CANHUBK344, as the board needs to be connected to the power. Then, you can return here to follow the instructions: [CogniPilot: Prepare MR-CANHUBK344 for programming](/mr-b3rb/software/mr-b3rb-software-developer-guide/cognipilot-prepare-mr-canhubk344-for-programming.md#prepare-mr-canhubk344-real-time-vehicle-controller)
