Skip to content

UCTECHIP/RT-Thread

Repository files navigation

RT-Thread

RT-Thread for LS

Download and compile the toolchain

https://github.com/riscv/riscv-tools

Download the Scons

Ubuntu

sudo apt-get install scons

Other system

Follow the tutorial form the link: https://www.scons.org/

Config the toolchain

  1. Open the filertconfig.py
  2. Find theEXEC_PATHbelow thetoolchains path
  3. Add your toolchain path after theEXEC_PATH

Compile the RT-Thread

cd RT-Thread && scons

When it completed,the console will print the informations like this:

riscv64-unknown-elf-size rtthread.elf
  text	   data	    bss	    dec	    hex	filename
 44725	   1365	   6007	  52097	   cb81	rtthread.elf
scons: done building targets.

Then you can load thertthread.elfinto your board