(Re)Init cJTAG before move JTAG to reset state

Signed-off-by: mrv96 <mrv96@users.noreply.github.com>
This commit is contained in:
mrv96 2022-10-07 16:07:33 +02:00
parent 29983fd98d
commit 0c6121d92a
1 changed files with 1 additions and 1 deletions

View File

@ -686,10 +686,10 @@ static void ftdi_execute_command(struct jtag_command *cmd)
ftdi_execute_runtest(cmd);
break;
case JTAG_TLR_RESET:
ftdi_execute_statemove(cmd);
#if BUILD_FTDI_CJTAG == 1
cjtag_reset_online_activate(); /* put the target (back) into selected cJTAG mode */
#endif
ftdi_execute_statemove(cmd);
break;
case JTAG_PATHMOVE:
ftdi_execute_pathmove(cmd);