Skip to content

Commit 20fb10f

Browse files
authored
Merge branch 'master' into refactor/can-framework
2 parents 921f1e2 + f27b61d commit 20fb10f

268 files changed

Lines changed: 35897 additions & 1519 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/ALL_BSP_COMPILE.json‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@
331331
"gd32/arm/gd32470z-lckfb",
332332
"gd32/arm/gd32h759i-start",
333333
"gd32/arm/gd32h759i-eval",
334+
"gd32/arm/gd32h77d-ginopi",
334335
"gd32/arm/gd32e503v-eval",
335336
"gd32/arm/gd32527I-eval",
336337
"gd32/arm/gd32e230-lckfb",
@@ -438,6 +439,7 @@
438439
"RTT_BSP": "riscv64-unknown",
439440
"RTT_TOOL_CHAIN": "sourcery-riscv64-unknown-elf",
440441
"SUB_RTT_BSP": [
442+
"artinchip/d213ecv-demo-v4-0",
441443
"bluetrum/ab32vg1-ab-prougen",
442444
"qemu-virt64-riscv",
443445
"ultrarisc/ur_dp1000_evb"
@@ -517,6 +519,13 @@
517519
"x86"
518520
]
519521
},
522+
{
523+
"RTT_BSP": "rh850",
524+
"RTT_TOOL_CHAIN": "sourcery-v850-elf",
525+
"SUB_RTT_BSP": [
526+
"renesas/rh850/qemu-rh850-u2c"
527+
]
528+
},
520529
{
521530
"RTT_BSP": "nordic(yml)",
522531
"RTT_TOOL_CHAIN": "sourcery-arm",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# dependencies
2+
CONFIG_RT_USING_CI_ACTION=y
3+
CONFIG_RT_USING_CPLUSPLUS=y

‎.github/utest/configs/components/dfs.cfg‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ CONFIG_RT_CONSOLEBUF_SIZE=1024
33
CONFIG_RT_NAME_MAX=24
44
CONFIG_RT_USING_CI_ACTION=y
55

6-
CONFIG_RT_UTEST_DFS_API_TC=y
7-
CONFIG_RT_UTEST_POSIX_API_TC=y
6+
CONFIG_RT_UTEST_TC_USING_DFS_API=y
7+
CONFIG_RT_UTEST_TC_USING_POSIX_API=y
88
CONFIG_RT_UTEST_DFS_MNT_PATH=""
99
CONFIG_RT_UTEST_DFS_FS_TYPE="elm"
10-
CONFIG_RT_UTEST_DFS_BLOCK_DEV="sd0"
10+
CONFIG_RT_UTEST_DFS_BLOCK_DEV="sd"

‎.github/utest/configs/kernel/mem.cfg‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ CONFIG_RT_UTEST_MEMHEAP=y
66
CONFIG_RT_UTEST_SMALL_MEM=y
77
CONFIG_RT_UTEST_MEMPOOL=y
88

9+
CONFIG_RT_USING_MEMHEAP=y
10+
911
CONFIG_UTEST_THR_STACK_SIZE=8192

‎.github/workflows/bsp_buildings.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,16 @@ jobs:
318318
/opt/i386-unknown-elf_for_x86_64-pc-linux-gnu/bin/i386-unknown-elf-gcc --version
319319
echo "RTT_EXEC_PATH=/opt/i386-unknown-elf_for_x86_64-pc-linux-gnu/bin" >> $GITHUB_ENV
320320
321+
- name: Install v850-elf ToolChains
322+
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-v850-elf' && success() }}
323+
run: |
324+
wget -q https://github.com/linumiz/rh850-gcc-toolchain/releases/download/v1.2.0/v850-elf-toolchain-linux-x86_64.tar.gz
325+
echo "a2194a060295008a2bd67db0e24c1cda8a795eba832b49b3f1d4cbb64cb242bd v850-elf-toolchain-linux-x86_64.tar.gz" | sha256sum -c -
326+
sudo mkdir -p /opt/v850-elf
327+
sudo tar -xzf v850-elf-toolchain-linux-x86_64.tar.gz -C /opt/v850-elf
328+
/opt/v850-elf/bin/v850-elf-gcc --version
329+
echo "RTT_EXEC_PATH=/opt/v850-elf/bin" >> $GITHUB_ENV
330+
321331
- name: Bsp Scons Compile
322332
if: ${{ success() }}
323333
shell: bash

‎.github/workflows/utest_auto_run.yml‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616
- 'bsp/qemu-virt64-aarch64/**'
1717
- 'bsp/qemu-virt64-riscv/**'
1818
- 'bsp/xuantie/virt64/c906/**'
19+
- 'bsp/renesas/rh850/**'
1920
- 'components/**'
2021
- 'examples/utest/**'
2122
- 'include/**'
@@ -36,6 +37,7 @@ on:
3637
- 'bsp/qemu-virt64-aarch64/**'
3738
- 'bsp/qemu-virt64-riscv/**'
3839
- 'bsp/xuantie/virt64/c906/**'
40+
- 'bsp/renesas/rh850/**'
3941
- 'components/**'
4042
- 'examples/utest/**'
4143
- 'include/**'
@@ -90,6 +92,8 @@ jobs:
9092
- { UTEST: "AARCH64-rtsmart", RTT_BSP: "bsp/zynqmp-a53-dfzu2eg", QEMU_ARCH: "aarch64", QEMU_MACHINE: "xlnx-zcu102", SD_FILE: "None", KERNEL: "rtsmart", "SMP_RUN":"" }
9193
- { UTEST: "AARCH64-smp", RTT_BSP: "bsp/zynqmp-a53-dfzu2eg", QEMU_ARCH: "aarch64", QEMU_MACHINE: "xlnx-zcu102", SD_FILE: "None", KERNEL: "standard", "SMP_RUN":"smp" }
9294

95+
- { UTEST: "RH850", RTT_BSP: "bsp/renesas/rh850/qemu-rh850-u2c", QEMU_ARCH: "rh850", QEMU_MACHINE: "rh850-u2c", SD_FILE: "None", KERNEL: "standard", "SMP_RUN":"" }
96+
9397
config_file:
9498
- "default.cfg"
9599

@@ -139,13 +143,19 @@ jobs:
139143
config_file: "kernel/mem.cfg"
140144
- platform: { UTEST: "AARCH64-smp", RTT_BSP: "bsp/qemu-virt64-aarch64", QEMU_ARCH: "aarch64", QEMU_MACHINE: "virt", SD_FILE: "sd.bin", KERNEL: "standard", "SMP_RUN":"smp" }
141145
config_file: "kernel/mem.cfg"
146+
- platform: { UTEST: "RH850", RTT_BSP: "bsp/renesas/rh850/qemu-rh850-u2c", QEMU_ARCH: "rh850", QEMU_MACHINE: "rh850-u2c", SD_FILE: "None", KERNEL: "standard", "SMP_RUN":"" }
147+
config_file: "kernel/kernel_basic.cfg"
148+
- platform: { UTEST: "RH850", RTT_BSP: "bsp/renesas/rh850/qemu-rh850-u2c", QEMU_ARCH: "rh850", QEMU_MACHINE: "rh850-u2c", SD_FILE: "None", KERNEL: "standard", "SMP_RUN":"" }
149+
config_file: "kernel/mem.cfg"
142150
- platform: { UTEST: "A9", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", SD_FILE: "sd.bin", KERNEL: "standard", "SMP_RUN":"" }
143151
config_file: "kernel/atomic_c11.cfg"
144152
- platform: { UTEST: "RISCV", RTT_BSP: "bsp/qemu-virt64-riscv", QEMU_ARCH: "riscv64", QEMU_MACHINE: "virt", SD_FILE: "None", KERNEL: "standard", "SMP_RUN":"" }
145153
config_file: "kernel/atomic_c11.cfg"
146154

147155
- platform: { UTEST: "A9", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", SD_FILE: "sd.bin", KERNEL: "standard", "SMP_RUN":"" }
148156
config_file: "cpp11/cpp11.cfg"
157+
- platform: { UTEST: "RH850", RTT_BSP: "bsp/renesas/rh850/qemu-rh850-u2c", QEMU_ARCH: "rh850", QEMU_MACHINE: "rh850-u2c", SD_FILE: "None", KERNEL: "standard", "SMP_RUN":"" }
158+
config_file: "components/cplusplus.cfg"
149159

150160
- platform: { UTEST: "A9", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", SD_FILE: "sd.bin", KERNEL: "standard", "SMP_RUN":"" }
151161
config_file: "components/lwip.cfg"
@@ -268,6 +278,22 @@ jobs:
268278
echo "TOOLCHAIN_INSTALLED=aarch64-musl" >> $GITHUB_ENV
269279
fi
270280
281+
if [[ "${{ matrix.platform.QEMU_ARCH }}" == "rh850" ]]; then
282+
echo "Starting install RH850 ToolChains"
283+
wget -q https://github.com/linumiz/rh850-gcc-toolchain/releases/download/v1.2.0/v850-elf-toolchain-linux-x86_64.tar.gz
284+
echo "a2194a060295008a2bd67db0e24c1cda8a795eba832b49b3f1d4cbb64cb242bd v850-elf-toolchain-linux-x86_64.tar.gz" | sha256sum -c -
285+
sudo mkdir -p /opt/v850-elf /opt/qemu-rh850
286+
sudo tar -xzf v850-elf-toolchain-linux-x86_64.tar.gz -C /opt/v850-elf
287+
/opt/v850-elf/bin/v850-elf-gcc --version
288+
wget -q https://github.com/linumiz/qemu-rh850/releases/download/rh850-v1.2.0/qemu-rh850-linux-x86_64.tar.gz
289+
echo "1e1d3d5d3a365ec24047e9128b11df09fdfddb2b385aa4c77dc45253aa448f6b qemu-rh850-linux-x86_64.tar.gz" | sha256sum -c -
290+
sudo tar -xzf qemu-rh850-linux-x86_64.tar.gz -C /opt/qemu-rh850
291+
/opt/qemu-rh850/bin/qemu-system-rh850 --version
292+
echo "/opt/qemu-rh850/bin" >> $GITHUB_PATH
293+
echo "RTT_EXEC_PATH=/opt/v850-elf/bin" >> $GITHUB_ENV
294+
echo "RTT_CC_PREFIX=v850-elf-" >> $GITHUB_ENV
295+
echo "TOOLCHAIN_INSTALLED=rh850" >> $GITHUB_ENV
296+
fi
271297
# Install CPP11 Preprocessing Toolchain
272298
if [[ "${{ matrix.platform.QEMU_ARCH }}" == "arm" && "${{ matrix.config_file }}" == "cpp11/cpp11.cfg" && "${{ matrix.platform.KERNEL }}" == "standard" ]]; then
273299
sudo rm -f /opt/gcc-arm-none-eabi-10-2020-q4-major/arm-none-eabi/include/c++/10.2.1/thread
@@ -451,6 +477,13 @@ jobs:
451477
"${dtb_args[@]}" \
452478
-append "console=ttyS0 earlycon=sbi" \
453479
> qemu_output_$TEST_QEMU_ARCH.log 2>&1 &
480+
elif [[ "${{ matrix.platform.QEMU_ARCH }}" == "rh850" ]]; then
481+
qemu-system-$TEST_QEMU_ARCH \
482+
-nographic \
483+
-M $TEST_QEMU_MACHINE \
484+
-icount shift=4,sleep=on \
485+
-kernel $TEST_BSP_ROOT/rtthread.elf \
486+
> qemu_output_$TEST_QEMU_ARCH.log 2>&1 &
454487
elif [[ "${{ matrix.platform.QEMU_ARCH }}" == "arm" ]]; then
455488
qemu_smp_args=()
456489
if [[ "$TEST_CONFIG_FILE" == "components/can.cfg" ]]; then

‎bsp/ESP/ESP32_C3/SConstruct‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ def elf2image(target, source, env):
99
print("Creating esp32c3 image...")
1010

1111
image = CHIP_DEFS["esp32c3"].BOOTLOADER_IMAGE()
12-
image.min_rev = 3
12+
image.min_rev = 0
13+
image.min_rev_full = 3
14+
image.max_rev_full = 199
1315
image.entrypoint = e.entrypoint
1416
image.flash_mode = 2 # flash_mode: dio
1517

0 Bytes
Binary file not shown.

‎bsp/README.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,12 @@ This document is based on the RT-Thread mainline repository and categorizes the
886886
| [ri5cy](rv32m1_vega/ri5cy) | ✅ | ✅ | - | - | - | - |
887887
| [rv32m1_sdk_riscv](rv32m1_vega/rv32m1_sdk_riscv) | ✅ | ✅ | - | - | - | - |
888888

889+
#### ⚪ ArtInChip
890+
891+
| BSP Name | GPIO | UART | ADC | I2C | SPI | WDT |
892+
|----------|------|------|-----|-----|-----|-----|
893+
| [d213ecv-demo-v4-0](artinchip/d213ecv-demo-v4-0) | - | ✅ | - | - | - | - |
894+
889895
---
890896

891897
### AVR Architecture Series
@@ -939,6 +945,16 @@ This document is based on the RT-Thread mainline repository and categorizes the
939945

940946
---
941947

948+
### RH850 Architecture Series
949+
950+
#### ⚪ Renesas RH850
951+
952+
| BSP Name | UART |
953+
|----------|------|
954+
| [qemu-rh850-u2c](renesas/rh850/qemu-rh850-u2c) | ✅ |
955+
956+
---
957+
942958
### x86 Architecture Series
943959

944960
#### ⚪ x86

‎bsp/artinchip/README.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# ArtInChip BSPs
2+
3+
[English](README.md) | [中文](README_zh.md)
4+
5+
This directory provides RT-Thread board support for ArtInChip SoCs.
6+
7+
| Board | SoC / CPU | Support |
8+
|-------|-----------|-----------------|
9+
| [D213ECV-DEMO-V4-0](d213ecv-demo-v4-0/README.md) | D213ECV / T-Head C906, RV64GC | M-mode base kernel, UART0 console |
10+
11+
## Source organization
12+
13+
```text
14+
artinchip/
15+
├── d213ecv-demo-v4-0/ Board configuration and build entry
16+
│ ├── applications/ Startup application
17+
│ └── board/ Board wiring and initialization sequence
18+
└── libraries/
19+
├── include/ UART register definitions
20+
└── soc/d21x/
21+
├── include/ SoC addresses and MMIO accessors
22+
├── drivers/ D213 UART0 serial adapter
23+
└── port/ CPU, clock, PLIC and timer platform hooks
24+
```
25+
26+
Board wiring and memory layout are configured in the board directory. Shared D21x register definitions, drivers and platform initialization are in `libraries/soc/d21x`.
27+
28+
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.
29+
30+
See the [board README](d213ecv-demo-v4-0/README.md) for build instructions, configuration, bootloader requirements and UART usage.

0 commit comments

Comments
 (0)