2021-10-05 06:31 AM
2021-10-05 06:42 AM
It sounds like you are connected to the chip directly and not through a debugger like ST-Link, which is required if you want to debug.
What board are you using? Custom board?
2021-10-05 06:52 AM
Hello @NKuma.11 and welcome to the Community :)
Make sure to update the ST-Link Firmware and use the latest version of CubeIDE.
Check if the USB cable is connected on the right USB port (ST-Link).
Maybe you have the same issue as described in this post.
Hope my answer helps you!
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
Feel free to come back here, if you still have issues.
Imen
2021-10-05 06:52 PM
Thank you for replying. Yes I connected it directly. Do I have to buy a ST-link, I thought it is in-built. I am sending a picture of my board.
2021-10-05 07:06 PM
On the majority of genuine ST boards, there is an on-board ST-Link used for debugging.
On that board, and most other clone/counterfeit boards out there, there is no ST-Link and you must get one.
https://stm32-base.org/boards/STM32F407VET6-STM32-F4VE-V2.0.html
2021-10-05 07:14 PM
Thank You for fast replying, just want to confirm if this board doesn't have any other onboard debugger like segger j link?
2021-10-05 07:36 PM
2021-10-05 07:45 PM
No debugger, you'd attach external one via 20-pin header.
You should be able to program via STM32 Cube Programmer in USB Connection Mode.