---

** [tickets:#146] Connection under reset on ST-LINK-v2 doesn't work-NRST looks 
like inverted?**

**Status:** new
**Milestone:** 0.9.0
**Created:** Mon Mar 06, 2017 11:38 PM UTC by RayeR
**Last Updated:** Mon Mar 06, 2017 11:38 PM UTC
**Owner:** nobody


Hi, I use ST-LINK-v2 (the FW updated to the latest ver. V2J27M15) from nucleo 
board for programming an external target with STM32F030C6T6 MCU via CN4 (VDD, 
SWDCLK, GND, SWDIO, NRST are connected to the target). In case if I reconfigure 
GPIO used by SWD by a mistake I need to use "Connection Under Reset" option in 
ST-Link Windows utility to be able to connect. It works fine. But I'd like to 
do the same with OpenOCD (0.10.0-00113-g0f83948 24.1.2017). When SWD GPIOs are 
not reconfigued then OpenOCD works fine. But I cannot reproduce "Connection 
Under Reset" behavior. I tried many reset_config options, e.g. reset_config 
srst_only srst_nogate connect_assert_srst that I had found on this forum but 
nothing works. I hooked the scope to ST-LINK and watch what's going on. If 
connect_assert_srst then it starts to control NRST pin but it seems the signal 
is inverted! And I cannot find any OpenOCD option how to invert it back to 
desired level (normal level should be 1, active 0).

So let's see, here's the scope of how ST-Link utility is doing "Connection 
Under Reset":
http://rayer.g6.cz/1tmp/nrst_stlink.png

And here's how OpenOCD do it with **reset_config srst_only srst_nogate 
connect_assert_srst**
http://rayer.g6.cz/1tmp/nrst_openocd.png

Could it be an OpenOCD bug? Or did I miss something?
BTW I also found that delays options like adapter_nsrst_delay doesn't change 
the waveform when different values used.


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to