Open juhhov opened 5 years ago
Hi, @flit did you have time to look into this issue?
My apologies, I have not. But I've been using the LPC55S69 lately and for some reason have not come across this issue.
What is the state of the device prior to flashing? Does it still fail like this if you run 'pyocd erase --chip' before this test?
This usually reproduces when another flash is started right after previous has finished.
Retested with v0.22.0. The freeze is still there. Can not succesfully run 'pyocd erase --chip'. It always fails with below traceback. This sometimes happens also when flashing.
0001060:DEBUG:session:uninit session <pyocd.core.session.Session object at 0x7f71cc207828>
0001060:DEBUG:board:uninit board <pyocd.board.mbed_board.MbedBoard object at 0x7f71cf0aee48>
0001062:DEBUG:manager:added=[] removed=[]
0001062:DEBUG:manager:bps after flush={}
0001062:DEBUG:manager:added=[] removed=[]
0001062:DEBUG:manager:bps after flush={}
0001066:ERROR:board:link exception during target disconnect:
Traceback (most recent call last):
File "/home/systest/py3/lib/python3.5/site-packages/pyocd/probe/cmsis_dap_probe.py", line 285, in read_ap_result_callback
return result()
File "/home/systest/py3/lib/python3.5/site-packages/pyocd/probe/pydapaccess/dap_access_cmsis_dap.py", line 778, in read_reg_cb
res = transfer.get_result()
File "/home/systest/py3/lib/python3.5/site-packages/pyocd/probe/pydapaccess/dap_access_cmsis_dap.py", line 135, in get_result
self.daplink.flush()
File "/home/systest/py3/lib/python3.5/site-packages/pyocd/probe/pydapaccess/dap_access_cmsis_dap.py", line 637, in flush
self._read_packet()
File "/home/systest/py3/lib/python3.5/site-packages/pyocd/probe/pydapaccess/dap_access_cmsis_dap.py", line 862, in _read_packet
decoded_data = cmd.decode_data(raw_data)
File "/home/systest/py3/lib/python3.5/site-packages/pyocd/probe/pydapaccess/dap_access_cmsis_dap.py", line 421, in decode_data
data = self._decode_transfer_data(data)
File "/home/systest/py3/lib/python3.5/site-packages/pyocd/probe/pydapaccess/dap_access_cmsis_dap.py", line 321, in _decode_transfer_data
raise DAPAccessIntf.TransferFaultError()
pyocd.probe.pydapaccess.dap_access_api.DAPAccessIntf.TransferFaultError: SWD/JTAG Transfer Fault
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/systest/py3/lib/python3.5/site-packages/pyocd/board/board.py", line 96, in uninit
self.target.disconnect(resume)
File "/home/systest/py3/lib/python3.5/site-packages/pyocd/core/coresight_target.py", line 248, in disconnect
core.disconnect(resume)
File "/home/systest/py3/lib/python3.5/site-packages/pyocd/coresight/cortex_m.py", line 514, in disconnect
self.resume()
File "/home/systest/py3/lib/python3.5/site-packages/pyocd/coresight/cortex_m.py", line 968, in resume
if self.get_state() != Target.TARGET_HALTED:
File "/home/systest/py3/lib/python3.5/site-packages/pyocd/coresight/cortex_m.py", line 929, in get_state
dhcsr = self.read_memory(CortexM.DHCSR)
File "/home/systest/py3/lib/python3.5/site-packages/pyocd/coresight/cortex_m.py", line 614, in read_memory
result = self.ap.read_memory(addr, transfer_size, now)
File "/home/systest/py3/lib/python3.5/site-packages/pyocd/coresight/ap.py", line 564, in _read_memory
result = read_mem_cb()
File "/home/systest/py3/lib/python3.5/site-packages/pyocd/coresight/ap.py", line 546, in read_mem_cb
res = result_cb()
File "/home/systest/py3/lib/python3.5/site-packages/pyocd/coresight/dap.py", line 276, in read_ap_cb
result = result_cb()
File "/home/systest/py3/lib/python3.5/site-packages/pyocd/probe/cmsis_dap_probe.py", line 288, in read_ap_result_callback
six.raise_from(self._convert_exception(error), error)
File "<string>", line 3, in raise_from
pyocd.core.exceptions.TransferFaultError: SWD/JTAG Transfer Fault @ 0xe000edf0-0xe000edf3
0001074:DEBUG:pyusb_backend:closing interface
@flit - any chance of getting some runtime for this?
@mmahadevan108 @maclobdell - can we get some runtime for this? This is severely hampering the usage of this board in the CI/automated testing setup.
The freeze occurs very often. Flash never continues when at this state. Version in use: ddf36148a959fe27598c6d244b1039cd7b888293