Open Daniel9719 opened 2 weeks ago
Hello @Daniel9719,
Based on the logs, it appears the issue might be with the bulk endpoint not being available. Check the USB descriptors using lsusb -v to see if the bulk endpoints are correctly listed.
lsusb -v -d 1209:c550
Also, ensure that the DAPCat device is properly enumerated by the USB subsystem. You can use dmesg and lsusb to verify that the device is recognized correctly:
dmesg | grep -i usb lsusb
Please send me the output of the lsusb -v command and the message that appears from the dmesg command.
Have a nice day!
Support Team.
Hello @Daniel9719,
Due to lack of response we will close this issue now, however, please feel free to reach out to us again in case you have further suggestions, encounter an issue, or you would like to contribute.
Have a nice day!
Support Team.
Hi Eric,Sorry for not replying but Im in a business trip and don’t have access to my DAPCat right now, Ill take a look into it once I get back home but that will be until next Saturday 20 July.
Describe the problem: I've bought the DAPCat and tried to make it run under OpenOCD using the cmsis-dap interface but the device does not seem to be recognized as a CMSIS DAP device.
I tried to contact the support team of Electronic Cats (support1@electroniccats.com) back on October 5th, 2022 with the subject "DapCat" under my email (danieldraftsman@gmail.com) but I didn't get a solution to this problem. I was instructed to reflash my device using the release file CMSIS_DAP.ino.ch552.hex found at https://github.com/ElectronicCats/DAP-Cat-Programmer/releases using the WCHISPTool and by setting the device on boot mode (which I accomplished by pressing the boot button on the board while I powered on the device). I was successful at flashing the file into the board as you can see below
But even after following those steps I haven't been able to have the device recognized as a CMSIS-DAP device.
Reproduce steps First, have the device recognized by the linux environment, you can use the command
lsusb
for this purpose as illustrated belowRun the following command under a linux environment (I've specified my environment below)
sudo openocd -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s /home/danielortiz2/OS_Course_Skills/os_core_skills_course -c "debug_level 4" -f /home/vscode/.vscode-server/extensions/marus25.cortex-debug-1.12.1/support/openocd-helpers.tcl -f /interface/cmsis-dap.cfg -c "transport select swd" -f /target/stm32f4x.cfg
Expected behavior: I'd expect the DAPCat to be recognized as a CMSIS-DAP device
Screenshots: The result that I get from OpenOCD after running the previous command is the following:
The issue lies in lines
where it seems like the DAPCat does not support bulk transfers as specified by the cmsis_dap_usb_bulk.c file at https://sourceforge.net/p/openocd/code/ci/master/tree/src/jtag/drivers/cmsis_dap_usb_bulk.c#l256
If applicable, add screenshots or photos to help explain your problem.
My environment I'm running the command under a docker container with Ubuntu 22.04 as the OS I've opened the container through WSL2 version 2.2.4.0 on VSCode version 1.90.2
Possible solution The issue might lie on checking whether the device is configured properly to support bulk transfers.