Update. Finally resolved the pinout and loading the bootloader for Here4 from the STM32CubeProgrammer using ST-Link V3. Here are the pinouts that worked. (and these are consistent with Interface Specification but for (Digikey PN for housing SM06B-SURS-TF(LF)(SN)-ND).
Here is the pin ordering that worked for me from the 6pin JST-SUR header inside the Here4 to the ST-LINK v3 20pin header.
On the Here4 6pin-JST-SUR
- VTref (β3.3 V)
- NRST
- SWO (not used for flashing)
- SWDIO
- SWCLK
- Ground
On the ST-LINK v3 20pin block:
VTref β Pin 1 (VTref)
NRST β Pin 15 (nSET)
SWDIO β Pin 7 (TMS/SWDIO)
SWCLK β Pin 9 (TCK/SWCLK)
GND β any even GND (4/6/8/10/12/14/16/18)
SWO β Pin 13 (TDO/SWO)(optional) - Did not use.
(A similar setup probably will also work with ST-LINK v2 but without connecting the vref voltage pin. As best as I was able to understand from going through testing.)
With this I was finally able to erase and reload bootloader. After that there was blinking Blue LED heartbeat, and no problem being recognized in SLCAN in Missionplanner. Updated firmware there.
thanks
