Skip to main content
pratheep
Associate II
December 27, 2019
Question

Hi, we have designed our own product which is using STM32F103 mcu . we are unable to download / debug using STlink/V2. i can download when i choose connect under reset option in debugger configuration but unable to run in debug mode. help on this

  • December 27, 2019
  • 5 replies
  • 1284 views

..

    This topic has been closed for replies.

    5 replies

    oeliks
    Associate III
    December 27, 2019

    Yep, cubemx by default disable swd in this mcu. You have to enable it. Check screenshot.

    Regenerate code. Download it under reset once.​

    0690X00000BuyaFQAR.png

    pratheep
    pratheepAuthor
    Associate II
    December 30, 2019

    Hi, Im able to run in debug mode after i configured the debug setting as serial wire but still i have to set debug configuration--> reset behaviour --> connect under reset . If i set it as none i'm unable to download.

    0690X00000BvTFwQAN.png

    Why i'm getting issues if i follow default settings?

    Tesla DeLorean
    Guru
    December 30, 2019

    >>Why i'm getting issues if i follow default settings?

    Perhaps there is some design issue, hard to diagnose with no actual detail.

    Connect under reset only works if you connect the reset pin properly, and it works.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    oeliks
    Associate III
    December 30, 2019

    First flash with new settings should be​ under reset. Next flashing should work without reset pin connected.

    pratheep
    pratheepAuthor
    Associate II
    January 2, 2020

    Yes, now its working fine.

    Thank you,