STM32f429 start up code time
Hello All;
I am using STM32f429 ; my device should wakeup every 10 seconds to check the battery . We noticed that the time need after reset before going to the Main routine is about 17ms ! we found every time teh CYCCNT is 274683 cycle at 16MHZ internal osc just excuting the
SystemInit routine . also I can see it on oscolliscope. how can I reduce this time using the internal osc. ? Thank you in advanced
void SystemInit(void)
{ /* FPU settings ------------------------------------------------------------*/ // &sharpif (__FPU_PRESENT == 1) && (__FPU_USED == 1) SCB->CPACR |= ((3UL << 10*2)|(3UL << 11*2)); /* set CP10 and CP11 Full Access */ // &sharpendif /* Reset the RCC clock configuration to the default reset state ------------*/ /* Set HSION bit */ RCC->CR |= (uint32_t)0x00000001;/* Reset CFGR register */
RCC->CFGR = 0x00000000;/* Reset HSEON, CSSON and PLLON bits */
RCC->CR &= (uint32_t)0xFEF6FFFF;/* Reset PLLCFGR register */
RCC->PLLCFGR = 0x24003010;/* Reset HSEBYP bit */
RCC->CR &= (uint32_t)0xFFFBFFFF;/* Disable all interrupts */
RCC->CIR = 0x00000000; /* Configure the Vector Table location add offset address ------------------*/&sharpifdef VECT_TAB_SRAM SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */&sharpelse SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */&sharpendif}//----------------------
#systeminit-stm32f429