]> git.sur5r.net Git - openocd/commitdiff
Zach Welch <zw@superlucidity.net> fix jlink reset
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 22 Apr 2009 10:59:23 +0000 (10:59 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 22 Apr 2009 10:59:23 +0000 (10:59 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1507 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/jtag/jlink.c

index 9886c3b3a6ea30e171cfc86890cd7c4e0d1d09e4..44a1ad6d723e402fbb15cbd6fd27b7c40cd18f15 100644 (file)
@@ -463,6 +463,8 @@ static void jlink_reset(int trst, int srst)
        if (srst == 0)
        {
                jlink_simple_command(EMU_CMD_HW_RESET1);
+               jlink_end_state(TAP_RESET);
+               jlink_state_move();
        }
        else if (srst == 1)
        {
@@ -472,6 +474,8 @@ static void jlink_reset(int trst, int srst)
        if (trst == 0)
        {
                jlink_simple_command(EMU_CMD_HW_TRST1);
+               jlink_end_state(TAP_RESET);
+               jlink_state_move();
        }
        else if (trst == 1)
        {