if (stlink_current_mode(sl) != STLINK_DEV_DEBUG_MODE)
stlink_enter_swd_mode(sl);
- if (o.reset)
+ if (o.reset){
+ stlink_jtag_reset(sl,2);
stlink_reset(sl);
+ }
// Disable DMA - Set All DMA CCR Registers to zero. - AKS 1/7/2013
if (sl->chip_id == STM32_CHIPID_F4)
}
}
- if (o.reset)
+ if (o.reset){
+ stlink_jtag_reset(sl,2);
stlink_reset(sl);
+ }
/* success */
err = 0;