工具链路径自适应

This commit is contained in:
kirl committed 2026-07-27 20:14:07 +08:00
1 parent a1cbf4a3c3
commit a41b1ed836
3 files changed
+51 -3

No files matched your search

+9
View File
@@ -33,6 +33,15 @@ python -m pyocd pack install MSPM0G3507
MSPM0 SDK 和 SysConfig 需从 [TI 官网](https://www.ti.com/tool/MSPM0-SDK) 下载安装。
CMake 会按以下顺序自动检测路径:**环境变量 → C:\ti → D:\ti → E:\ti**。装在 TI 默认目录(如 `C:\ti\`)无需额外配置。自定义路径可设环境变量:
```powershell
$env:MSPM0_SDK_ROOT = "D:/path/to/mspm0_sdk"
$env:SYSCONFIG_CLI_PATH = "D:/path/to/sysconfig_cli.bat"
```
ARM GCC 同理:优先 `ARM_GCC_ROOT` 环境变量,否则从 PATH 自动查找。
## 构建
```powershell