# Installation & First Coding

1. Download and install RT-Thread Studio. Note that the installation location must be `C:`

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

2. Click SDK Manager button in toolbar

<figure><img src="/files/9psztiQjcaftKWtDve6X" alt=""><figcaption></figcaption></figure>

3. Choose Board\_Support\_Packages --> Renesas --> VISION-BOARD and choose version 1.3.0

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

4. Choose Debugger\_Support\_Packages --> PyOCD, and choose version 0.2.3

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

5. Choose menu File -->  New --> RT-Thread Project to create a new project for VISION- BOARD with Template and DAP-LINK settings

<figure><img src="/files/84ATFAoPphzPq2e04TDB" alt=""><figcaption></figcaption></figure>

6. Check the source code in Project Explorer `\blink\src\hal_entry.c`

```c
rt_kprintf("\nHello RT-Thread!\n");
	while (1)
	{
     	rt_pin_write(LED_PIN, IN_HIGH);
        	rt_thread_mdelay(500);
        	rt_pin_write(LED_PIN, PIN_LOW);
        	rt_thread_mdelay(500);
    	}
```

7. Use menu Project --> Build All or Build button in toolbar to build project

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

8. Connect USB-DBG port of VISION-BOARD to the computer
9. Press `Window+X button` --> Device Manager, then check DAP-Link driver is installed properly

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

10. Click Flash Download button to program the board&#x20;

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

10. Check the 1-Hz blinking of blue LED on the board

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

{% hint style="info" %}
**(Optional)** try blink in other LED colour
{% endhint %}

11. Click Open a Terminal button in toolbar to start serial terminal

<figure><img src="/files/7SENlHhRl7szc4iAifpY" alt=""><figcaption></figcaption></figure>

12. Click Debug launch button to start debug perspective

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

13. Click Resume button to start running, then Terminate button to stop

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


---

# 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://dev.tesa.or.th/tesa-developer/tesa-university-program/rt-thread-iot-os/university-program/edge-ai-workshop/installation-and-first-coding.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.
