4.1.2.1. Nuclei SDK DemosΒΆ

Purpose

  • To know what the applications included in Nuclei SDK are

  • To know how to run the demo in Nuclei SDK

Requirements

The following hardware and source codes are required:

  • PC host

  • Nuclei board (RV-STAR Development Board)

  • USB Type-C cable

  • nuclei-sdk/application/

Content

  • A brief introduction about applications included in Nuclei SDK.

  • Based on Nuclei SDK, run the FreeRTOS demo.

Principles

About the brief introduction of applications included in Nuclei SDK, please refer to this online docs.

There are many demos in nuclei-sdk/application/, here we just take the FreeRTOS demo as an example to run. This demo shows the swapping of tasks and the usage of software timer.

The code for this demo is located in nuclei-sdk/application/freertos/demo.

In the code, the different task contents will be displayed in the UART teminal.

Steps

  1. Connect RV-STAR Development Board and your computer with the USB Type-C cable, and open UART terminal.

  2. Compile and run the nuclei-sdk/application/freertos/demo example.

Using the following commands:

cd /nuclei-sdk/application/freertos/demo
make SOC=gd32vf103 BOARD=gd32vf103v_rvstar upload
  1. Check the output in UART terminal.

Nuclei SDK Build Time: Feb 13 2020, 20:06:06
Download Mode: FLASHXIP
CPU Frequency 109058823 Hz
Before StartScheduler
task_1
task1_running.....
task_2
task2_running.....
timers Callback
timers Callback
task1_running.....
task2_running.....
timers Callback
timers Callback
task1_running.....
task2_running.....
timers Callback
timers Callback
task1_running.....
...More Message Below(Not Displayed)...

Exercises

Try to run more other applications in Nuclei SDK.