cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with STM32F4 Discovery board - Cannot upload code

KWolf.1
Associate

Hello everyone,

I'm having trouble uploading code to my STM32F4 Discovery board. I'm using the STM32CubeIDE software and have followed all the necessary steps to create a new project and generate code for the board.

However, when I try to upload the code using ST-Link, I receive an error message saying "Cannot connect to target". I have tried resetting the board and the ST-Link, as well as checking the connections, but nothing seems to work.

Has anyone else encountered this issue before? Any suggestions on how to troubleshoot and resolve this problem would be greatly appreciated.

Thank you in advance for your help!

1 REPLY 1

Try with STM32 Cube Programmer directly.

Try Connect Under Reset options.

Erase current content.

Make sure user app doesn't disable debug connection or reconfigure pins.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..