cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with using discovery board as programmer for another stm32 board

atia
Associate

I have been using the generic stm32f407vgt6 discovery board as a programmer to program another stm32 board[stm32f103ret6]. I am able to do this by removing the 2 jumpers on the discovery board. While this works, stm32cubeide is unable to recognize the programmer after it has been unplugged for longer periods of time which is often overnight and I am unable to push code nor debug code either. This is the error I get 

Target no device found

Error in initializing ST-LINK device.
Reason: No device found on target.

After fiddling with the programmer it somehow "miraculously" works and I am able use it as a programmer again. But once I leave it unplugged for a longer perioed (usually overnight) I encounter the same error again the next time I wish to use it. Has anyone else experienced this issue before and how did you solve it.

PS:

Some of the fiddling I do include;

  1. I try to update the programmer from inside stm32cubeide and stm32cubeprogrammer.
  2. I put the jumpers back on and upload an empty sketch and this works. Sometimes it solves the issue and sometimes it doesn't.
0 REPLIES 0