Installation & First Coding

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

  1. Click SDK Manager button in toolbar

  1. Choose Board_Support_Packages --> Renesas --> VISION-BOARD and choose version 1.3.0

  1. Choose Debugger_Support_Packages --> PyOCD, and choose version 0.2.3

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

  1. Check the source code in Project Explorer \blink\src\hal_entry.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);
    	}
  1. Use menu Project --> Build All or Build button in toolbar to build project

  1. Connect USB-DBG port of VISION-BOARD to the computer

  2. Press Window+X button --> Device Manager, then check DAP-Link driver is installed properly

  1. Click Flash Download button to program the board

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

(Optional) try blink in other LED colour

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

  1. Click Debug launch button to start debug perspective

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

Last updated