-
Notifications
You must be signed in to change notification settings - Fork 144
pyOCD
XiNGRZ edited this page Jan 15, 2023
·
2 revisions
pyOCD 是一个配合 DAPLink 或 ST-Link 使用的命令行工具,可用于通过调试口对 STM32 进行烧录、查看日志等操作。
pyOCD 运行需要 Python 3。此外,还需要通过 pyocd pack install
安装对应芯片的支持包。
pip3 install pyocd # 安装 pyOCD 命令
pyocd pack install stm32f103 # 安装 STM32F103 支持包 (Keyboard)
pyocd pack install stm32f405 # 安装 STM32F405 支持包 (Dynamic)
注意: 下面以键盘本体 (Keyboard) 举例。如对扩展模块 (Dynamic) 操作,需要将
stm32f103cb
替换为stm32f405rg
pyocd load -t stm32f103cb zmk.hex
pyocd rtt -t stm32f103cb
注意: 需要构建时增加
-DCONFIG_ZMK_RTT_LOGGING=y
参数