Skip to content

Commit

Permalink
x64 Jlink lib name : JLink_x64.dll
Browse files Browse the repository at this point in the history
  • Loading branch information
jfdelnero committed Apr 30, 2024
1 parent ec5fdba commit 3a13ca4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib_jtag_core/src/drivers/jlink_jtag/jlink_jtag_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ unsigned char jlink_in_buf[64 * 1024];

#if defined(WIN32)

#define MODULE_NAME "JLinkARM.dll"
#if defined(_WIN64)
#define MODULE_NAME "JLink_x64.dll"
#else
#define MODULE_NAME "JLinkARM.dll"
#endif

typedef const char* (WINAPIV * JL_OPENEX)(const char* pfLog, void*);
typedef int (WINAPIV * JL_JTAG_STORERAW)(const unsigned char* pTDI, const unsigned char* pTMS, unsigned int NumBits);
Expand Down Expand Up @@ -154,7 +158,7 @@ int drv_JLINK_Detect(jtag_core * jc)
}
else
{
jtagcore_logs_printf(jc,MSG_INFO_1,"drv_JLINK_Detect : %s JLink library not found !\r\n",MODULE_NAME);
jtagcore_logs_printf(jc,MSG_INFO_1,"drv_JLINK_Detect : %s JLink library not found !\r\n",MODULE_NAME);
}

return 0;
Expand Down

0 comments on commit 3a13ca4

Please sign in to comment.