diff --git "a/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/README.md" "b/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git "a/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\344\275\234\344\270\232/\347\254\254\344\270\200\345\244\251\344\275\234\344\270\232.md" "b/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\344\275\234\344\270\232/\347\254\254\344\270\200\345\244\251\344\275\234\344\270\232.md" new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git "a/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/1.png" "b/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/1.png" new file mode 100644 index 0000000000000000000000000000000000000000..faacd593e5d5bfc4d823929c2f2314f61de9ac35 Binary files /dev/null and "b/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/1.png" differ diff --git "a/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/2.png" "b/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/2.png" new file mode 100644 index 0000000000000000000000000000000000000000..1475147eea83f2f0380268e68373b21ab50d9a0b Binary files /dev/null and "b/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/2.png" differ diff --git "a/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/3.png" "b/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/3.png" new file mode 100644 index 0000000000000000000000000000000000000000..a236d83777e7711130e421ea7797edf1e6d01010 Binary files /dev/null and "b/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/3.png" differ diff --git "a/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/4.png" "b/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/4.png" new file mode 100644 index 0000000000000000000000000000000000000000..cada9393e50638a5258fc0f40c626258ebb7596a Binary files /dev/null and "b/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/4.png" differ diff --git "a/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/5.png" "b/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/5.png" new file mode 100644 index 0000000000000000000000000000000000000000..0e40787f7e56a732762a7956f74d5301aa1a792c Binary files /dev/null and "b/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/5.png" differ diff --git "a/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/6.png" "b/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/6.png" new file mode 100644 index 0000000000000000000000000000000000000000..332c3ad745ffec2a9201242f4b7dbcf611558e49 Binary files /dev/null and "b/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/6.png" differ diff --git "a/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/7.png" "b/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/7.png" new file mode 100644 index 0000000000000000000000000000000000000000..c57f9d107c0740a7c1f2368b332c7f4060b12d9b Binary files /dev/null and "b/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/Figures/7.png" differ diff --git "a/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/\347\254\254\344\270\200\345\244\251\347\254\224\350\256\260.md" "b/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/\347\254\254\344\270\200\345\244\251\347\254\224\350\256\260.md" new file mode 100644 index 0000000000000000000000000000000000000000..243a2a5e8aa230f38ba5336cc136762af8913245 --- /dev/null +++ "b/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/DAY1/\347\254\224\350\256\260/\347\254\254\344\270\200\345\244\251\347\254\224\350\256\260.md" @@ -0,0 +1,98 @@ +# RT-Thread & Git 开发环境搭建与使用指南 + +## 一、RT-Thread 开发环境搭建 + +### 上午操作流程 +1. **环境准备** + ```bash + # 下载env工具和RT-Thread源码 + git clone https://github.com/RT-Thread/env.git + git clone https://github.com/RT-Thread/rt-thread.git +2. **ENV工具安装** + 运行env.bat安装ENV环境 + 在Setting中创建右键快捷入口 + ![6](../笔记/Figures/6.png) +3. **QEMU-A9工程编译** + ```bash + cd rt-thread/bsp/qemu-vexpress-a9 + 首次配置 + menuconfig + 编译工程 + scons -j4 + 运行模拟器 + qemu-nographic.bat +![1](../笔记/Figures/1.png) + +4. **LVGL集成** + ```bash + menuconfig # 在软件包中启用LVGL + pkgs --update + scons -j4 +5. **开发流程** + 在VSCode中打开qemu-vexpress-a9工程 + 修改application/main.c后重新编译运行 +![2](../笔记/Figures/2.png) +![7](../笔记/Figures/7.png) + +## 二、Git的使用 +1. **基础配置** + ```bash + git --version # 查看版本 + git config --global user.name "YourName" + git config --global user.email "your@email.com" + git config --global credential.helper store # 保存认证信息 + +![3](../笔记/Figures/3.png) +![4](../笔记/Figures/4.png) + + 常用命令速查 + + 操作 命令 + 初始化仓库 git init + 克隆仓库 git clone + 查看状态 git status + 添加文件 git add + 提交更改 git commit -m "msg" + 查看历史 git log --graph --oneline +![5](../笔记/Figures/5.png) +2. **分支管理** + ```bash + git branch new-feature # 创建分支 + git switch new-feature # 切换分支 + git merge hotfix # 合并分支 + git branch -d old-branch # 删除分支 +3. **远程协作** + + 1. ***SSH密钥配置*** + ```bash + ssh-keygen -t rsa -b 4096 + cat ~/.ssh/id_rsa.pub # 复制到Gitee/GitHub + + 2. ***PR工作流*** + ```bash + git fork # 派生仓库 + git checkout -b feature # 创建特性分支 + git push origin feature # 推送分支 # 在平台发起Pull Request + +# 三、学习心得 +1. **RT-Thread开发** + + 定期执行pkgs --update更新软件包 + + 使用menuconfig调整配置后需重新编译 + +2. **Git最佳实践** + + 遵循"小步提交"原则 + + 使用.gitignore过滤中间文件 + + 重要分支(如main)开启保护 + +3. **排错技巧** + + ```bash + git reflog # 查看所有操作记录 + git diff HEAD~1 # 比较版本差异 + git reset --hard commit_id # 版本回退 + diff --git "a/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/README.md" "b/2025/\347\254\2545\347\273\204(CanMV-K230)/\351\231\210\347\247\213\351\276\231/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391