forked from krisstakos/Hoverboard-Firmware-Hack-Gen2.1
-
Notifications
You must be signed in to change notification settings - Fork 30
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.
- Download STLinkReflash (Version 190812 tested)
- 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
- Run STLinkReflash.exe and accept, selecting option 1.
- 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
- Now in pyocd you should be able to run pyocd list and get result.
Credit to jamesyOung
SWD Flashers
SWD Flashing
- Flash via Keil
- Flash via PYocd
- Flash via StLink Utilities
- Flash via Stm32 Cube Programmer
- Flash via st-flash.exe
Submit New Layout