Closed mttbx closed 3 years ago
Here's some info that pyocd read before:
0002099:INFO:board:Target type is cortex_m
0002199:INFO:dap:DP IDR = 0x1ba01477
0002243:INFO:dap:AP#0 IDR = 0x14770011
0003244:ERROR:__main__:uncaught exception: [Errno 110] Operation timed out
I just get it worked. I put all the job into the irq. I used to use a realtime os task and a queue to do the job. So the question becomes why the realtime task did't work? And how can I make it right?
I was porting DAPLink to my own driver. When I run pyocd I get this error.
usb.core.USBTimeoutError: [Errno 110] Operation timed out
I also run openocd, here's the error.Noticed that the debugger being inited successfully. But it failed because of the timeout error of the usb. In the usb driver on the device, I just called DAP_ProcessCommand and then responded the result. I don't know why this can't work. Can you give me a hint?