2025-04-15 3:01 PM
I have bought USB-CAN adapter based on STM32F042C6 microcontroller with open source code:
https://github.com/candle-usb/candleLight_fw/tree/master
With very new pc adapter doesn't work, windows doesn't recognize driver, with old pc windows use automatically winusb.sys.
If i install manually winusb using Zadig i see in Device manager that device is recognized but i cannot communicate with him.
I try to many pc and seems that the problem is related to host controller, in new PCs with host controller 3.1 extensible doesn't work, in PCs where it is also EHCI the device work.
Someone have some similar problem?
XHCI must be compatible with old device so I think that there is some error in firmware.
Thanks for help
Gianni
2025-04-15 7:29 PM - edited 2025-04-15 7:35 PM
On the new PC, is secure boot enabled?
To install manually, you don't even need zadig. Just install the winusb driver from device manager.
> seems that the problem is related to host controller
Then try to plug the device thru a good USB 2.0 hub.
2025-04-16 12:23 AM
2025-04-16 12:48 AM
@ZioGianni wrote:I have bought USB-CAN adapter based on STM32F042C6 microcontroller with open source code:
https://github.com/candle-usb/candleLight_fw/tree/master
With very new pc adapter doesn't work
So have you raised an issue with the project:
https://github.com/candle-usb/candleLight_fw/issues
How about this one:
https://github.com/candle-usb/candleLight_fw/issues/20
2025-04-16 4:15 AM
Aha this is a composite device with two interfaces. When you install the driver manually, make sure that winusb is installed on the 1st interface (custom), not on the main device (the parent of two interfaces).
2025-04-16 11:21 PM
The issue #20 seems to be similar but i don't understand how to try, maybe i need a F4devboard to do the same test.
To me seems that the problem is that:
0xE0 0x0409 Request failed with 0x0000001F
In the firmware i see that 0xE0 is defined and used and i don't understand why doesn't work only on very new PC with all 3.x USB ports.
Is there a way to ask to Microsoft to ignore the string descriptor?
Maybe modifying win register?
2025-04-16 11:22 PM
Yes, it is a composite device because there is also DFU interface.
I have installed driver manually on both interaces of composite device and not in the main device but nothing changed.
2025-04-17 4:18 AM - edited 2025-04-17 4:21 AM
Well if the winusb driver successfully installs on the device (no errors appear in eventlog and device manager) it looks like a software problem. A USB bus analyzer can help to understand is this a hardware or software problem. Whoever sells this device should be informed.