补充参数。

Signed-off-by: rick.chan <cy@haoan119.com>
This commit is contained in:
rick.chan 2025-04-23 21:12:53 +08:00
parent 4bbfdea800
commit d152c0085e

View File

@ -187,7 +187,7 @@ RTOS Views 支持 RTOS 调试功能,比如查看系统中的 Task 等。
"toolchainPrefix": "arm-none-eabi",
"targetId": "Target Chip Name",
"cmsisPack": "/Path/to/PackFile.pack",
"serverArgs": ["--frequency=8m", "--trust-crc", "--erase=chip", "-O", "rtos.enable=false", "-O", "smart_flash=true"],
"serverArgs": ["--frequency=8m", "--trust-crc", "--erase=chip", "--uid=0123456789", "-O", "rtos.enable=true", "-O", "rtos.name=freertos", "-O", "smart_flash=true"],
"svdFile": "/Path/to/SystemViewDescriptionFile.svd"
}
}
@ -204,10 +204,16 @@ RTOS Views 支持 RTOS 调试功能,比如查看系统中的 Task 等。
- targetIdpyocd 使用此字段设置芯片型号,如 STM32F429BITx
- cmsisPack要使用的 pack 文件,如果使用 EIDE 自带的 pack 文件,其默认下载在 “\<User\>/.eide/pack/cmsis” 目录下;
- serverArgs传递给调试服务器这里是 pyocd gdbserver的参数。
- -O 参数:指定 pyOCD GDBServer Session 的 Options
- 格式是:-O OPTION=VALUE
- Session options 列表:参考 [pyOCD Session options list 官方说明](https://pyocd.io/docs/options.html)
- rtos.enable=false指定不使能 RTOS 工具,没有使用 RTOS 或者使用了不支持的 RTOS 时,使能该功能会导致调试启动时自动检测 RTOS 的时间过长。
- --erase
- auto自动
- chip整个芯片
- sector按扇区擦除
- --uid指定 Debuger Adapter 的 UID用于区分多个 Debuger Adapter。
- -O 参数:指定 pyOCD GDBServer Session 的 Options格式是-O OPTION=VALUE
- Session options 列表:参考 [pyOCD Session options list 官方说明](https://pyocd.io/docs/options.html)
- rtos.enable使能或禁能 RTOS 工具,没有使用 RTOS 或者使用了不支持的 RTOS 时,使能该功能会导致调试启动时自动检测 RTOS 的时间过长。
- rtos.name指定 RTOS 名称。
- freertos
- svdFile即 System View Description 文件,指定该文件才可以在调试时查看设备寄存器,如果使用 EIDE通常在 “.pack” 文件夹下,如 ".pack/Keil/STM32F4xx_DFP.2.14.0/CMSIS/SVD/STM32F429x.svd" 或 ".pack/Nationstech/N32L40x_DFP.0.9.0/svd/N32L406.svd"。
### 2.2. ARMCC 编译器的额外调试配置