Skip to main content
shravan
Associate II
May 8, 2017
Question

SystemClock_Config initialization error.

  • May 8, 2017
  • 3 replies
  • 768 views
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;
    This topic has been closed for replies.

    3 replies

    ST Technical Moderator
    May 8, 2017
    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

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    shravan
    shravanAuthor
    Associate II
    May 8, 2017
    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
    shravanAuthor
    Associate II
    May 29, 2017
    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.