> For the complete documentation index, see [llms.txt](https://dev.tesa.or.th/tesa-developer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.tesa.or.th/tesa-developer/tesa-university-program/rt-thread-iot-os/university-program/edge-ai-workshop/installation-and-first-coding.md).

# 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>
