Skip to content

Commit

Permalink
Merge pull request #592 from brianesquilona/fix_hcsr_maskints
Browse files Browse the repository at this point in the history
Revert masking of interrupts after flash algo function execute
  • Loading branch information
brianesquilona authored Feb 20, 2019
2 parents 195119d + 3dc06b3 commit 9a72454
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/daplink/interface/swd_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,11 @@ uint8_t swd_flash_syscall_exec(const program_syscall_t *sysCallParam, uint32_t e
if (!swd_read_core_register(0, &state.r[0])) {
return 0;
}

//remove the C_MASKINTS
if (!swd_write_word(DBG_HCSR, DBGKEY | C_DEBUGEN | C_HALT)) {
return 0;
}

// Flash functions return 0 if successful.
if (state.r[0] != 0) {
Expand Down

0 comments on commit 9a72454

Please sign in to comment.