cancel
Showing results for 
Search instead for 
Did you mean: 

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

pratheep
Associate II
 
5 REPLIES 5
oeliks
Senior

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
Associate II

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?

>>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
Up vote any posts that you find helpful, it shows what's working..
oeliks
Senior

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

Yes, now its working fine.

Thank you,