No STM32 target found!
Hello, first of all I'm completely new with microcontrollers and I really don't know anything. This is my first experience trying out one. I'm a total noob.
I'm using STM32F103C8T6 with STLink V2. I have 4 units of STM32 and 3 of STLink. I upgraded the firmware of all my STLinks in CubeProgrammer succesfully with no errors.
I succesfully programmed a USB that simulates a keyboard that periodically sends the letter "r" to the PC. I also programmed two versions of a 16 button gamepad; one that uses polling and another that uses interrupts to detect button presses. I have the keyboard and one of the gamepad programs actually flashed into 2 of my STM32 right now. I also have a version of the 16 button gamepad in a ".bin" file that I copied with CubeProgrammer.
So, everything was working properly; I flashed and tested 2 of my 4 STM32 multiple times with one STLink, as well as mass erased their memory also multiple times. But today I was rewriting the "interrupt gamepad program", and after flashing it into the STM32 everything stopped working. Now I am getting a "No STM32 target found!" with all the boards and STLinks... none of them work.
I am getting this error:
11:15:28 : UR connection mode is defined with the HWrst reset mode
11:15:28 : ST-LINK SN : 16004A002933353739303541
11:15:28 : ST-LINK FW : V2J45S7
11:15:28 : Board : --
11:15:28 : Voltage : 3.14V
11:15:28 : Error: Unable to get core ID
11:15:28 : Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
I tried:
- Using all of my 3 pc USB ports.
- Checking with all my boards and all my STLinks (2 of the boards and 2 of the STLinks were virgin. Still same fail for all 4 boards and 3 STLinks).
- Checking the wiring was done properly.
- Connecting via CubeProgrammer with many different combinations of modes (Under reset, normal) reset modes (Hardware, Software, Core) and frequencies(4000, 1800, 950...)
- Connecting via the (to my knowledge) outdated STM32 ST-LINK Utility also with different config options (still same No STM32 target found! error).
- Reinstalling dpinst_amd64.exe driver from en.stsw-link009.zip download.
I don't get it... I was happily coding a couple hours ago and now suddenly I get this No STM32 target found! with all my boards (even the unused virgin ones).
Any solutions? If more info is needed, tell me and I will try to provide it.
Thanks.
