Files
player/Project/pyocd.yaml

51 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# pyocd.yaml 示例
# 1. 目标芯片配置
target:
# 指定芯片型号(覆盖命令行 -t 参数)
name: stm32f429xi
# 可选:覆盖默认时钟频率(单位 Hz
clock: 180000000
# 可选:自定义 SVD 文件路径(用于寄存器描述)
svd_file: ./STM32F429.svd
# 2. 调试接口配置
probe:
# # 指定调试器类型stlink, jlink, cmsis-dap 等)
# vendor: stlink
# # 可选:指定接口序列号(当连接多个调试器时)
# serial: "12345678"
# 可选:连接速度(单位 kHz
speed: 1000
# # 3. Flash 算法配置
# flash:
# # 指定 Flash 算法路径(覆盖默认算法)
# algorithms:
# - ./STM32F4xx_Flash.elf
# # 可选:禁用默认算法(需手动指定所有算法)
# use_default_algorithms: false
# 4. 调试会话选项
session:
# 启动时自动复位目标
reset_after_connect: true
# 启用半主机调试(用于 printf 重定向)
semihosting_enabled: false
# 禁用 GDB 服务器(仅使用命令行工具)
no_gdb_server: false
# 5. 自定义命令脚本
# hooks:
# # 连接后执行的脚本Python 文件)
# on_connect: ./hooks/on_connect.py
# # 复位后执行的脚本
# on_reset: ./hooks/on_reset.py