pc-stlinkv2: Remove redundant read of CoreID.
This commit is contained in:
parent
aef055bb6f
commit
0d61106f90
|
@ -900,14 +900,8 @@ int stlink_enter_debug_swd(void)
|
||||||
STLINK_DEBUG_ENTER_SWD_NO_RESET};
|
STLINK_DEBUG_ENTER_SWD_NO_RESET};
|
||||||
uint8_t data[2];
|
uint8_t data[2];
|
||||||
DEBUG("Enter SWD\n");
|
DEBUG("Enter SWD\n");
|
||||||
if (send_recv_retry(cmd, 16, data, 2) != STLINK_ERROR_OK)
|
send_recv(cmd, 16, data, 2);
|
||||||
return -1;
|
return stlink_usb_error_check(data, true);
|
||||||
uint8_t cmd1[16] = {STLINK_DEBUG_COMMAND,
|
|
||||||
STLINK_DEBUG_READCOREID};
|
|
||||||
uint8_t data1[4];
|
|
||||||
send_recv(cmd1, 16, data1, 4);
|
|
||||||
stlink_usb_error_check(data, false);
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int stlink_enter_debug_jtag(void)
|
int stlink_enter_debug_jtag(void)
|
||||||
|
|
Loading…
Reference in New Issue