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

Get a current version of STM32 Cube Programmer, v2.6.0 is a bit old​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
markpow
Associate III

I upgraded to the latest version.

0693W00000YA2q5QAD.pngThen I tried to connect with normal mode and I get the message

0693W00000YA2t4QAD.pngWhen I changed to HotPlug mode and pressed the Restet button on the WIO-5E mini, the programmer responded with several messages:

08:53:48 : ST-LINK SN : 38FF6E0630354E3953271743
 08:53:48 : ST-LINK FW : V2J37S7
 08:53:48 : Board    : --
 08:53:48 : Voltage   : 3.28V
 08:53:48 : SWD freq  : 4000 KHz
 08:53:48 : Connect mode: Hot Plug
 08:53:48 : Reset mode : Hardware reset
 08:53:48 : Device ID  : 0x497
 08:53:48 : Revision ID : Rev Z
 08:53:48 : Debug in Low Power mode is not supported for this device.
 08:53:49 : UPLOADING OPTION BYTES DATA ...
 08:53:49 :  Bank     : 0x00
 08:53:49 :  Address    : 0x58004020
 08:53:49 :  Size     : 96 Bytes
 08:53:49 :  Bank     : 0x01
 08:53:49 :  Address    : 0x58004080
 08:53:49 :  Size     : 8 Bytes
 08:53:49 : UPLOADING ...
 08:53:49 :  Size     : 1024 Bytes
 08:53:49 :  Address    : 0x8000000
 08:53:49 : Read progress:
 08:53:49 : Data read successfully
 08:53:49 : Time elapsed during the read operation is: 00:00:00.008

But, when I depress this button, it responds with messages:

08:55:38 : Error: Unable to get core ID
  08:55:38 : Error: Unable to get core ID
  08:55:38 : Error: Unable to get core ID
  08:55:38 : Warning: Connection to device 0x497 is lost
  08:55:39 : Disconnected from device.

I still can't program my WIO-5E mini device.

I saw this message above:

Debug in Low Power mode is not supported for this device.

So I have a question. Should I switch to 5V VCC? @Community member​ 

Peter BENSCH
ST Employee

We have already discussed the issue of ST-LINK/V2 and "certified resellers" several times. Please check your ST-LINK/V2 carefully to make sure it is not another counterfeit.

You can find discussions about fakes e.g. here, there or there.

Good luck!

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
AScha.3
Chief II

> Should I switch to 5V VCC?

NO , no , never ! would kill the chip ! only 3v3 is ok.

here > 08:53:48 : Device ID : 0x497 < STlink is connected to target : = Device ID : 0x497 Revision ID : Rev Z Device name : STM32WLxx

and now you can load program to flash also; (dont press reset now, it will stop connection ).

now click download symbol and select xx.bin file, you want to flash:

0693W00000YA3IYQA1.png

If you feel a post has answered your question, please click "Accept as Solution".

@Peter BENSCH​ 

I bought it from a certified reseller, Waveshare. I wrote this above.

markpow
Associate III

@AScha.3​ 

"and now you can load program to flash also; (dont press reset now, it will stop connection )."

The problem is that when I release the reset button, ST-LINK disconnects from the WIO-5E min. I can't connect to WIO-5 min when I only press the button once and depress it. And, of course, I can't download any program to it in both case. That is my problem.

Well, Waveshare also sells counterfeit ST-LINK/V2, e.g. this or that one - so much for being a Certified Reseller.

The 2nd URL (chinese version with the woman and the yellow background) is remarkably often a clone. So if you want to be sure, you should check the ST-LINK/V2: often trying to update the firmware to the latest version does not show a meaningful serial number, or you open the ST-LINK and look at the STM32F103 in use, as the previously linked threads show.

Good luck!

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

What do you mean when you say: "does not show a meaningful serial number"?

Is this serial number meaningful or not?

12:28:41 : ST-LINK SN  : 38FF6E0630354E3953271743
12:28:41 : ST-LINK FW  : V2J37S7

Well, so far the serial number looks unsuspicious.

Were you able to successfully upgrade the ST-LINK/V2 to V2J40S7?

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.