Skip to main content
VNisk.1
Associate
January 13, 2022
Question

Hi, I bought a Nucleo STM32F401RE board. Yeasterday the board was working fine in dimming led in A0 pin which was configured in PWM mode. Now I can't reprogram the board. See details for error message. PS. I'm a total beginner with microcontrollers

  • January 13, 2022
  • 5 replies
  • 2852 views

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 Held under Reset

Error in initializing ST-LINK device.

Reason: Target held under reset.

This topic has been closed for replies.

5 replies

Technical Moderator
January 13, 2022

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

Is BOOT0 pulled LOW?

Check the power VDDA​, and don't pull NRST low.

If a post answers your question, please close this topic by choosing "Select as Best" on that post.

This will help other users find that answer faster.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
VNisk.1
VNisk.1Author
Associate
January 14, 2022

I tried connecting BOOT0 to GND.

(CUBE programmer with SWD, normal, hardware reset)

Error: No STM32 target found!

So the problem still exists?

VNisk.1
VNisk.1Author
Associate
January 13, 2022

At the moment there is nothing connected to the Nucleo board.

I' will try to connect the BOOT0 to GND.

Should I let the NRST be unplugged or connect it to 3,3V?

What do you mean with "check power VDDA"?

TDK
January 13, 2022

"Target held under reset" suggests NRST is being held low. You should not be connecting this pin to anything, and certainly not driving it to 3.3V.

Can STM32CubeProgrammer connect?

"If you feel a post has answered your question, please click ""Accept as Solution""."
VNisk.1
VNisk.1Author
Associate
January 13, 2022

The STM32CubeProgrammer connected when I set the ST-Link mode: Hot plug. Still the Full chip erase fails.

Other modes have the same problem as earlier descriped.

Piranha
Principal III
January 14, 2022

Use "Connect Under Reset" mode.

VNisk.1
VNisk.1Author
Associate
January 15, 2022

I tried that. Still getting the same response: "Error: No STM32 target found!"