Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/ALL_BSP_COMPILE.json
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@
"RTT_BSP": "riscv64-unknown",
"RTT_TOOL_CHAIN": "sourcery-riscv64-unknown-elf",
"SUB_RTT_BSP": [
"artinchip/d213ecv-demo-v4-0",
"bluetrum/ab32vg1-ab-prougen",
"qemu-virt64-riscv",
"ultrarisc/ur_dp1000_evb"
Expand Down
6 changes: 6 additions & 0 deletions bsp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,12 @@ This document is based on the RT-Thread mainline repository and categorizes the
| [ri5cy](rv32m1_vega/ri5cy) | ✅ | ✅ | - | - | - | - |
| [rv32m1_sdk_riscv](rv32m1_vega/rv32m1_sdk_riscv) | ✅ | ✅ | - | - | - | - |

#### ⚪ ArtInChip

| BSP Name | GPIO | UART | ADC | I2C | SPI | WDT |
|----------|------|------|-----|-----|-----|-----|
| [d213ecv-demo-v4-0](artinchip/d213ecv-demo-v4-0) | - | ✅ | - | - | - | - |

---

### AVR Architecture Series
Expand Down
30 changes: 30 additions & 0 deletions bsp/artinchip/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# ArtInChip BSPs

[English](README.md) | [中文](README_zh.md)

This directory provides RT-Thread board support for ArtInChip SoCs.

| Board | SoC / CPU | Support |
|-------|-----------|-----------------|
| [D213ECV-DEMO-V4-0](d213ecv-demo-v4-0/README.md) | D213ECV / T-Head C906, RV64GC | M-mode base kernel, UART0 console |

## Source organization

```text
artinchip/
├── d213ecv-demo-v4-0/ Board configuration and build entry
│ ├── applications/ Startup application
│ └── board/ Board wiring and initialization sequence
└── libraries/
├── include/ UART register definitions
└── soc/d21x/
├── include/ SoC addresses and MMIO accessors
├── drivers/ D213 UART0 serial adapter
└── port/ CPU, clock, PLIC and timer platform hooks
```

Board wiring and memory layout are configured in the board directory. Shared D21x register definitions, drivers and platform initialization are in `libraries/soc/d21x`.

The BSP uses the RT-Thread RISC-V common port for startup, context switching, FPU state, interrupts and system ticks. It provides UART0 with the required clock, reset and pin configuration. The bootloader initializes DDR, PLLs and memory/cache attributes before starting RT-Thread.

See the [board README](d213ecv-demo-v4-0/README.md) for build instructions, configuration, bootloader requirements and UART usage.
30 changes: 30 additions & 0 deletions bsp/artinchip/README_zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# ArtInChip 板级支持包

[English](README.md) | [中文](README_zh.md)

本目录提供 ArtInChip SoC 的 RT-Thread 板级支持。

| 开发板 | SoC / CPU | 支持功能 |
|--------|-----------|----------|
| [D213ECV-DEMO-V4-0](d213ecv-demo-v4-0/README_zh.md) | D213ECV / T-Head C906,RV64GC | M-mode 基础内核、UART0 控制台 |

## 源码结构

```text
artinchip/
├── d213ecv-demo-v4-0/ 板级配置与构建入口
│ ├── applications/ 启动应用
│ └── board/ 板级接线与初始化编排
└── libraries/
├── include/ UART 寄存器定义
└── soc/d21x/
├── include/ SoC 地址与 MMIO 访问接口
├── drivers/ D213 UART0 串口适配
└── port/ CPU、时钟、PLIC 和定时器平台接口
```

板级目录用于配置开发板接线和内存布局,`libraries/soc/d21x` 存放 D21x 共用的寄存器定义、驱动和平台初始化代码。

BSP 使用 RT-Thread RISC-V common port 完成启动、上下文切换、FPU 状态保存、中断处理和系统定时,提供 UART0 及所需的时钟、复位和引脚配置。Bootloader 在启动 RT-Thread 前完成 DDR、PLL 和内存/Cache 属性初始化。

构建方法、配置、Bootloader 要求和 UART 使用方法见 [开发板说明](d213ecv-demo-v4-0/README_zh.md)。
Loading
Loading