From eevblog. Turning st-link into j-link might require the following:
00 3C 4A -> 00 38 C0 08 3C 40 -> 08 38 C0