cancel
Showing results for 
Search instead for 
Did you mean: 

stm32_IAP

kaabiines
Associate II
Posted on March 28, 2013 at 17:14

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
0 REPLIES 0