admin admin又来活了,按照步骤安装pyOCD,咋感觉安装不对,python下面已经安装,然后pyocd list后也有stm标识# Probe Unique ID
-----------------------------------------------
0 STM32 STLink 57FF69066567525656240587
我用stlink调试华大hc32f460,且在pyocd list -t中也能看到芯片列表
hc32f460xc HDSC HC32F460xC builtin
hc32f460xe HDSC HC32F460xE builtin
但是在左侧烧录配置中,为何目标芯片名称选择不到,只能手写?
其他选项里必须填写pack地址吗 ?感谢
烧写错误如下:
0001486:CRITICAL:main:STLink error (9): Get IDCODE error
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyocd__main__.py", line 150, in run
status = cmd.invoke()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyocd\subcommands\load_cmd.py", line 96, in invoke
with session:
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyocd\core\session.py", line 341, in enter
self.open()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyocd\core\session.py", line 459, in open
self._board.init()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyocd\board\board.py", line 99, in init
self.target.init()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyocd\core\soc_target.py", line 117, in init
seq.invoke()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyocd\utility\sequencer.py", line 213, in invoke
resultSequence.invoke()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyocd\utility\sequencer.py", line 208, in invoke
resultSequence = call()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyocd\coresight\dap.py", line 395, in connect
connector.connect(self.protocol)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyocd\coresight\dap.py", line 168, in connect
self._connect_probe(protocol)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyocd\coresight\dap.py", line 188, in connect_probe
self.probe.connect(protocol)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyocd\probe\stlink_probe.py", line 135, in connect
self.link.enter_debug(STLink.Protocol.SWD)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyocd\probe\stlink\stlink.py", line 267, in enter_debug
self.check_status(response)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyocd\probe\stlink\stlink.py", line 305, in _check_status
raise exceptions.ProbeError(error_message)
pyocd.core.exceptions.ProbeError: STLink error (9): Get IDCODE error
终端进程“C:\WINDOWS\system32\cmd.exe /C python -m pyocd flash --config "c:\Users\Administrator\Desktop\HC32F460 IAP\hc32_boot\project\MDK.eide\hc32f460_boot.pyocd.yaml" -t hc32f460xe -f 4M "c:\Users\Administrator\Desktop\HC32F460 IAP\hc32_boot\project\MDK\build\hc32f460_boot\MDK.hex"”已终止,退出代码: 1。
这样如何是好呢,感谢