cancel
Showing results for 
Search instead for 
Did you mean: 

How to program WIO-5E mini (Seeed) using ST-LINK/V2 mini (Vaweshare)

markpow
Associate III

I bought ST-LINK/V2 from a certified reseller, and I have WIO-5E mini with STM32WL5JC from [Seeed.com](https://Seeed.com) on the board. This WIO-5E was already programmed by another ST-LINK/V2. I connected WIO-5E to ST-LINK as required. I want to reprogam WIO-5MINI using this programator. But STM32Programmer answered:

0693W00000YA1JoQAL.pngWhat should I do so STM32Programmer will see STM32WL5CJ from the WIO-5E mini board?

21 REPLIES 21
markpow
Associate III

For everyone who will search for a solution.

Steps to attach WIO-5E mini to ST-LINK.

Wire connections:

ST-LINK

1 => VCC

7 => SWDIO

9 => SWCLK

15 => NRST

20 => GND

0693W00000YAIKKQA5.png 

WIO-5E pins mini should be connected to pins with the same names as for ST-LINK.

0693W00000YAIKjQAP.pngOpen the STM32Programmer, press the button Connect (look at settings before)

0693W00000YAIJ3QAP.pngYou should see the following response (without another serial number for the ST-LINK).

0693W00000YAIMQQA5.pngSo next, run STM32CubeIDE, go to option Run => Debug configuration, switch to de Debugger tab.

Do the following steps:

  1. Click on the Shared ST-LINK checkbox.
  2. Press the ST-LINK SN checkbox and press the Scan button. The textbox should be fulfilled with the serial number of the ST-LINK programmer.
  3. Press on the Show command line button. Copy that command into the command prompt and run it.
  4. Press on the Connect to remote GDB server radio button
  5. Press the Apply button.
  6. Press the Debug button.

0693W00000YAIPFQA5.png0693W00000YAIPPQA5.pngAnd finally:

0693W00000YAIPjQAP.png 

The end of the story.

PS. Next time, when you will try to debug, don't forget about point 3 from the above list.

rodolphe086
Associate

Hello everyone , i followed up the conversation after a week of research i can't fix my problem.

here my setup :

20240810_201033.jpg

here my logs:

---- Opened the serial port /dev/tty.usbserial-1120 ----
15:88:09:CF:4F:3C
###### DevEui: 00:80:E1:15:05:99:98:B8
####Hz at DR 0
1s524:MAC txDone
6s558:RX_1 on freq 868100000 Hz at DR 0
6s755:IRQ_RX_TX_TIMEOUT
6s756:MAC rxTimeOut
7s558:RX_2 on freq 869525000 Hz at DR 0
7s755:IRQ_RX_TX_TIMEOUT
7s756:MAC rxTimeOut

###### = JOIN FAILED
30s041:temp= 26
30s041:VDDA= 254
30s045:TX on freq 868300000 Hz at DR 0
31s532:MAC txDone
36s566:RX_1 on freq 868300000 Hz at DR 0
36s763:IRQ_RX_TX_TIMEOUT
36s764:MAC rxTimeOut
37s566:RX_2 on freq 869525000 Hz at DR 0
37s763:IRQ_RX_TX_TIMEOUT
37s764:MAC rxTimeOut

###### = JOIN FAILED

How  can i reboot to the builtin state.

Capture d’écran 2024-08-10 à 20.17.54.png

 Impossible for me to connect back with my stlink v2.

Can someone help me to find out my problem many thanks in advance.