Skip to content

GitYun/DAP_Link_for_JLinkOB

Repository files navigation

DAP-Link (CMSIS-DAP) Fireware for JLink-OB Hardware

Note: The JLink-OB hardware base on STM32F103C8T6.

  • MCU: STM32F103C8
  • Debug Interface: SWD (TMS, TCK, nRESET, GND)
  • No Support JTAG interface mode
  • No Support SWO UART
  • No Support Virtual UART

SWD PIN

Note: Because of only support SWD mode, so JTAG's TDI, TDO, nTRST pins are unused.

SWD Interface STM32F103C8 Pin
SWDIO/TMS PA4
SWCLK/TCK PA3
nRESET PA2
GND GND
5V or 3.3V (optional) 5V or 3.3V

JTAG PIN

Note: If need support JTAG interface mode, only edit MAIN/DAP_config.h file:

/// Indicate that JTAG communication mode is available at the Debug Port.
/// This information is returned by the command \ref DAP_Info as part of <b>Capabilities</b>.
#define DAP_JTAG   0    ///< JTAG Mode: 1 = available, 0 = not available.
JTAG Interface STM32F103C8 Pin
TMS PA4
TCK PA3
nRESET PA2
nTRST PA8
TDO PA6
TDI PB0
GND GND
5V 5V
3.3V 3.3V

Support NXP MCUXproessIDE

For support MCUXproessIDE, the USB VID, PID and PRODUCT STRING must be modifed:

// usbd_desc.c

#define USBD_LANGID_STRING              0x0409
#define USBD_VID                        0x0D28
#define USBD_PID_FS                     0x0204
#define USBD_PRODUCT_STRING_FS          "JLinkOB CMSIS-DAP"

and also need to modify the probetable.csv file, it localed at MCUXpressoIDE_intalled_dir\ide\plugins\com.nxp.mcuxpresso.tools.bin.win32_11.5.1.202204071413\binaries\Scripts:

// probetable.csv

0x0D28, 0x0019, 64, 1, 0, 0, 0, "", 0x0000, -1, -1
//0x0D28, 0x0204, 64, 1, 0, 0, 0, "", 0x0000, -1, -1
0x0D28, 0x0204, 64, 1, 1, 0, 0, "", 0x0000, 3, -1

as above, we must add a be commented new entry to above at VID and PID is 0x0D28, 0x0204 line, then the MCUXproessIDE can identify the our custom CMSIS-Link.

About

JLink OB convert to DAP-Link (CMSIS-Link)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages