一、SOC
D13X系列是一款高性能的全高清显示和智能控制MCU,采用国产自主 RISC-V 内核,内置片上256KB~1MB 大容量SRAM以及32Mb/64Mb PSRAM,并提供丰富的互联外设接口,配备了2D图像加速引擎和JPEG/PNG 解码引擎,可以满足各类交互设计场景和多媒体互动需求,具有高可靠性、高安全性、高开放度的特点,可以面向于泛工业领域应用。
1、功能框图

2、应用框图

二、代码仓库
D13 系列通过码云(gitee)提供 Luban-Lite(RTOS)、Baremetal(裸机)、相关文档、相关工具等共 4 个仓库的下载,全部开源。
1、Luban-Lite
git clone https://gitee.com/artinchip/luban-lite.git
2、Baremetal
git clone https://gitee.com/artinchip/baremetal.git
3、文档
git clone https://gitee.com/artinchip/d13x-doc.git
4、工具
git clone https://gitee.com/artinchip/tools.git
三、Luban-Lite
Luban-Lite 是 ArtInChip 基于 RT-Thread 深度开发的嵌入式实时系统,本章节主要介绍如何在Linux和Windows上快速搭建环境和编译固件,eclipse等IDE工具的使用请参考详细文档。
1、下载 Luban-Lite
Luban-Lite SDK 的代码托管于 Gitee 服务器中,为开源代码,可以直接从如下仓库下载:
git clone https://gitee.com/artinchip/luban-lite.git
2、Linux 系统
Luban-Lite SDK 的开发可以在 Linux 系统中进行,Luban-Lite SDK 目前自动支持的 Linux 发行版为:
- Ubuntu 14.04、16.04、18.04、20.04、22.04
- CentOS 7.x、8.x
Ubuntu 的安装教程在网上有很多可参考,以及相关常见问题也可以通过搜索查找解决方案。
2.1安装依赖
Luban-Lite 的开发环境中,还需要安装一些依赖包:
- Python2: 用于编译
- scons:自动化构建工具
- Python3 + pycryptodomex: 用于打包和签名
在命令行中安装以上依赖的方法:
~/luban-lite$ cd luban-lite/
~/luban-lite$ sudo apt install scons
~/luban-lite$ sudo apt install pip
~/luban-lite$ cd tools/env/local_pkgs/
~/luban-lite$ tar xvf pycryptodomex-3.11.0.tar.gz
~/luban-lite$ cd pycryptodomex-3.11.0
~/luban-lite$ sudo python3 setup.py install
3、Windows 系统
Windows 下对应的各种工具已经存放在 Luban-lite/tools/env/ 目录当中,不需要安装,直接双击 Luban-lite/win_env.bat 或者 Luban-lite/win_cmd.bat 即可。
4、编译 Luban-Lite
~/luban-lite$ scons --list-def //查看有多少配置
Built-in configs:
0. d13x_demo88-nor_baremetal_bootloader_defconfig - Build for d13x_demo88-nor_baremetal_bootloader
1. d13x_demo88-nor_baremetal_helloworld_defconfig - Build for d13x_demo88-nor_baremetal_helloworld
2. d13x_demo88-nor_rt-thread_helloworld_defconfig - Build for d13x_demo88-nor_rt-thread_helloworld
3. d13x_per1-nand_baremetal_bootloader_defconfig - Build for d13x_per1-nand_baremetal_bootloader
4. d13x_per1-nand_baremetal_helloworld_defconfig - Build for d13x_per1-nand_baremetal_helloworld
5. d13x_per1-nand_rt-thread_helloworld_defconfig - Build for d13x_per1-nand_rt-thread_helloworld
6. d13x_per1-nor_baremetal_bootloader_defconfig - Build for d13x_per1-nor_baremetal_bootloader
7. d13x_per1-nor_baremetal_helloworld_defconfig - Build for d13x_per1-nor_baremetal_helloworld
8. d13x_per1-nor_rt-thread_helloworld_defconfig - Build for d13x_per1-nor_rt-thread_helloworld
9. d21x_demo100-nand_baremetal_bootloader_defconfig - Build for d21x_demo100-nand_baremetal_bootloader
10. d21x_demo100-nand_baremetal_helloworld_defconfig - Build for d21x_demo100-nand_baremetal_helloworld
11. d21x_demo100-nand_rt-thread_helloworld_defconfig - Build for d21x_demo100-nand_rt-thread_helloworld
12. d21x_demo100-nor_baremetal_bootloader_defconfig - Build for d21x_demo100-nor_baremetal_bootloader
13. d21x_demo100-nor_rt-thread_helloworld_defconfig - Build for d21x_demo100-nor_rt-thread_helloworld
14. d21x_demo128-nand_baremetal_bootloader_defconfig - Build for d21x_demo128-nand_baremetal_bootloader
15. d21x_demo128-nand_rt-thread_helloworld_defconfig - Build for d21x_demo128-nand_rt-thread_helloworld
16. d21x_demo88-nand_baremetal_bootloader_defconfig - Build for d21x_demo88-nand_baremetal_bootloader
17. d21x_demo88-nand_baremetal_helloworld_defconfig - Build for d21x_demo88-nand_baremetal_helloworld
18. d21x_demo88-nand_rt-thread_helloworld_defconfig - Build for d21x_demo88-nand_rt-thread_helloworld
19. d21x_demo88-nor_baremetal_bootloader_defconfig - Build for d21x_demo88-nor_baremetal_bootloader
20. d21x_demo88-nor_rt-thread_helloworld_defconfig - Build for d21x_demo88-nor_rt-thread_helloworld
21. d21x_per2-nand_baremetal_bootloader_defconfig - Build for d21x_per2-nand_baremetal_bootloader
22. d21x_per2-nand_baremetal_helloworld_defconfig - Build for d21x_per2-nand_baremetal_helloworld
23. d21x_per2-nand_rt-thread_helloworld_defconfig - Build for d21x_per2-nand_rt-thread_helloworld
24. d21x_per2-nor_baremetal_bootloader_defconfig - Build for d21x_per2-nor_baremetal_bootloader
25. d21x_per2-nor_rt-thread_helloworld_defconfig - Build for d21x_per2-nor_rt-thread_helloworld
~/luban-lite$ scons --apply-def=2 //选择 2(d13x_demo88-nor_rt-thread_helloworld_defconfig) 号配置
~/luban-lite$ scons //编译
Image file is generated:
Luban-lite-lite/output/d13x_demo88-nor_rt-thread_helloworld/images/d13x_demo88-nor_v1.0.0.img
编译后的固件名称为 d13x_demo88-nor_v1.0.0.img
四、Baremetal
Baremetal 是 ArtInChip 的嵌入式裸机系统,本章节主要介绍如何在 Linux 和 Windows 上快速搭建环境和
编译固件,eclipse 等 IDE 工具的使用请参考详细文档。
1、下载 Baremetal
Baremetal 的下载方法和 Luban 类似,也是开源代码,仓库地址为:
git clone https://gitee.com/artinchip/baremetal.git
2、Linux 系统
Linux 系统的安装和 Luban 的类似,可以和 luban-lite 共用同一个开发环境。
2.1安装依赖
Baremetal 的开发环境中,还需要安装一些依赖包:
- Python2: 用于编译
- scons:自动化构建工具
- Python3 + pycryptodomex: 用于打包和签名
在命令行中安装以上依赖的方法:
~/aic$ cd berametal/
~/aic$ sudo apt install scons
~/aic$ sudo apt install pip
~/aic$ cd tools/env/local_pkgs/
~/aic$ tar xvf pycryptodomex-3.11.0.tar.gz
~/aic$ cd pycryptodomex-3.11.0
~/aic$ sudo python3 setup.py install
3、Windows 系统
Windows 下对应的各种工具已经存放在 baremetal/tools/env/ 目录当中,不需要安装,直接双击 baremetal/win_env.bat 或者 baremetal/win_cmd.bat 即可。
4、编译 Luban-Lite
~/aic$ scons --list-def //查看有多少配置
Built-in configs:
0. d13x_demo88-nor-xip_baremetal_bootloader_defconfig - Build for d13x_demo88-nor-xip_baremetal_bootloader
1. d13x_demo88-nor_baremetal_bootloader_defconfig - Build for d13x_demo88-nor_baremetal_bootloader
2. d13x_demo88-nor_baremetal_helloworld_defconfig - Build for d13x_demo88-nor_baremetal_helloworld
3. d13x_per1-nand_baremetal_bootloader_defconfig - Build for d13x_per1-nand_baremetal_bootloader
4. d13x_per1-nand_baremetal_helloworld_defconfig - Build for d13x_per1-nand_baremetal_helloworld
5. d13x_per1-nor_baremetal_bootloader_defconfig - Build for d13x_per1-nor_baremetal_bootloader
6. d13x_per1-nor_baremetal_helloworld_defconfig - Build for d13x_per1-nor_baremetal_helloworld
7. d21x_demo100-nand_baremetal_bootloader_defconfig - Build for d21x_demo100-nand_baremetal_bootloader
8. d21x_demo100-nand_baremetal_helloworld_defconfig - Build for d21x_demo100-nand_baremetal_helloworld
9. d21x_demo100-nor_baremetal_bootloader_defconfig - Build for d21x_demo100-nor_baremetal_bootloader
10. d21x_demo128-nand_baremetal_bootloader_defconfig - Build for d21x_demo128-nand_baremetal_bootloader
11. d21x_demo88-mmc_baremetal_bootloader_defconfig - Build for d21x_demo88-mmc_baremetal_bootloader
12. d21x_demo88-nand_baremetal_bootloader_defconfig - Build for d21x_demo88-nand_baremetal_bootloader
13. d21x_demo88-nand_baremetal_helloworld_defconfig - Build for d21x_demo88-nand_baremetal_helloworld
14. d21x_demo88-nor_baremetal_bootloader_defconfig - Build for d21x_demo88-nor_baremetal_bootloader
15. d21x_per2-nand_baremetal_bootloader_defconfig - Build for d21x_per2-nand_baremetal_bootloader
16. d21x_per2-nand_baremetal_helloworld_defconfig - Build for d21x_per2-nand_baremetal_helloworld
17. d21x_per2-nor_baremetal_bootloader_defconfig - Build for d21x_per2-nor_baremetal_bootloader
~/aic$ scons --apply-def=8 //选择 8(d21x_demo100-nand_baremetal_helloworld_defconfig) 号配置
~/aic$ scons //编译
Image file is generated:
baremetal/output/d21x_demo128-
nand_berametal_helloworld/images/d21x_demo128_nand_page_2k_block_128k_v1.0.0.img
编译后的固件名称为 d21x_demo128_nand_page_2k_block_128k_v1.0.0.img
五、工具
ArtInChip 提供两组工具:
- AiBurn:单机调试刷机工具
- AiBurnPro:一拖八量产刷机工具
1、工具下载
D133 的相关工具使用 gitee 存储和管理,也是开源仓库,可以通过下面的链接进行下载:
git clone https://gitee.com/artinchip/tools.git
2、驱动整理
AiBurn 通过 USB 烧录固件时需要 libusb 的支持,如果所用计算的 USB 驱动安装过于复杂而导致 ArtInChip 设备驱动安装异常时建议使用 tools 下的 Zadig 进行 USB 驱动的整理,方法如下图:

3、刷机
AiBrun 的使用非常简单,选择编译好的镜像,在开发板进入烧写模式后点击“开始”按钮即可自动进行烧写,进入烧写模式有如下几种方式:
- 终端设备为空片,则上电直接进入 USB 烧写模式
启动时(上电或者按“重启键”)按住“烧录键”直接进入烧录模式
启动时短路存储介质造成读失败可以进入烧录模式(如果 SPINAND 的 4 和 5 脚)
终端设备非空片,如果能进入 终端,则执行命令 aicupg ,系统直接重启进入烧写模式

4、串口调试
烧写镜像完成后可以通过串口进行信息的查看,默认的调试串口配置信息为:
- BaudRate:115200
- Data bits:8
- Stop bits:1
- Parity:None
- Flow control:None
六、开发板
1、D133CBV-V1
1.1开发版标识
D133CBV-QFN88-V1-0 23/07/05
1.2规格
- 7 寸屏 1024*600,LVDS/MIPI+RTP/CTP
- SD Card
- QSPI Nor Flash
- RTC +USB0
- 100M Ethernet0
- RS485+CAN+UART+I2C
- DSPK+Buzzer+DMIC+I2S
- WIFI+BT
1.3器件布局

1.4实物图

1.5方案配置
方案的配置对应的是 target/d13x/demo88-nor/ 工程
固件:d13x_demo88-nor_v1.0.0.img
七、文档
1、文档下载
D13X 的相关文档使用 gitee 存储和管理,也是开源仓库,可以通过下面的链接进行下载,也可以直接索取:
git clone https://gitee.com/artinchip/d13x-doc.git
2、本地搜索
使用本文档如果希望搜索的内容更丰富,需要开启浏览器的本地文件访问权限,以 Chrome 为例:
- 打开 Chrome 应用的属性
- 选中“快捷方式”页
- 在“目标”后面加上 “ –allow-file-access-from-files”,注意前面有个空格
- 重新打开 Chrome 即可
