【瑞萨AI挑战赛】#01 快速开始

快速安装和配置 SDK 的过程参考这里

一、在 RT-Thread Studio 中配置 SDK

1. 安装 RT-Thread Studio

  • 这里下载安装 RT-Thread Studio

2. 选择 SDK Manager,安装相应的 SDK

在图标当中找到 SDK Manager
Titan Board 支持包版本

  1. Titan Board板级支持包:Board_Support_Packages → Renesas → Titan-Board → 1.0.0 (目前最新的是1.0.2)
  2. ARM编译工具链:ToolChain_Support_Packages → GNU_Tools_for_ARM_Embedded → 13.3.rel1
  3. PyOCD调试工具:Debugger_Support_Packages → PyOCD → 0.2.9

二、创建和烧录工程

1. 新建 RT-Thread 项目

  1. 文件 → 新建 → RT Thread 项目
  2. 填写项目信息:

2. 硬件连接

  1. 将USB线连接至板子上的 USB-DBG 端口上
  2. 出现 COM7 和 CMSIS-DAP

这里出现一个问题,CMSIS-DAP一开始被识别为 WinUSB 设备,解决办法是:卸载设备、重新插拔

3. 编译下载

  1. 点击构建
  2. 点击下载程序(右侧箭头应选择 DAP-LINK)

4. 运行命令

  1. 打开终端
  2. 运行命令
bash 复制代码
 \ | /
- RT -     Thread Operating System
 / | \     5.1.0 build Mar 15 2026 22:17:59
 2006 - 2024 Copyright by RT-Thread team

==================================================
Hello, Titan Board!
==================================================

msh >help
RT-Thread shell commands:
backtrace        - print backtrace of a thread
clear            - clear the terminal screen
version          - show RT-Thread version information
list             - list objects
help             - RT-Thread shell help
ps               - List threads in the system
free             - Show the memory usage in the system
pin              - pin [option]
reboot           - Reboot System

msh >ps
thread       pri  status      sp     stack size max used left tick   error  tcb addr
------------ ---  ------- ---------- ----------  ------  ---------- ------- ----------
tshell        20  running 0x000000d4 0x00001000    16%   0x00000006 OK      0x22022a18
sys workq     23  suspend 0x00000084 0x00000800    06%   0x0000000a OK      0x22021f10
tidle0        31  ready   0x0000005c 0x00000100    54%   0x00000005 OK      0x220203fc
timer          4  suspend 0x000000bc 0x00000200    36%   0x00000009 EINTRPT 0x22020858
main          10  suspend 0x000000e4 0x00000800    17%   0x00000008 EINTRPT 0x220215d8

应用层的入口函数在 src\hal_entry.c 中 的 void hal_entry(void) 。用户编写的源文件可直接放在 src 目录下。

cpp 复制代码
void hal_entry(void)
{
    rt_kprintf("\n==================================================\n");
    rt_kprintf("Hello, Titan Board!\n");
    rt_kprintf("==================================================\n");

    while (1)
    {
        rt_pin_write(LED_PIN_0, PIN_HIGH);
        rt_thread_mdelay(1000);
        rt_pin_write(LED_PIN_0, PIN_LOW);
        rt_thread_mdelay(1000);
    }
}
相关推荐
老梁agent3 天前
一个 Agent 不够用?工业场景下的多 Agent 路由模式实战
物联网·agent
老梁agent3 天前
从 0 到 22 篇:工业 Agent 的六大设计原则
物联网·agent
老梁agent6 天前
Agent 如何看懂时序数据?时间序列查询的 Tool 设计模式
物联网·agent
ifndef9 天前
GPIO同时复用(ADC与TIM)
mcu
Inhand陈工11 天前
基于台达PLC与映翰通IG502的智慧水产养殖精准投喂与远程运维解决方案
运维·人工智能·物联网·阿里云·信息与通信
大鱼>11 天前
大语言模型+物联网:LLM理解物理世界
物联网·struts·语言模型·多模态·aiot
果丁智能11 天前
物联网智能锁赋能集中式住宿:身份核验与远程权限管控的全链路技术实践
大数据·人工智能·物联网·智能家居
u1521096484911 天前
S.S.Audio PRO A2音频隔离器
嵌入式硬件·音视频·实时音视频·视频编解码·视频
zd84510150011 天前
RS485 总线详解
单片机·嵌入式硬件
国产化创客12 天前
ESP32 CameraWebServer 原生摄像头项目全解析
物联网·开源·嵌入式·实时音视频·智能硬件