1 RA8D1 Vision Board简介
Vision-Board 开发板是 RT-Thread 推出基于瑞萨 Cortex-M85 架构 RA8D1 芯片,拥有Helium和TrustZone威廉希尔官方网站
的加持,性能非常强大。
- 内核:480 MHz Arm Cortex-M85,包含Helium和TrustZone威廉希尔官方网站
- 存储:集成2MB/1MB闪存和1MB SRAM(包括TCM,512KB ECC保护)
- 外设:兼容xSPI的四线OSPI(带XIP和即时解密/DOTF)、CAN-FD、以太网、USBFS/HS、16位摄像头接口和I3C等
- 高阶安全性:卓越的加密算法、TrustZone、不可变存储、带DPA/SPA攻击保护的防篡改功能、安全调试、安全工厂编程和生命周期管理支持
SDK包里集成了OpenMV机器视觉例程,配合MicroPython 解释器,使其可以流畅地开发机器视觉应用。

2 更新RA8D1 Vision Board SDK
打开RT-Thread Studio ,打开SDK管理器。
安装最新的RT-Thread源码包。

安装Vision Board 开发板支持包。

下载安装≥0.2.3版本的PyOCD烧录工具。

3 新建Vision Board 工程
新建Vision Board 工程,选择左上角文件->新建->RT-Thread 项目->基于开发板,可以创建示例工程和模板工程。

笔者这里是基于模板工程,新建工程后如下图所示。

进行工程的编译。

编译无误后,就可以尽心固件下载。

下载成功后,接上串口打印信息如下。

4 编译问题解决
问题一:error: unknown type name 'clock_t'

具体的类型值是在sys/_types.h中定义的,需要包含sys/_types.h 这个头函数,因为在types 中宏定义了这个 #define _SYS_TYPES_H, 导致sys/_types.h这个头文件没有被引用,
在构建配置里面添加_POSIX_C_SOURCE=1 就可以了

问题二:error: 'NULL' undeclared (first use in this function)

缺少相应的头文件导致的。
#include <stddef.h>
在cstdlib.c中添加相应的头文件即可。
|