2017-10-26 07:26 PM
Cube Version: STM32Cube_FW_F4_V1.17.0
When I use bypass clock source for HSE,cube(4.23.0) generate init code:
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_LSI |RCC_OSCILLATORTYPE_HSE;
RCC_OscInitStruct.HSEState = RCC_HSE_BYPASS;
I find two solutions for this bug:
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_LSI
|RCC_OSCILLATORTYPE_HSE;
RCC_OscInitStruct.HSEState = RCC_HSE_BYPASS;
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSI
|RCC_OSCILLATORTYPE_HSE;
RCC_OscInitStruct.HSEState = RCC_HSE_BYPASS;
which one is right?
Thank you!
2017-10-27 03:43 AM
Hi
yong.Liu.003
,Please share your .ioc file. I don't reproduce such issue.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2017-10-30 02:25 AM
st.mcu
When I new a cube project in version
4.0, there is no problem. The attached ico project is created in cube version 4.0, and I migrate it to 4.0, than the bugoccurs.