I made a USB device based on STM32 blue pill board (STM32F103C8T6) having USB-C female socket. It works well when connected via a type C to type C cable. The Blue Pill board itself doesn't have any resistors on CC1/CC2 USB pins, but the cable I use has a 1k resistor internally on CC1, so my device gets 5 V from the computer.
Now I'm trying to get the USB negotiation working on my own PCB, which has a USB male connector. The idea is to plug it directly into a laptop without any cables. I have a 1k resistor on CC1 and 5k on CC2, not sure if that's correct, but at least I can get 5 V supply from any device.
Now, the problem is that nothing happens when I plug my device into the laptop. I expect at least a message in system logs like usb 3-1.1: new full-speed USB device number 28 using xhci_hcd
, but it says nothing at all. I tried replacing the microcontroller, but with no luck. How to make USB male plug device be recognized properly by a computer? Is such a mode even supported?
All connections are checked multiple times. D+/D- lines are connected through 22 ohms resistors as on Blue Pill.