STM32F746 discovery CDC example
Hello, all, new here...
I’m pulling my hair out trying to convert some code from an 8051 to STM devices. I was able to convert my code to a STM32F407 disco without much trouble thinking back. I had some issues but overall I fought thru them.
I then purchased the STM32F746 discovery board thinking that I could take advantage of the larger display to turn a PC connected device into a stand along unit. I started with Tilen’s codde over on stm32-discovery and just couldn’t get the code working. I then found the examples int he STMF7 cube directory and tested the HID example where the board appears as a mouse and moves the cursor. No trouble at all.
I then started the CDC project and it compiles correctly, puts traces up on the LCD,etc, but the PC just won’t react when I plug in the USB cable to the HS port. I tried both HS and FS modes changing the compiler defines as taught in the instructions. Basically, the example starts with initializing the hal, clock, and then initializes the host usb as below:
USBH_Init(&hUSBHost, USBH_UserProcess,0) which points to USBH_UserProcess which never gets called after the remainder of the USB class registration, etc. I can plug, unplug cables, etc. and it is almost like the USB code isn’t initialized.
Anybody get this code working? I need USB VCP to send commands to the board. This code has the LCD logger working so that will help me get started working with the screen so that’s great. If I could only get the VCP working I would be rolling.
Thanks for looking.
Jerry