2024-03-18 10:29 PM - last edited on 2024-03-19 12:22 AM by SofLit
For a few days I have tried to load programs on my STM32, however when it comes to passing the program to the board, I get the error that "No target connected", I have already verified that the drivers are updated, that the computer recognizes the board and so on, possibly it is blocked, any solution for this? Help. For the programming of the programs I have used the Keil software
2024-03-18 10:37 PM
Hello @astroler and welcome to the ST Community :smiling_face_with_smiling_eyes:.
I suggest you to take a look at this post (STM32 Cube programmeur need to used instead of ST-LINK Utilities).
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-03-18 11:28 PM - edited 2024-03-18 11:30 PM
Because your computer can recognize the device (probably read voltage, SN etc ), your connection must work and I suspect read level protection
could you confirm the MCU doesn't have read level protection set, with a read protected device I see:
when using the STM32CubeProgrammer or command line, i see "Error! No STM32 Target found...."
when trying to program using the IDE, i see "No device found on target", but a different IDE or tool may phrase that differently
using STM32CubeProgrammer, connect to board (you will get connection errors, but should be able to edit the option bytes)
OB,RDP, and confirm the byte is 0xAA or level 0 read protection
you can set read protection by accident: if the option bytes are ever erased, RDP becomes 0xFF, and the device by default becomes read level 1 protected on next power cycle
2024-03-19 12:15 AM
What board are you talking about?
How is it wired up?
Are you using an ST-LINK/V2 or some other debug pod? How is that connected?
Let's at least start with some basic details..
2024-03-19 12:21 AM
+ Check the power supply of your MCU. If you're using one of the ST boards, check the jumper (must be fitted) that connects the power supply to VDD pins of the MCU.