2017-12-05 01:33 PM
I am setting up a USB OTG based project on the STM32F4 Discovery Board. I am using STM32CubeMX 4.23.0 and STM32Cube_FW_F4_v1.18.0. This is the same set up on my Windows 10 and Linux Mint 18.2 PCs and both have the same error.
The clock configuration tab is always indicating that the clock set up is in error. In the PLL Source Mux, the HSI input is selected and has a red box around it with the message 'PLL Mux should have HSE as input selected'. The HSE button is, of course, grayed out. It generates the code but I get warnings about an invalid clock configuration.
Is this a problem with STM32CubeMX? Is there actually an invalid clock configuration? Is the generated code safe to use?
#stm32f4-discovery #usb #stmcubemxSolved! Go to Solution.
2017-12-05 09:33 PM
It is necessary to set 'High Spedd clock(HSE)' to 'Crystal/Ceramic Resonator' with RCC on the Pinout tab.
HSI is not accurate and can not be used for USB.
2017-12-05 09:33 PM
It is necessary to set 'High Spedd clock(HSE)' to 'Crystal/Ceramic Resonator' with RCC on the Pinout tab.
HSI is not accurate and can not be used for USB.
2017-12-05 09:56 PM
Thanks! That did it. I did not know about setting the HSE in the RCC pinout.