Closed dragonman225 closed 4 years ago
Maybe there is something useful here? https://github.com/SushiBits/libusb_stm32/commit/4ce92607ee97278aa76892fdada73311960c412c
I switch to the driver for STM32F446 and everything in the demo works. Thank you!
Hello, I'm trying to port this library to STM32F469, using a 32F469IDISCOVERY development board.
First I add
STM32F469xx
to the group of STM32F4 devices inusb.h
,then I modify
usbd_stm32f429_otgfs.c
andusbd_stm32f429_otghs.c
since the name of the VBUS sense register field is different, as shown below.Finally, I add the following init code to
cdc_startup.c
. (Note that I haven't handle theUSBD_PRIMARY_OTGHS
case.)I can compile the demo code with this linker script, which is generated by CubeMX, and the following Makefile rule:
But the device would not enumerate, although if I trace the execution with a debugger, I could see that
cdc_control()
andcdc_getdesc()
callbacks got called.I wonder if I did something wrong or actually the USB control mechanism of STM32F469 is different from other F4 devices. Will keep debugging but if someone could point out the problems I would appreciate!