STM32f103VET6 Bootloader jump problem.

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

franek.bmw
Posts: 57
Joined: Thu Mar 13, 2014 11:15 am
Has thanked: 2 times

Re: STM32f103VET6 Bootloader jump problem.

Post by franek.bmw »

Reset peripherals:

Code: Select all

           rccResetAPB1(0xFFFFFFFF);
           rccResetAPB2(0xFFFFFFFF);


Clear state of Systick:

Code: Select all

         SysTick->CTRL = 0; //disable SysTick
         SysTick->VAL = 0;


Clear state of NVIC:

Code: Select all

/* Disable all interrupts */
      uint8_t i;
      for(i=0; i<8; i++)
         NVIC->ICER[i] = NVIC->IABR[i];


Is it all good and enough?
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32f103VET6 Bootloader jump problem.

Post by Giovanni »

I think it is sufficient, just try.

Giovanni
Post Reply