Skip to content

Commit

Permalink
Fix MSD flashing for kl26z (microbit)
Browse files Browse the repository at this point in the history
Disable changes in [f1bb93e] for kl26z
  • Loading branch information
mathias-arm committed Sep 20, 2021
1 parent fb4b229 commit b811ad4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/daplink/interface/swd_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,8 @@ uint8_t swd_set_target_state_sw(target_state_t state)
osDelay(2);
swd_set_target_reset(0);
osDelay(2);


#ifndef INTERFACE_KL26Z
// Power down
// Per ADIv6 spec. Clear first CSYSPWRUPREQ followed by CDBGPWRUPREQ
if (!swd_read_dp(DP_CTRL_STAT, &val)) {
Expand Down Expand Up @@ -1079,7 +1080,8 @@ uint8_t swd_set_target_state_sw(target_state_t state)
return 0;
}
} while ((val & (CDBGPWRUPACK)) == 1);

#endif

swd_off();
break;

Expand Down

0 comments on commit b811ad4

Please sign in to comment.