cancel
Showing results for 
Search instead for 
Did you mean: 

how stlinkv2 reset the mcu

jduo.1
Associate II

I connect the stlinkv2 to stm8. then the reset button on board not work, Is there a way to reset the stm8 using stlinkv2?.

thanks

2 REPLIES 2
Paul1
Lead

Post your circuit for your reset pin connection, showing switch and any R or C components. Missing 10K pullup or 100n capacitor may cause such issues.

  • There is a circuit in an STLinkV2 document showing proper connection to allow external Reset, I don't have it handy
  • There are usually circuits in the STM datasheets showing debugger circuit connections
  • There are usually example debugger connection circuits on the demo boards, download a few demo board schematics.
  • There is also an option in the STM32CubeIDE for setting how the STLink performs reset during programming.
  • Ref: http://www.emcu.eu/wiring-from-st-link-v2-and-stm8-for-debug-and-programming/

I've seen this stuff online, but don't have time to dig for it right now.

Paul

Philipp Krause
Senior II

The stm8 can be reset using ST-Link/V2.

E.g. stm8flash resets it after writing the program (you can also tell stm8flash to write 0 Bytes to just reset without writing anything). Since stm8flash is FOSS, you can look at the source to see how it is done: https://github.com/vdudouyt/stm8flash