Skip to content

Converting St Link V2 to J‐LInk

reed-dan edited this page Feb 17, 2024 · 5 revisions

Warning

Warning! This is a work in progress!

Converting a generic St Link V2 to Jlink

In some instances your generic St Link V2 will not be recognized by Keil or pyocd. In this situation we can use a utility by J-Link, and convert the St Link V2 to J-Link. In my case my generic St Link V2 came with a Geehy APM332FEPSCBT6, which wasn't recognized by pyocd or keil.

  1. Download STLinkReflash (Version 190812 tested)
  2. In order to convert the generic st link v2, we must modify the following offsets in STLinkReflash.exe *I used a piece of software called HxD to modify the offsets on my exe file.
Line From To
2566 3C 38
2567 40 C0
26B2 3C 38
26B3 4A C0

Or simply just download the Pre-modified version

  1. Run STLinkReflash.exe and accept, selecting option 1.
  2. Once you have your device converted to J-Link you will likely need to install the driver.
    • It can be found in your J-Link folder C:\Program Files\SEGGER\JLink\USBDriver)
    • Double clicking InstDrivers.exe
  3. Now in pyocd you should be able to run pyocd list and get result.

Credit to jamesyOung