Closed sabas1080 closed 3 years ago
(Terribly sorry I missed this issue until now!)
The exception that is being raised here is due to the DAP_Info command not returning a valid packet. Specifically, the first byte of the response packet must be the command ID, and this exception is raised because the first byte does not match the DAP_Info command ID.
Bunch of questions:
It's going to be very hard to diagnose and fix the issue without very detailed information (i.e. code) about the firmware, and, more importantly, USB bus traces. Do you happen to have a USB bus tracer available? 😀 There are also software solutions for Linux (e.g., usbmon) and Windows (several), but software bus trace is in my experience less reliable and quite limited (since it shows the OS view, not the actual bus view).
Hi @flit thanks for answering, answering your questions
What host system? (Linux on PC, Windows, Mac, RasPi, etc) Mac
What implementation of CMSIS-DAP is the probe running?
Is it based on the official CMSIS-DAP reference code? https://github.com/ElectronicCats/DAP-Cat-Programmer/tree/master/firmware/CMSIS_DAP
Is the probe firmware open source so I can take a look? Yes, and hardware https://github.com/ElectronicCats/DAP-Cat-Programmer
Hi
I am making a programmer with CH552 and I am testing your great tool but I am have the next error, in openocd work fine, and with
pyocd list
the error
Thanks