Re: STM32f103VET6 Bootloader jump problem.
Posted: Thu Jun 18, 2015 11:30 am
Reset peripherals:
Clear state of Systick:
Clear state of NVIC:
Is it all good and enough?
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?