2023-07-19 09:16 AM
Hello, I would like to ask about the clock configuration of STM32F429.
I use STMcubeIDE for project configuration and my clock configuration is as follows:
The GPIO port is configured as follows:
I tried to turn on an LED light, but the program froze.
When using STMcubeIDE1.11.0, the program is in SystemClock_Config()
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) ! = HAL_OK)
{
Error_Handler();
}
An error occurs, and it is stuck
When using STMcubeIDE1.7.0, the LED light flashed quickly with the naked eye, and the simulation found that after running for a period of time, it ran out, about 1ms, and the suspect was still the reason for the clock configuration. Can you answer the question for me
2023-07-24 06:27 AM
First of all, I want to thank you for reporting.
I advise you to try this project with the same configuration using STM32CubeMx 6.9.0 and then generate the code on STM32CubeIDE 1.13.0.
By using the tools that I mentioned the project was running successfully and the LED is ON.
You can download STM32CubeMx 6.9.0 and STM32CubeIDE 1.13.0 from these two links:
STM32CubeMX - STM32Cube initialization code generator - STMicroelectronics
https://www.st.com/en/development-tools/stm32cubeide.html
You can share the project if it does not work.