# UAVCAN quick start demo

## S32 Design Studio for ARM

Download and install S32 Design Studio for ARM. It's available for Windows and Linux.

{% embed url="<https://www.nxp.com/design/software/development-software/s32-design-studio-ide/s32-design-studio-for-arm:S32DS-ARM>" %}

## UCANS32K146 hardware setup

* Interconnect two UCANS32K146 boards with a single 4-wire JST-GH CAN cable between both CAN2 connectors, and CAN bus terminators in the CAN1 connectors below.
* Connect a 5V supply to the pin headers.

![](https://2042189127-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M7FJ_hQKd8L0MNgduui%2F-MBH0n2ZHBq6IYt6pLWl%2F-MBH1py3Vw3iNLzMrom3%2Fboard_connection.jpg?alt=media\&token=e2682905-0e18-4a80-bf15-5aadab55049b)

{% hint style="info" %}
This pictures was taken with an earlier version of the UCANS32K146 board, there might be some (minor) differences in board layout. The software settings should be the same, though.
{% endhint %}

## S32 Design Studio example project

1\. In S32 Design Studio, go to "File" and then "Import...":

![](https://2042189127-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M7FJ_hQKd8L0MNgduui%2F-MBH0n2ZHBq6IYt6pLWl%2F-MBH3VS_Yix5eai-vP6-%2Fimport.png?alt=media\&token=3dc3b108-b345-4d6c-adf9-0ca8ef5aaef3)

2\. Select "Projects from Git" and click "Next":

![](https://2042189127-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M7FJ_hQKd8L0MNgduui%2F-MBH0n2ZHBq6IYt6pLWl%2F-MBH4kGu1ab3kXWDfTWf%2Fgit.png?alt=media\&token=c92f3fe7-5d22-45fd-9ac6-6b387058b8a6)

3\. Paste the Git URL (<https://github.com/noxuz/libuavcan_demo>) of the demo and click "Next":

![](https://2042189127-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M7FJ_hQKd8L0MNgduui%2F-MBH0n2ZHBq6IYt6pLWl%2F-MBH5qgssp1g9W985zSI%2Flinktogit.png?alt=media\&token=ec825544-c973-4643-afaf-a752526e7486)

4\. Select the master branch and click "Next".

5\. Click "Browse", select the desired destination directory for the project and click "Next".

6\. Choose "Import existing Eclipse projects", click "Next" and then "Finish".

7\. Click the small arrow at the right of the build icon (the hammer) in the toolbar and select NODE\_A to build the code for the first board (transmitter).

8\. Click the yellow lightning shaped icon in the toolbar for flashing the project to the board.

9\. In the list located at the left of the popup window, choose the appropriate profile, e.g. "libuavcanV1\_demo\_Debug NODE\_A" if you are building the code for NODE\_A. Then click "Flash" with the board connected to the J-Link debugger. Don't forget to power the board (5V)!

10\. Repeat steps 7-9 for the other board but with the desired build configuration changed to NODE\_B.

11\. A green led close to the 5V headers should blink approximately once a second. Also see the description at the top of the `src/main.cpp` file. If the green LED from both boards is not blinking, try pressing the reset button on the board that got the NODE\_A program flashed into, which is the one that starts the transmission.

With an oscilloscope or logic analyzer you can view the frames being transmitted at 4Mbit/s data phase speed and at 1Mbit/s in nominal phase:

![](https://2042189127-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M7FJ_hQKd8L0MNgduui%2F-MBH0n2ZHBq6IYt6pLWl%2F-MBH7ppY62MZpj3ibsBM%2FCANFD_oscilloscope.png?alt=media\&token=5a6e4c6b-defa-4f90-abab-747e14aac74d)


---

# 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://nxp.gitbook.io/ucans32k1/s32k1-sdk/quick-start-demo.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.
