2016-09-01 11:34 PM
Hello.
I want to use the USB High Speed with the class CDC in device mode.
I am using the STM32F746G-DISCO board.
I have created a project with STM32CubeMX , here there is the configuration :
MiddleWare : USB DEVICE -> Classs for HS IP is set to CDC.
Peripherals :
RCC HSE and LSE are set to Resonator.
SYS : debug in wire mode.
USB_OTG_HS :
Ext Phy : Device Only.
I build the project with kiel.
And I have started it.
Application is running, I have a toggle led running
Windows 7 recognizes the USB : STMicroelectronics Virtual COM Port appears in the device manager , BUT I have a warning in the icon. : This peripheral can'be started : Code 10.
Driver installed : VCP_V1.4.0_Setup.exe
Unfortunatey, there is no example in the STM32Cube_FW_F7_V1.4.0\Projects\STM32746G-Discovery\Applications\USB_Device
for the class CDC Standalone.
Can you help me please.
I have attached 2 files :
CDC_Windows.png : It's a screen shot of the issue in the device manager.
CDC_Device.ioc : is the file configuration for the STM32CubeMx.
#stm32f7-discovery-kitSolved! Go to Solution.
2016-09-02 03:30 AM
Hi,
I recommend you to increase heap and stack sizes.You can start with a working USB example to identify what is going wrong in your case and confirm if the problem here seems related to the hardware or software environment.For example, you can get inspired from this CDC Standalone application to confirm that device is working properly: STM32Cube_FW_F7_V1.4.0\Projects\STM32756G_EVAL\Applications\USB_Device\CDC_StandaloneRegards2016-09-02 03:30 AM
Hi,
I recommend you to increase heap and stack sizes.You can start with a working USB example to identify what is going wrong in your case and confirm if the problem here seems related to the hardware or software environment.For example, you can get inspired from this CDC Standalone application to confirm that device is working properly: STM32Cube_FW_F7_V1.4.0\Projects\STM32756G_EVAL\Applications\USB_Device\CDC_StandaloneRegards2016-09-02 05:07 AM
Hello.
I tried to increase the Heap and stack size , and it is working well !!!I am able to send and receive data to an hyperterminal.Thanks a lot !!2017-04-09 06:46 PM
This also works for me - the Default size of heap and stack Memory in the example Project i had build by cubeMX / Keil
does'nt work proper. I had use 0x400 and 0x800, just the double to get work them!
In Addition, the cubeMX generates a wrong Timing Parameter function for the System. The StM32F746NG Discovery board does not Support 216Mhz reasoned by the DRAM Speed Limit of 100Mhz.
Well, now the Windows 10 V1607 Response with a valid com4 entry of an USB 2.0 device.
Thanks for the helpfull comment. I had not got this issue on my Radar.2017-04-22 09:18 AM
Did you use the vcom? I am not find out how i the receive of the Serial datastream is done by the hal. their are are some rx routines in the hal Support lib but all of them are declared at private. I don't find an example how the vcom's usb-cdc Needs to be used.
any help will be appreciate.