From 9d3f6a4158cebba2aad9ef369662ca81835ac52b Mon Sep 17 00:00:00 2001 From: but0n Date: Sun, 28 Jan 2018 19:59:46 +0800 Subject: [PATCH] fix: (jump2ISP) reset timer before jump --- libs/module/avm_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/module/avm_core.c b/libs/module/avm_core.c index 101559c..a2628ad 100644 --- a/libs/module/avm_core.c +++ b/libs/module/avm_core.c @@ -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)))(); }