guozhanxin e353b2d5f1 [bsp] Update all projects. 3 年之前
..
applications 27511885f3 [update] change ccflags to cflags 3 年之前
drivers bb1084556f [console] 解决在没有定义RT_USING_DEVICE的情况下使用device报错的问题 3 年之前
.config e353b2d5f1 [bsp] Update all projects. 3 年之前
Kconfig 4bfe55a0a1 [bsp/thead-smart] select ARCH_RISCV32 and ARCH_RISCV_FPU_S 4 年之前
README.md 360223a693 QEMU support, and code optimization for thead extension 3 年之前
SConscript 60287b69fd add t-head smart-evb bsp, and risc-v cpu e906 4 年之前
SConstruct b0f6c2fbae [update] CFLAGS 3 年之前
gcc_csky.ld 1cc029a1a3 [fix][bsp/thead-smart/gcc_csky.ld] 3 年之前
gdbinit 360223a693 QEMU support, and code optimization for thead extension 3 年之前
rtconfig.h e353b2d5f1 [bsp] Update all projects. 3 年之前
rtconfig.py 360223a693 QEMU support, and code optimization for thead extension 3 年之前
theadconfig.h 360223a693 QEMU support, and code optimization for thead extension 3 年之前

README.md

T-HEAD SMART-EVB Introduction

SMART-EVB is a development board provided by T-HEAD, based on FPGA to provide implementation, integrating T-HEAD's RISC-V CPU (eg. E902/E906/C906) and C-SKY CPU (eg. E805/E804/E803/E802 ), integrates basic peripheral resources such as GPIO/TIMER/UART/RAM.

The main resources on board are as follows:

  1. SMART-EVB for T-Head CPU E9xx Series

| res | description | | -- | -- | |ISA | RISCV | |CPU | E906 | |FREQ| 20MHz | |SRAM| 768KB |

  1. SMART-EVB for E804/E804F/E804D

| res | description | | -- | -- | |ISA | C-SKY | |CPU | E804 | |FREQ| 20MHz | |SRAM| 768KB |

Compile T-HEAD BSP

SMART-EVB BSP supports GCC compiler, the version information is:

  1. SMART-EVB for E906/7/F/D/P

| IDE/Compiler| version| | - | - | | GCC | gcc version 8.4.0 (C-SKY RISCV Tools V1.9.6 B20200616) |

  1. select cpu in rtconfig.py
  2. scons -c; scons

Quick start with qemu

  1. download qemu wget https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/resource/1356021/1612269502091/csky-qemu-x86_64-Ubuntu-16.04-20210202-1445.tar.gz
  2. qemu run qemu-system-riscv32 -cpu e906fdp -M smartl -kernel rtthread-e9xx.elf -nographic

Quick start with smart-evb

  1. Connect JTAG
  2. Connect the serial port
  3. riscv64-unknown-elf-gdb rtthread-e906f.elf

run log as follows:

 \ | /
- RT -     Thread Operating System
 / | \     4.0.3 build Sep  2 2020
 2006 - 2020 Copyright by rt-thread team
msh >