'How to fix STM32CubeProgrammer No STM32 Target Found
Hello guys
Any one here faced this problem before ?
After I run my code into my stm32f446re I couldn't upload any code after my last code and give me this error " No STM32 Target Found "
I tried to do these options :-
1- Update my ST-Link driver and run it as "dpinst_amd64".
2- Update my ST-Link firmware , It's was ran and updated it from STM32CubeProgrammer as in photo.
but Doesn't work any of those solution.
Solution 1:[1]
I Used Stm32 St-Link Utility to solve this problem.
I connect with the board with "connect under reset" after that I did "full chip erase" option.
Solution 2:[2]
First connect your board
Click to Refresh on Right Hand Side of STM32CubeProgrammer
First Select ST-Link for connecting from drop-down above ST-Link Configuration.
The set the configuration as:
Port : SWD Mode : Normal Reset Mode : Normal
Then Press the reset and hold it and click "Connect" button. And just after pressing release the reset button. Now, your board should get connected
Solution 3:[3]
The board I am using is STM32L4S5 (b-l4s5i-iot01a) And changing the "Reset mode" on the right-hand side to 'Hardware reset' works for me!
Solution 4:[4]
If you are using the command line, you might also want to try:
STM32_Programmer_CLI.exe -c port=SWD reset=HWrst -d "<your-bin-file>" 0x08000000 -v -HardRst
The Hardware Reset 'reset=HWrst
' is specified as an option for "--connect
/-c
" in the CLI utility (see STM32_Programmer_CLI.exe --help
).
I haven't looked but the option should probably be somewhere in the STM32CubeProgrammer UI as well.
Solution 5:[5]
Hello referring to my case I found the solution yesterday, many are going through the same problem as me.
What I did was just use the following pins from the SWD connector.
I used pin 2 - SWCLK, pin 3 - GND, and pin 4 - SWDIO
Pin 1 of the SWD connector is a fake 3v3, so I used pin 4 of the CN6 connector that provides 3v3.
Solution 6:[6]
I've the same problem in windows, but in Linux it works fine. Also as mentioned above with st-utility.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Mina Karam |
Solution 2 | Sarbjeet Singh |
Solution 3 | Terrence Alvianto |
Solution 4 | Kibonge Murphy |
Solution 5 | Flávio Correa |
Solution 6 | royka |