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

