Skip to content

Commit

Permalink
update rtt attach
Browse files Browse the repository at this point in the history
Signed-off-by: Karel Blavka <[email protected]>
  • Loading branch information
blavka committed May 13, 2024
1 parent df96bd7 commit 1d5c462
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/chester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ void Chester::attach()
QTimer timer;
timer.setSingleShot(true);

JLINKARM_SetResetType(JLINKARM_RESET_TYPE_NO_RESET);

const char *err = JLINKARM_OpenEx(Chester::jlinkLogHandler, Chester::jlinkLogHandler);

if (err != NULL) {
Expand All @@ -127,6 +129,8 @@ void Chester::attach()
JLINKARM_TIF_Select(JLINKARM_TIF_SWD);
JLINKARM_SetSpeed(4000);

JLINKARM_SetResetType(JLINKARM_RESET_TYPE_NO_RESET);

if (JLINKARM_Connect() < 0) {
return errAttachFailed("Call `JLINKARM_Connect` failed");
}
Expand Down

0 comments on commit 1d5c462

Please sign in to comment.