Skip to content

Commit

Permalink
fix: (jump2ISP) reset timer before jump
Browse files Browse the repository at this point in the history
  • Loading branch information
but0n committed Jan 28, 2018
1 parent a924b8c commit 9d3f6a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/module/avm_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)))();
}
Expand Down

0 comments on commit 9d3f6a4

Please sign in to comment.