How to use USB Device and I2C at the same time? (STM32F401CE)
Hello Community,
I can create projects with CubeMX and CubeIDE to transmit or transmit/receive USB Virtual Com data with a STM32F401CE.
As soon as the I2C peripheral is enabled, the USB fails. Commenting out the added lines indicates that this is the problem:
__HAL_RCC_GPIOB_CLK_ENABLE();
Some of the forum posts state that only one peripheral can be clocked from a PLL. The suggested code changes don't compile and the functions, structures, fields, and values are not present in my APIs. Apparently the API's have changed recently.
What is the solution to this problem?
Which document(s) explain how to resolve this?
Thank you,
Mark
- STM32CubeMX (Version 6.1.0)
- STM32CubeIDE (Version 1.5.0)
