fix: (jump2ISP) reset timer before jump

This commit is contained in:
but0n 2018-01-28 19:59:46 +08:00
parent a924b8c861
commit 9d3f6a4158
No known key found for this signature in database
GPG Key ID: F626CB5FBC608FAA

View File

@ -11,6 +11,8 @@ avm_module_t avm_core_module_st = {
};
void jump2ISP() {
SysTick->CTRL = 0;
SysTick->VAL = 0;
__set_MSP(*(unsigned int *)ISP_ADDR);
((void (*)(void))*((unsigned int *)(ISP_ADDR + 4)))();
}