【瑞萨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);
    }
}
相关推荐
421!8 小时前
GPIO工作原理以及核心
开发语言·单片机·嵌入式硬件·学习
cmpxr_12 小时前
【单片机】STM32的启动流程(Keil)
stm32·单片机·嵌入式硬件
广药门徒12 小时前
嵌入式常用通信协议速率对比及布线要点全解析
单片机·嵌入式硬件
cmpxr_14 小时前
【单片机】RAM和ROM
单片机·嵌入式硬件
信息安全专家16 小时前
sigmastar SSD222D编译问题总结2-dash问题
linux·嵌入式硬件·dash
yong999017 小时前
可自动调整的24V步进电机设计方案
单片机·嵌入式硬件
R6bandito_17 小时前
自实现FLASH读取函数中的隐式类型转换bug踩坑记录
c语言·开发语言·经验分享·stm32·单片机·mcu·bug
Bin Watson17 小时前
STM32 HRTIM 学习心得(3):SVPWM 输出
stm32·单片机·嵌入式硬件
Redemption19 小时前
嵌软面试每日一阅----freeRTOS(三)
stm32·单片机·嵌入式硬件·mcu·物联网·面试·51单片机
秋风&萧瑟19 小时前
【lvgl】window模拟器环境配置
物联网