cancel
Showing results for 
Search instead for 
Did you mean: 

How to flash a STEVAL-PTOOL1V1 ? No device found on target.

LBlen.1
Associate

The board is a STEVAL-PTOOL1V1. The setup was tried on different boards.

The programmer board used is a STLINK-V3SET.

I followed the instructions on the `Getting started` document of the STEVAL-PTOOL1V1.

I power the board through J1 and J2 with a power supply supplying 12V.

I connected J8 with a jumper.

I connected the SWD pins to the STLINKS.

Here is the setup and the documentation for the SWD connector of the PTOOL1V1.

0693W00000FBtoNQAT.jpg0693W00000FBto8QAD.png 

In order to communicate with the board, I tried:

- Uploading the example project of the STEVAL-PTOOL1V1 by clicking on the debbuger icon of the CubeIDE

- Clicking "Connect" in STM32CubeProgrammer

- Clicking "Connect to the target" in STM32 ST-LINK Utility

- Using the Open source version of the STMicroelectronics STLINK Tools : stlink

Here are the errors messages for the first three:

```

STMicroelectronics ST-LINK GDB server. Version 5.9.1

Copyright (c) 2021, STMicroelectronics. All rights reserved.

Starting server with the following options:

Persistent Mode : Disabled

Logging Level : 1

Listen Port Number : 61234

Status Refresh Delay : 15s

Verbose Mode : Disabled

SWD Debug : Enabled

InitWhile : Enabled

Target no device found

Error in initializing ST-LINK device.

Reason: No device found on target.

```

```

09:04:16 : STM32CubeProgrammer API v2.8.0

09:21:46 : Warning: Device changed, refreshing...

09:21:46 : ST-LINK SN : 002C00343156501620323443

09:21:46 : ST-LINK FW : V3J8M3B5S1

09:21:46 : Board : STLINK-V3SET

09:21:46 : Voltage : 3.21V

09:21:46 : No STM32 target found!

09:21:46 : ST-LINK SN : 002C00343156501620323443

09:21:46 : ST-LINK FW : V3J8M3B5S1

09:21:46 : Board : STLINK-V3SET

09:21:46 : Voltage : 3.23V

09:21:46 : Error: No STM32 target found!

```

```

09:22:17 : Can not connect to target!

If you're trying to connect to an STM32W1xx device, please select Normal or HotPlug mode from Target->Settings menu.

If you're trying to connect to a low frequency application , please select a lower SWD Frequency mode from Target->Settings menu.

09:22:23 : No target connected

```

In STM32CubeProgrammer, I tried changing the configuration of the STLINK. The port is at `SWD`. I tried `Hardware`, `Core` and `Software` for the reset mode. I tried `Normal`, `Under Reset` and `Hot plug` for the mode. Same result with every configurations.

When the board is powered, I have a tension of 3.3V on the VDD of the SWD connector.

Any idea why the flashing process is not working ?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @TLe M.1​ ,

I think the problem is a typo in the documentation. Data and clock lines of the SWD are swapped.

Could you please check if swapping the two lines solves the issue?

Hope this helps you! I'll be waiting for your feedback.

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

6 REPLIES 6
Imen.D
ST Employee

Hello @LBlen.1​ and welcome to the Community :)

Have you upgraded the ST-link firmware?

Have you checked if this behavior has occurred with other boards? to confirm if the problem is with this board or not.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
LBlen.1
Associate

Hi,

Yes I upgraded the firmware through STM32CubeProgrammer.

I ordered and received a STEVAL-SPIN3204, and I was able to flash the card with the embedded ST-LINK.

I ordered some new STEVAL-PTOOL1V1, and I'll comment on the case when I get them and test them.

Louis.

TLe M.1
Associate

Hello @Imen DAHMEN​ 

I work with @LBlen.1​.

So far we have tested the setup described above and in ST's tutorial with 8 different STEVAL-PTOOL1V1 boards coming from 2 separate orders. Each time we get the same result.

We used the same setup (STLINKV3) to program other stm32 boards with no issues.

At this point and if we are unable to find a solution with your help, we will have to stop using the STEVAL-PTOOL1V1 board as it seems to still be an unfinished product.

Sincerely,

TLM

CEO Nimble ONe

Hi @TLe M.1​ ,

I think the problem is a typo in the documentation. Data and clock lines of the SWD are swapped.

Could you please check if swapping the two lines solves the issue?

Hope this helps you! I'll be waiting for your feedback.

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Imen.D
ST Employee

I think that your issue has been solved with my proposal update.

Glad to know this :)

An update of all the related docs is planned to correct the typo.

Thanks for your contribution, and don't hesitate to come back to the Community if you have any issue/feedback.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Has the documentation been updated, it still appears to be incorrect?