2015-05-25 07:35 PM
Hi All,
I have generated code for a USB HID device, but it does not do anything, I mean my PC does not recognize anything. I have not changed anything in the code because I was assuming that it should at least get detected by the PC when I insert the USB cable.I think the problem is with the DISC at PC11 or CNTRL on PC10 port/pins. I did not find any code generated by CubeMX in this regard.I also want to have HID Descriptor according to but I don't know where to put this in the code.Can you suggest me any fix/solution please?Please let me know if you need more details. Thanks. #usb #cubemx #stm32f2015-05-25 08:00 PM
Hello,
My USB implementation works with USB pins in the state as generated by the CubeMX software (I think it is merely the reset state). The ST datasheet is not really clear (but may be I missed something...) since USB function is placed in the ''Additional functions'' column of the Pin definition table. You can use the WireShark tool to spy what's happen on the USB line https://wiki.wireshark.org/CaptureSetup/USB . I do it using a Linux box and I works perfect. This is useful because it may happen many things on the line even at application level nothing happens. Zirco2015-05-25 09:32 PM
Thanks, I tried that usb spy but it seems nothing happens at all.
This is the steps I took to generate code (for STMF103RBT6)2. CLOCK CONFIGURATION
3. CONFIGURATION
2015-05-25 09:42 PM
I tested various USB project examples of ST and in general devices enumerate immediately, without problems.
Use the ST Link or other JTAG/SW probe to debug. There are so many possible mistakes and miss-configurations that only a debug work can point out the issue. Zirco