This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] EVMK2H:SoC 电源故障、python 脚本

Guru**** 2540720 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/605268/evmk2h-soc-power-failure-python-scripts

器件型号:EVMK2H

您好!

我正在尝试在我刚刚收到的 EVM 板上实施"SoC 电源故障"的权变措施。 但是,python 脚本失败,并显示错误消息:

回溯(最近一次调用最后一次):
 文件"bmc_tool.py",第377行,输入
   port_list = list_serial_ports ()
 文件"bmc_tool.py",第256行,在 list_serial_ports 中
   S =串行。串行(I)
 文件"Build\bdist.win-amd64\ege\serialwin32.py"、第31行、位于__init__中
 文件"Build\bdist.win-amd64\ege\serialutil.py"、第218行、位于__init__中
 端口中的文件"Build\bdist.win-amd64\ege\serialutil.py"、第264行
ValueError:"port"必须为 None 或字符串,而不是 'int'="">

我已经深入研究了脚本,我可以强制它继续,方法是将第377行上对 port_list = list_serial_port()的调用替换为

PORT_LIST =[]
port_list.append ('COM3')
port_list.append ('COM4')

现在、我可以启动 GUI。 但是、当我执行"获取版本"时、不会发生任何情况

如果我尝试加载其中一个 UCD 文件、则会发生以下 stdout

已完成解析和添加命令
发送命令:GPIO d xxxx_x0xx
正在延迟2000ms ...
发送命令:GPIO d xxxx_xxx0
正在延迟2000ms ...
发送命令:I2C 1.4E D2 04 01 04 10 40

然后我看到一个对话框,显示错误“BMC 发生了错误。 请重启设备电源并重试。"