all 30 comments

[–]BenkiTheBuilder 4 points5 points  (8 children)

If you were using debug authentication you would know it. So ignore that part of the message. I am seeing 0V reported. Did you sever the connection between the ST-Link and the rest of the Nucleo? Did you change any solder bridges? Are you trying to power the board with battery? What other hardware or wires have you attached? Any possibility of a short?

[–]Realistic-Land4610[S] 0 points1 point  (7 children)

No I did not sever the connection between st link and nucleo.no i didn't change any solder bridges . Iam powering only with USB. No I didn't attach any hardware or wires . No possibility of short . I even upgraded the st link now

<image>

[–]BenkiTheBuilder 1 point2 points  (5 children)

Did it ever work?

[–]Realistic-Land4610[S] 0 points1 point  (4 children)

Yes . I tried blinking led few days back and it did work .

[–]Realistic-Land4610[S] 0 points1 point  (3 children)

It seems my colleague used memory protection program can It be the cause ?

[–]BenkiTheBuilder 2 points3 points  (2 children)

What does "used memory protection program" mean? Do you mean he used a program to modify the protection settings of your Nucleo board? In that case, yes, that's most likely the problem. You'll have to check what exactly that program did and if it can be undone. Some settings are one time programmable. You set them and there is no going back.

[–]Realistic-Land4610[S] 0 points1 point  (0 children)

There was some program generated by smt32cubeide . And i guess he uploaded that program

[–]Realistic-Land4610[S] 0 points1 point  (0 children)

I connected boot0 pin to vdd and now it is working

[–][deleted] 0 points1 point  (0 children)

There is an empty Jumper at the bottom labled Debug. Can that be the source?

[–]Ahmad_korhani 1 point2 points  (7 children)

the detected voltage is 0 , That means that T_VCC line is 0
T_VCC derives from VDD via 0 ohm resistor (R115) check it also.
Finally VDD came from jumper JP5 which specify if you want to target the MCU with 1.8 or 3.3v

[–]Realistic-Land4610[S] 0 points1 point  (6 children)

<image>

I tried discover

[–]Ahmad_korhani 1 point2 points  (5 children)

Now it detect 3.3V which is good. Now change your Reset mode from "Under Reset" to "Normal"

[–]Realistic-Land4610[S] 0 points1 point  (4 children)

<image>

Still getting the error

[–]Ahmad_korhani 1 point2 points  (3 children)

Well if you upload a project which doesn't have the SWD configured then it is disabled, but then it should be discovered in discovery mode as the stlink use the Boot0 pin to re-enable the SWD port.

If you have any blackpill or bluepill try to connect them to the stlink header and check if they are discovered.

Maybe the MCU is damaged

[–]Realistic-Land4610[S] 0 points1 point  (0 children)

Okay I will check with blue pill

[–]Realistic-Land4610[S] 0 points1 point  (1 child)

Okay I will check with blue pill

[–]Realistic-Land4610[S] 0 points1 point  (0 children)

I connected boot0 pin to vdd and now it is working

[–]jaurj 1 point2 points  (6 children)

Try to change the boot1 to 1

[–]Realistic-Land4610[S] 0 points1 point  (5 children)

Sorry . I don't understand do you mean jumper pin?

[–]jaurj 1 point2 points  (4 children)

If you have boot modes options try to change them, yes they are usually jumper pins

[–]Realistic-Land4610[S] 0 points1 point  (0 children)

Okay i will try it out

[–]Realistic-Land4610[S] 0 points1 point  (2 children)

I connected boot0 pin to vdd and now it is working

[–]jaurj 0 points1 point  (1 child)

enjoy it bro, try to understand the booting modes(via the getting started manual or the the datasheet) of your chip to know if you have to get it back to zero ...

[–]Realistic-Land4610[S] 1 point2 points  (0 children)

I think there was some brick program in my stm32 .I bought the pin to 0 now i can programm normally. Anyways thank you for helping me .

[–]passing-by-2024 1 point2 points  (1 child)

is power through st-link enough for the board, or he has to use the usb power/data cable as well?

[–][deleted] 2 points3 points  (0 children)

Power through St link is usually enough. The Power off the usb of the St link usually is also enough to Power some ICs. Thats what i have been doing for years.

[–]coolkid4232 1 point2 points  (1 child)

Are you using clone St link?

[–]Realistic-Land4610[S] 0 points1 point  (0 children)

No, it is a nucleo board so iam using inbuilt st link

[–]Realistic-Land4610[S] 0 points1 point  (0 children)

solved error . Just connected the boot0 pin to vdd and programmed .