jlink: support J-Link BASE and J-Trace PRO

This commit is contained in:
Andrew Dennison 2023-05-29 11:22:33 +10:00
parent 23d65823aa
commit ec82dd6467
3 changed files with 15 additions and 2 deletions

View File

@ -182,6 +182,12 @@ jlink:
Description: SEGGER J-Link Debug Probes Description: SEGGER J-Link Debug Probes
URL: https://www.segger.com/products/debug-probes/j-link URL: https://www.segger.com/products/debug-probes/j-link
- Name: jlink_base
Description: SEGGER J-Link BASE Debug Probes
- Name: jtrace_pro
Description: SEGGER J-Trace PRO Debug Probes
jtag-smt2-nc: jtag-smt2-nc:

View File

@ -107,6 +107,8 @@ static std::map <std::string, cable_t> cable_list = {
{"ft4232", FTDI_SER(0x0403, 0x6011, FTDI_INTF_A, 0x08, 0x0B, 0x08, 0x0B)}, {"ft4232", FTDI_SER(0x0403, 0x6011, FTDI_INTF_A, 0x08, 0x0B, 0x08, 0x0B)},
{"ecpix5-debug", FTDI_SER(0x0403, 0x6010, FTDI_INTF_A, 0xF8, 0xFB, 0xFF, 0xFF)}, {"ecpix5-debug", FTDI_SER(0x0403, 0x6010, FTDI_INTF_A, 0xF8, 0xFB, 0xFF, 0xFF)},
{"jlink", CABLE_DEF(MODE_JLINK, 0x1366, 0x0105 )}, {"jlink", CABLE_DEF(MODE_JLINK, 0x1366, 0x0105 )},
{"jlink_base", CABLE_DEF(MODE_JLINK, 0x1366, 0x0101 )},
{"jtrace_pro", CABLE_DEF(MODE_JLINK, 0x1366, 0x1020 )},
{"jtag-smt2-nc", FTDI_SER(0x0403, 0x6014, FTDI_INTF_A, 0xe8, 0xeb, 0x00, 0x60)}, {"jtag-smt2-nc", FTDI_SER(0x0403, 0x6014, FTDI_INTF_A, 0xe8, 0xeb, 0x00, 0x60)},
{"lpc-link2", CMSIS_CL(0x1fc9, 0x0090 )}, {"lpc-link2", CMSIS_CL(0x1fc9, 0x0090 )},
{"orbtrace", CMSIS_CL(0x1209, 0x3443 )}, {"orbtrace", CMSIS_CL(0x1209, 0x3443 )},

View File

@ -118,11 +118,16 @@ class Jlink: public JtagInterface {
}; };
// JLink hardware type // JLink hardware type
const std::string jlink_hw_type[4] = { const std::string jlink_hw_type[9] = {
"J-Link", "J-Link",
"J-Trace", "J-Trace",
"Flasher", "Flasher",
"J-Link Pro" "J-Link Pro",
"",
"",
"",
"",
"J-Trace Pro"
}; };
// Jlink configuration structure // Jlink configuration structure