File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 22
22
#include "swd_host.h"
23
23
#include "info.h"
24
24
#include "target_family.h"
25
+ #include "cmsis_os2.h"
25
26
26
27
static void target_before_init_debug (void )
27
28
{
28
29
// This is for the hardware conflict (the EVK are not consider >2 debugger connection
29
- // situation) with another external debugger(such as JLINK). Before drag&pull, to force
30
- // RESET pin to high state ensure a successfully access. If external debugger not
31
- // connected. It's not necessary for doing that.
30
+ // situation) with another external debugger(such as JLINK). Before drag&pull, issue a
31
+ // hardware reset to bring the platform to a known state and also force
32
+ // RESET pin to high state ensure a successfully access.
33
+ swd_set_target_reset (1 );
34
+ osDelay (5 );
32
35
swd_set_target_reset (0 );
36
+ osDelay (5 );
33
37
}
34
38
35
39
static void prerun_target_config (void )
You can’t perform that action at this time.
0 commit comments