USB and L4 discovery board
Want to add USB serial commuication to my L469 discovery board. Started with the USB device HAL sample ‘CDC-standalone’ from L469_eval board. Same cpu so how hard could it be?
Changed the LED related code (L429 has only 2leds) and switched the clock to use
USB_USE_LSE_MSI_CLOCK since there is no external clock available with L429 discovery.
Changed to include stm32l476g_discovery.h (instead of stm32l476g_eval.h)
Finally modified the different pinout for the usb (usbd_conf.c), so I adapted to PC11 and PC12 for VBUS + FS_ID in HAL_PCD_MspInit(). PA11/PA12 are used for DP/DM signal line.
Code builds, runs fine and idles in the main loop.Now when I plug in a USB cable I should see some action. But nothing is happening. The green LED6 turns on.
But I do not see any enumeration going. I do not even see a single USB interrupt in OTG_FS_IRQHandler().
Thought I ticked all the boxes, but something is missing!
Shouldn’t the code from the L469-eval board work very similiar on the L469-discovery?
Any pointers are appreciated!
mat