2023-04-04 06:07 PM
I'm new to the Cube toolchain and am attempting my first program. TIM2 is configured for PWM so I put a scope on one of the pins as a test the program runs but saw nothing. I had forgotten to remove the jumper, so I removed it to enable execution, but it didn't do anything. I replaced the jumper, and now the Nucleo's ST-link connection no longer working.
I can see the serial number appear, but I get the error "No STM32 target found". Others had similar behavior, but their recovery steps didn't work for me. How can I recover from this state?
Solved! Go to Solution.
2023-04-05 02:21 PM
I changed Cube Programmer to 'hardware reset' and its fine now.
2023-04-04 06:52 PM
Well if I had to guess, you may have mistakenly put the jumper across the ground and reset pin, or pin 3 and 4 of the 15 pin header. I believe the jumper should be across pin 4 and 5 of the 15 pin header when shipped.
Update: Actually I was wrong as it'll say target is under reset but you've got a different message.
2023-04-04 07:36 PM
The header is currently shorting D2 to ground which is how it shipped. If I did place the jumper on pins 3\4 in error, how do I recover once it reaches a bad state?
2023-04-05 02:21 PM
I changed Cube Programmer to 'hardware reset' and its fine now.