cancel
Showing results for 
Search instead for 
Did you mean: 

ST-Link V2 Utility cannot connect to SmarTag1 target.

TBurg.11
Associate II

Upgraded ST-Link to V2.J29.M18 STM32 Debug+Mass storage.

STM32 ST-LINK Utility is v4.2.0.0 USBDriver v5.0.3.0 CLI.exe v3.2.0.0

Removed both ST link jumpers .

Fresh CR2032 battery installed on STEVAL-SmarTag1

Connected directly on SWD (pin 1 correctly aligned)

Message Can not connect to target!

ST-Link V2 is connected to Nucleo L476 board.

ST-Link does connect to this board when ST-links reinstalled.

I have also tried a separated ST-Link V2. Also no connection to SmartTag1

How do I connect to the STEVAL-SmarTag1 to change firmware from default?

1 ACCEPTED SOLUTION

Accepted Solutions
Luca Pezzoni
ST Employee

Sorry,

Stupid question..

Do you have removed the 2 CN2 jumper on ST-Link for the Nucleo Board?

if you connect the SmarTag with ST-link and open the ST-LINk...

do you see this ?0690X000006C4RDQA0.png

Device family: STM32L03x 32k

and so on?

Because if you see L4... because if you don't see it... you are looking the STM32 of the Nucleo Board and not the SensorTile's one.

Ciao

Luca

View solution in original post

4 REPLIES 4
Luca Pezzoni
ST Employee

I had downloaded the STSW-LINK004 V.4.2.0, the latest available on st.com like you.

I had updated the st link firmware to V2.j29.M18 like you

I had tried with 2 different Nucleo Boards: one Nucleo-L053R8 and like you with one Nucleo-L475RG.

I had tried to flash one binary using the ST-link or with a simple Copy&paste using the file manager and all the times I am always able to flash the new firmware on EVAL-SmarTag1.

Please be sure to follow the instructions on Quick Start Guide:

https://www.st.com/content/ccc/resource/sales_and_marketing/presentation/product_presentation/group0/c1/77/bb/71/33/15/46/fb/fp-sns-smartag1_quick_start_guide/files/fp-sns-smartag1_quick_start_guide.pdf/jcr:content/translations/en.fp-sns-smartag1_quick_start_guide.pdf

See the image attached.

So remove the 2 jumpers for CN2 and, in order to be sure, attach the EVAL-SmarTag1 directly to the

Nucleo Board like the image highlighted with the Blue arrow.

0690X000006C21mQAC.png

You could try also to make before e Full Flash erase from ST-Link and after flash the new firmware.

For ST-Link Check also the settings, I'm using:

It's necessary to make the "connect under reset" because we use the Low Power mode for STM32.

best regards

Luca

Luca Pezzoni
ST Employee

Sorry it was missing the image with the setting for ST-LINk.

Sorry , these are the settings:

Luca

TBurg.11
Associate II

Thanks Luca.

I followed all your suggestions without connecting.

I then tried both plugging in the Smartag1 directly to the ST-Link SWD and

using the 6 wire cable with the Blue wire connected to CN3-Rx as shown in the photo.

I always get the NODE_L476RG to pop up with the FAIL.TXT message

" The interface firmware FAILED to reset/halt the target MCU "

Details.TXT is " Version: 0221

Build:  May 30 2018 10:37:36"

Last night I also upgraded to V2.J31.M21 STM32 Debug+Mass storage

I have the settings as shown in your screen shot.

Mine shows Detection Fail of the Target

Finally, I decided to check the battery again. Apparently my battery was cycling from 3.3 to 2.4

I had measured it out-of-circuit at 3.3 but decided to replace it with a completely virgin battery.

Finally, it connected again. Stupid battery lied to me!

I compared the Smartag1.bin with my compiled version and see major differences although I have not changed the original source code. What Optimization level does the sample binary have?

Luca Pezzoni
ST Employee

Sorry,

Stupid question..

Do you have removed the 2 CN2 jumper on ST-Link for the Nucleo Board?

if you connect the SmarTag with ST-link and open the ST-LINk...

do you see this ?0690X000006C4RDQA0.png

Device family: STM32L03x 32k

and so on?

Because if you see L4... because if you don't see it... you are looking the STM32 of the Nucleo Board and not the SensorTile's one.

Ciao

Luca