Skip to main content
Visitor II
August 24, 2021
Question

how stlinkv2 reset the mcu

  • August 24, 2021
  • 2 replies
  • 1776 views

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

    This topic has been closed for replies.

    2 replies

    Visitor II
    August 25, 2021

    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

    Visitor II
    September 23, 2021

    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