2016-01-06 10:57 AM
I'm working on a usb project based on the STM32F469I-Discovery.
My project use STM32F4xx_DSP_StdPeriph_Lib_V1.6.1, however it always occurs some error when usb device plugged.Finally, i find the function RCC_PLLSAIConfig() has bug. void RCC_PLLSAIConfig(uint32_t PLLSAIN, uint32_t PLLSAIP, uint32_t PLLSAIQ, uint32_t PLLSAIR) { /* Check the parameters */ assert_param(IS_RCC_PLLSAIN_VALUE(PLLSAIN)); assert_param(IS_RCC_PLLSAIP_VALUE(PLLSAIP)); assert_param(IS_RCC_PLLSAIQ_VALUE(PLLSAIQ)); assert_param(IS_RCC_PLLSAIR_VALUE(PLLSAIR)); RCC->PLLSAICFGR = (PLLSAIN << 6) | (PLLSAIP << 16) | (PLLSAIQ << 24) | (PLLSAIR << 28); } The correct is that: void RCC_PLLSAIConfig(uint32_t PLLSAIN, uint32_t PLLSAIP, uint32_t PLLSAIQ, uint32_t PLLSAIR) { /* Check the parameters */ assert_param(IS_RCC_PLLSAIN_VALUE(PLLSAIN)); assert_param(IS_RCC_PLLSAIP_VALUE(PLLSAIP)); assert_param(IS_RCC_PLLSAIQ_VALUE(PLLSAIQ)); assert_param(IS_RCC_PLLSAIR_VALUE(PLLSAIR)); RCC->PLLSAICFGR = (PLLSAIN << 6) | (((PLLSAIP >> 1) - 1) << 16) | (PLLSAIQ << 24) | (PLLSAIR << 28); } #stm32f4692016-01-07 02:40 AM
Hi kaiqin.lin,
Thank you for your feedback. The issue has been reported internally.-Syrine-2016-01-13 12:14 AM
Hi kaiqin.lin,
Your reported issue is confirmed by our team and will be fixed in coming release of the STM32cubeF4 package.Thank you very much for your contribution to the enhancement of our STM32 related solutions.-Syrine-