cancel
Showing results for 
Search instead for 
Did you mean: 

SystemClock_Config initialization error.

shravan
Associate II
Posted on May 08, 2017 at 07:08

Hello all,

After flash/erase of my custom board(STM32F429ZET6), I have a weird behavior of a simple blinky code not working, when I checked with the code I found that control is lost in this following line of stm32f4xx_hal_rcc.c file. 

/* Get Start Tick*/

tickstart = HAL_GetTick();

Where HAL_GetTick() returns system ticks value.

My PPL configurations are as follows and I have used 25MHz crystal (HSE)

/*Initializes the CPU, AHB and APB busses clocks*/

RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;

RCC_OscInitStruct.HSEState = RCC_HSE_ON;

RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;

RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;

RCC_OscInitStruct.PLL.PLLM = 25;

RCC_OscInitStruct.PLL.PLLN = 360;

RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;

RCC_OscInitStruct.PLL.PLLQ = 7;
3 REPLIES 3
Imen.D
ST Employee
Posted on May 08, 2017 at 11:03

Hi, 

Could you please share your .ioc file and precise which CubeMx version are you using ?

Thanks

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on May 08, 2017 at 13:03

Hi,

I am using keil-5 IDE. Sorry I should have mentioned it prior. Let me know if you need to provide some extra information.

shravan
Associate II
Posted on May 29, 2017 at 06:52

Hi, Sorry for the delayed reply. I used STM32 cube to generate the code and a simple blinky program seems to work without any problem. I would like to thank you all for your support.