mcuee

Results 3052 comments of mcuee

This is with Cmake build. Somehow it only build one version of hidtest. ``` mcuee@freebsd14:~/build/hidapi_pr730 $ cmake -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHIDAPI_ENABLE_ASAN=ON -DHIDAPI_BUILD_HIDTEST=ON . -- The C compiler identification is Clang...

More detailed build log using CMake. At least the shared version of hidtest will depend on the new FreeBSD hidraw backend. ``` mcuee@freebsd14:~/build/hidapi_pr730 $ cmake -B build/shared -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo...

lldb does not seem to give much info. ``` mcuee@freebsd14:~/build/hidapi_pr730 $ lldb ./build/shared/hidtest/hidtest (lldb) target create "./build/shared/hidtest/hidtest" Current executable set to '/home/mcuee/build/hidapi_pr730/build/shared/hidtest/hidtest' (x86_64). (lldb) r Process 17816 launched: '/home/mcuee/build/hidapi_pr730/build/shared/hidtest/hidtest' (x86_64)...

After this is fixed, next test will be using hidapitester. ``` mcuee@freebsd14:~/build/hidapitester $ gmake -f Makefile_pr730_hidraw_freebsd cc -I/usr/local/include -I ../hidapi_pr730/hidapi -DHIDAPITESTER_VERSION=\"""v0.5""\" -c ../hidapi_pr730/freebsd/hid.c -o ../hidapi_pr730/freebsd/hid.o cc -I/usr/local/include -I ../hidapi_pr730/hidapi -DHIDAPITESTER_VERSION=\"""v0.5""\"...

No more crashing. But somehow it cannot open any devices. ``` mcuee@freebsd14:~/build/hidapi_pr730 $ sudo ./hidtest/hidtest-hidraw hidapi test/example tool. Compiled with hidapi version 0.15.0, runtime version 0.15.0. Compile-time version matches runtime...

> Please load the hidraw driver first by > > ``` > sudo kldload hidraw > ``` I have done that but somehow the HID devices are not recognized by...

> I found the reason. There are two usb hid driver in FreeBSD. One is uhid, another is usbhid. Only usbhid is compatible with hidraw. Also, unload and try to...

However, `hidtest-hidraw` is still problematic --> it cannot be stopped and keep repeating with the test device. ``` mcuee@freebsd14:~/build/hidapi_pr730 $ sudo ./hidtest/hidtest-hidraw > hidraw_freebsd_hidtest.txt ^C mcuee@freebsd14:~/build/hidapi_pr730 $ head -200 hidraw_freebsd_hidtest.txt...

If I unlug the test device and plug in another device, then it is working. ``` mcuee@freebsd14:~/build/fx2hid/fx2hid_128bytes_report/fx2hid_128bytes $ sudo fxload -t fx2lp -I fx2hid.hex -D vid=0x04b4,pid=0x8613 mcuee@freebsd14:~/build/fx2hid/fx2hid_128bytes_report/fx2hid_128bytes $ sudo lsusb...

@aokblast Looks like it is getting close. To reproduce the above issue, you can probably change hidtest example to open one of your HID device instead of 04d8:003f.