Skip to content

skrimix/stlinkreflash

Repository files navigation

Files for flashing ST-Link V2 clones with J-Link firmware:

  • STLinkReflash_for_clones_patched.exe - Modified version of SEGGER STLinkReflash utility. Patched to skip hardware and firmware checks, assumes ST-Link V2.
  • jlink_firmware.bin - J-Link firmware for manual flashing (ST-Link V2 only). Can be flashed with stlink-tool
  • stlink_restore_firmware.bin - Restore firmware. Not sure what it does, you'll likely need to use the STLinkUpgrade tool to complete the restore process anyway.

Manual flash and restore example (use this stlink-tool fork for bootloader restore switch):

$ ./stlink-tool/stlink-tool jlink_firmware.bin 
ST-Link v2/v2.1 Bootloader found
Firmware version : V2J47S7
Loader version : 14152
ST-Link ID : 00370041520000044E52504E
Firmware encryption key : 9EDD744A944E12E3D736F867EA424523
Current mode : 1
Type V2
............................................
$ ./stlink-tool/stlink-tool -jp && java -jar ~/Downloads/stsw-link007/AllPlatforms/STLinkUpgrade.jar -force_prog
Found SEGGER device (VID:PID = 1366:0101)
Attempting to switch J-Link to ST-Link bootloader...
Success! Device should now re-enumerate as ST-Link in DFU mode.
Waiting for re-enumeration...
ST-Link v2/v2.1 Bootloader found
Firmware version : V2J47S7
Loader version : 14152
ST-Link ID : 00370041520000044E52504E
Firmware encryption key : 9EDD744A944E12E3D736F867EA424523
Current mode : 1
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by com.st.stlinkinterface.e in an unnamed module (file:/home/skrimix/Downloads/stsw-link007/AllPlatforms/STLinkUpgrade.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled

Firmware version detected: V2J47S7
.................Upgrade is successful.
Version read: 2.47.7

See st-link-v2-clone for more information about flashing the clones.

About

ST-Link V2 clone to J-Link

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors