STM32F4 Discovery stops connecting via ST-LINK with my end-of-degree project
I'm working on my end-of-degree project using an STM32F407 Discovery board. I have been working with it the last couple of months with no problems, doing the pin configuration with STM32CubeMX and developing the program in ARM Keil uVision 5.
Yesterday, while doing some debugging the board stopped being recognized by the program. When trying to load any program Keil says "No ST-LINK detected", 30 seconds before it worked perfectly.
After looking on the internet this is what I have been able to find.
- The microcontroller part of the board seems to work correctly, being able to run the last program I loaded. This includes among other things an LCD display, using the micro USB as a COM PORT and reading an ADC showing the reading on both the LCD and the COM PORT. This makes me believe that the problem must with the ST-LINK, while the microcontroller is working correctly and the board is properly powered and voltages at all the pins are ok.
- Other than that the board shows LEDs LD2 and LD8 lighted ON and COM LD1 lighted up Red.
- From the computer (Windows 10) I can see the board on the device manager and it is recognized as ST-LINK. If I access the board from windows there is a text document named FAIL.txt that contains the message: "The interface firmware FAILED to reset/halt the target MCU".
- From ST-LINK Utility I am able to connect with the board for a firmware update, but unable to connect to target afterwards, showing the message: "Can not connect to target! If you're trying to connect to a low freqyency application, please select a lower SWD Frecuency mode from Target->Settings menu." When trying to use Automatic Mode it stops at the message: "Waiting for device Nº 1...".
Any help would be appreciated; I have reached to a blocking point and cannot go on with my project.
Thanks.
