2013-03-28 09:14 AM
I call system_init function only in bootloader code :
Reset_handle for bootloader is void Reset_Handler(void) { /* FSMC Bank1 NOR/SRAM3 is used for the STM3210E-EVAL, if another Bank is required, then adjust the Register Addresses */ // SystemInit_ExtMemCtl(); SystemInit (); /* restore original stack pointer */ asm('' LDR r0, =_estack''); asm('' MSR msp, r0''); /* Initialize data and bss */ __Init_Data(); NVIC_SetVectorTable(0x08000000, 0x0); /* Call the application's entry point.*/ main(); } for appli is void Reset_Handler(void) { /* FSMC Bank1 NOR/SRAM3 is used for the STM3210E-EVAL, if another Bank is required, then adjust the Register Addresses */ //SystemInit_ExtMemCtl(); // SystemInit (); /* restore original stack pointer */ // asm('' LDR r0, =_estack''); // asm('' MSR msp, r0''); /* Initialize data and bss */ // __Init_Data(); NVIC_SetVectorTable(0x08000000, 0x1000); /* Call the application's entry point.*/ main(); } when i execute only the application it run correcttly (flashing led) when i execute bootloader with application without interruption (flashing led) work correctly but when i execute bootloader with application that use timer interruption don't work it is clear my problem? thanks