Issue connecting LoRa E5 DevBoard with ST-LINK

I’m currently following the guide here: Wio-E5 Development Kit | Seeed Studio Wiki
and I’m having a hard time connecting the ST-LINK to the devboard.

I have a ST-LINK V3 mini on hand but I’m not sure it’s the right version.
The 3 pins on the devBoard are GND, CLK and DIO and on my ST-LINK I do have GND and CLK but I don’t have any DIO pin so I’m not sure what I should connect it to.

Also I’m not very familiar with STM32 programming so I’m not sure if I’m supposed to only connect the ST-LINK to my PC or if I have to connect both the ST-Link and the DevBoard via USB (2 usb cable at the same time).

If you need me to provide any other information fell free to ask.

Hi there,

Typically the dev board is powered by the Debugger/Programmer , Hit up the ST-LINK how to video, If you use the SWD power or VDD is also used in most cases.
Here is a basic video.

Here is the more advanced one :

HTH
GL :slight_smile: PJ :v:

fyi, threads about using the J-Link for the Xiao Dev board also show this info to and it is similar on that hardware also. :+1:

I was planning to get this in a recient Haul… but they sent the product to the wrong guy… so i didnt get it

whats up with that programmer? You cant just use Arduino?

Hello, thank you for the replies.
I have managed to get my hand on a ST-LINK v2 instead and managed to connect the board to the ST-Link properly (I think) but I still have issues programing the devBoard with STM32Cube Programmer.
In the documentation they simply say to " hold RESET Button of your Device, then click Connect and release RESET Button". I did just that a few times and got 3 different errors.
“No STM32 target found”: This one seems to occure when I release the button with the wrong timing.
“ST-Link Error (DEV_TARGET_CMD_ERR)” I’m not why this one is shown.
“Error: Cannot connect to access port 1! If you are trying to connect to a device with TrustZone enabled please try to connect with HotPlug mode. If you are trying to connect to a device which supports Debug Authentication with certificate or password, please open your device using it.”
I’m not sure where to go from here.

Which pins of youre ST-Link did you connect to which pins of the LaraE5Dev? Please tell us everything, including the power and GND pins.
Is youre ST-Linkv2 a clone or original?

The wiring is as described in the documentation Wio-E5 Development Kit | Seeed Studio Wiki
which is:

DevBoard / STlink
DIO / SWDIO (pin7)
CLK / SWCLK (pin9)
GND / GND (Pin4)

And then both the USB of the DevBoard and the USB of the STlink are connected to the USB of the computer. I verified in the Device manager, both of them seems to work properly.

Is youre ST-Linkv2 a clone or original?
What is the link to ST-Linkv2?

The LoRaE5Dev pins are 3.3V logic, but I am wondering what the volt logic is for the ST-Link pins.

Target VCC:The power supply from the application board is connected to the ST-LINK/V2 debugging and programming
board to ensure signal compatibility between the boards.

1 Like

The ST-Link is an original.
I’m not sure what you mean by the “link” to STlink V2 but it’s connected via USB A to a computer and I use STM32Cube Programmer to try to connect to it.
the only connection I have made are the one shown in the documentation but I can try connecting the Target VCC to the VCC pin to see if that change anything.

1 Like

Okay so I tried with the Target VCC pin and it worked!!
Thank you very much for your help.

1 Like

Hi there,

Awesome, So do the Man (@msfujino) A solid and mark post #7 as the Solution so others can Find it… :yum:
way to stay with it. :+1:

GL :slight_smile: PJ :v:

Sure, How do I do that? (I’m new to this forum)