From db54ecb500ea42be1b3791c1c67d0caee20c7b75 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Tue, 30 Apr 2024 11:00:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20C=20Control=20block=20not?= =?UTF-8?q?=20found=20[=5F=5Fmain=5F=5F]=20=E9=97=AE=E9=A2=98.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- Software/Applications/PyOCD/PyOCD_的基本使用.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Software/Applications/PyOCD/PyOCD_的基本使用.md b/Software/Applications/PyOCD/PyOCD_的基本使用.md index 013d057..8160573 100644 --- a/Software/Applications/PyOCD/PyOCD_的基本使用.md +++ b/Software/Applications/PyOCD/PyOCD_的基本使用.md @@ -85,10 +85,15 @@ pyocd.exe rtt --target --pack <"/Path/To/Nationstech.N32L40x_ - --help - --address +- --size - --up-channel-id - --down-channel-id - --log-file +PyOCD v0.35.1 及 v0.36.0 的 RTT 存在一个 Bug 导致使用 RTT 是出现 “C Control block not found [__main__]” 错误。回退到 v0.34.3 则该问题消失,参见 [Control block not found when using rtt with pyocd 0.35.0 #1553 ](https://github.com/pyocd/pyOCD/issues/1553) + +遇到该问题可以使用 [Reset the offset in finding control block #1654](https://github.com/pyocd/pyOCD/pull/1654/commits/94debabb9f8b4415fa1f5ede409e77b6f60f6375) 或 [Fix RTT Control Block Search #1669](https://github.com/pyocd/pyOCD/pull/1669/commits/4c9acbcefb58de87d6e164e1868cd1cee2c16f31) 方法临时修正。但目前这两种修复方法都不支持指定 --address 和 --size 参数,因此,即便使用了这两个 pack,但在使用 RTT 时指定了这两个参数,依然会报“C Control block not found [__main__]” 错误。 + ## 8. 外部参考资料 1. [PyOCD Command reference](https://pyocd.io/docs/command_reference.html)