4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 20:03:48 +08:00
Tangyuxin d724eed9fc
分离内存分配接口与内存分配算法 (#5175)
* [kernel][mem] Multiple instances of small memory allocation algorithm

* [kernel][mem] Change small memory management algorithm memory header flag

* [kernel][mem] Fix assertion problem

* [kernel][slab] Multiple instances of slab memory management algorithm

* [kernel][memheap] Remove rt_malloc/rt_free/rt_realloc and other related memory interfaces

* [kernel][mem] Clean up memory space of small memory management objects

* [kernel][kservice] Add memory application interface and thread protection interface

* [kernel][kservice] Fix function return value problem

* [kernel][memheap] Optimize memheaptrace print

* [kernel][memheap] Support best mode

* [kernel][memory] Remove semaphore lock

* [kernel][memheap] Add locked flag

* [kernel][memory] Support malloc memory in interrupt

* [kernel][memheap] Add 'memheapcheck' cmd

* [kernel][mem] Fix failure to request full memory

* [kernel][memheap] Fix compilation warning

* [kernel][mem] Fix mem realloc ASSERT

* [examples][testcases] Add small mem testcase

* [examples][mem_tc] Modify test memory size

* [examples][testcases] Add slab memory management algorithm test case

* [examples][testcases] fix small memory management algorithm test case

* [kernel][memory] Adjusting memory allocation algorithm object definition and interface

* [kernel][memory] Fix compilation warning

* [examples][utest] Fix mem test case

* [examples][utest] fix slab test case

* [utest][testcases] Shorten test time

* [kernel][memory] Formatting code

* [examples][utest] Adjust test run time

* [examples][utest] Formatting code

* [bsp] update all rtconfig.h
2021-12-16 16:23:58 +08:00
..

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)
2. select cpu in rtconfig.py
3. 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 >