STLink Error: STM32F407 Discovery Failed to upload code!

Trying to upload the code on the STM32F407 Discovery board using STM32CubeIDE. When I connect the board to the host PC. In Device Manager the ST-Link detects means shows up there. This means the Discovery board is detected properly by the host PC. But then when I tried to upload the code it showed ST-Link failed to upload the code
No description
No description
2 Replies
Saßì
Saßì13mo ago
If the ST-Link is detected in Device Manager but you're facing issues uploading the code, ensure you have the correct settings in STM32CubeIDE. Double-check the target configuration, debug settings, and make sure the firmware is compatible. Additionally, verify the connections between the host PC and the STM32F407 Discovery board. If the issue persists, consider checking for firmware updates for both STM32CubeIDE and the STM32F407 Discovery board.
Umesh Lokhande
Umesh LokhandeOP13mo ago
Hi, the programming errors have been resolved by the ST-Link firmware upgrade. Just to let others know the procedure, Go to Help on the top menu bar of STM32CubeIDE then Select the ST-Link Upgrade option. In the dialog box, under the dropdown menu select ST-Linkv2 and then Click on the Upgrade button. I have attached the image for more details. Note: Also make sure in the device manager the ST-Link detects. I hope this will be useful. Thanks!
No description
No description
Want results from more Discord servers?
Add your server