2014-10-17 01:04 AM
May I know where can I get the firmware example for STM32F2xx for USB Device VCP???
I tried this link, but the firmware is not working, the USB doesnt emurate!https://github.com/suapapa/stm32_library/tree/master/Project/USB_Device_Examples/VCPI tried to download the firmware example in ST website (STM Eval firmware exmaple) but it is using the HAL driver!I dont want to use the HAL driver, where can I get the sample code? #vcp #usb #stm322014-10-17 02:17 AM
Hi
You are looking the now discontinued USB OTG library :http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/LN1734/PF257882
2014-10-17 02:40 AM
2014-10-17 02:42 AM
You can refer to example in the ''USB on-the-go Host & Device library'' that you can download from
http://www.st.com/web/en/catalog/tools/FM147/CL1794/SC961/SS1743/LN1734/PF257882
. It is using the Standard Peripheral Library.-Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2014-10-17 02:46 AM
''But, I tried this code, it is not working!''
1st does it detect the USB device at all? Does a USB device appear and dissapear when you plug and unplug the STM32? If the device appears but is listed as 'Unknown Device' You need to load and install the PC side VCP driver2014-10-17 05:03 AM
The USB device is not detected at all...
but if I tried using the STM32F2xx_HAL code, it could detect the USB device and STM Virtual Com PortBut, I cant make it works using the standard peripheral library!2014-10-17 05:05 AM
Agree v2.1 is where I started. Worked on my F2 board.
If you have a problem with how the code is ported to your board you'll need to reflect on your design with respect to the target for the code. The target is expected to be the EVAL series boards, which use 25 MHz external crystals, if yours uses an 8 MHz clock, or whatever, then you'll need to adjust the PLL settings, and ensure the USB clock is configured to 48 MHz, and that the PLL is running.2014-10-19 10:39 PM
I have tried all the settings, but I still have no idea why it is not working when using the standard peripheral library
But, I have ported using the HAL library with the standard peripheral library and now it is workingThanks!