Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: jlink hw version #1570

Merged
merged 2 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/platforms/hosted/jlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ static char *jlink_hw_type_to_string(const uint8_t hw_type)
return "Flasher";
case JLINK_HARDWARE_VERSION_TYPE_JLINKPRO:
return "J-Link Pro";
case JLINK_HARDWARE_VERSION_TYPE_LPCLINK2:
return "LPC-Link2";
default:
return "Unknown";
}
Expand Down Expand Up @@ -302,7 +304,7 @@ static bool jlink_get_version(void)

jlink.hw_version = read_le4(buffer, 0);

DEBUG_INFO("Hardware Version: %s V%u.%u.%u\n",
DEBUG_INFO("Hardware version: %s v%u.%u.%u\n",
jlink_hw_type_to_string(JLINK_HARDWARE_VERSION_TYPE(jlink.hw_version)),
JLINK_HARDWARE_VERSION_MAJOR(jlink.hw_version), JLINK_HARDWARE_VERSION_MINOR(jlink.hw_version),
JLINK_HARDWARE_VERSION_REVISION(jlink.hw_version));
Expand Down
1 change: 1 addition & 0 deletions src/platforms/hosted/jlink_protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@
#define JLINK_HARDWARE_VERSION_TYPE_JTRACE 1U
#define JLINK_HARDWARE_VERSION_TYPE_FLASHER 2U
#define JLINK_HARDWARE_VERSION_TYPE_JLINKPRO 3U
#define JLINK_HARDWARE_VERSION_TYPE_LPCLINK2 18U

/* J-Link capabilities - JLINK_CMD_INFO_GET_PROBE_CAPABILITIES
*
Expand Down