[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openocd-development
Subject:    [OpenOCD-devel] [openocd:tickets] Re: #149 ST-Link Unsupported status code 0x09
From:       "Paul Fertser" <dail () users ! sf ! net>
Date:       2017-03-31 15:51:36
Message-ID: /p/openocd/tickets/149/20170331155122.GC944 () home ! paul ! comp
[Download RAW message or body]

[Attachment #2 (multipart/related)]


--===============6225172380928642324==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

On Fri, Mar 31, 2017 at 02:45:31PM +0000, steve wrote:
> I tried Paul's suggestion on reset, and that enabled me to connect sufficiently
> to get back the ID code, although it did give an error message! Error: BUG:
> can't assert SRST

Does it mean you use a board config that lacks "reset_config
srst_only" when in fact this board has SRST properly connected?

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercerpav@gmail.com


---

** [tickets:#149] ST-Link Unsupported status code 0x09**

**Status:** new
**Milestone:** 0.9.0
**Created:** Fri Mar 31, 2017 11:44 AM UTC by steve
**Last Updated:** Fri Mar 31, 2017 03:10 PM UTC
**Owner:** nobody


Using STM32L031 Nucleo for detailed investigation, although suspect similar problem \
on STM32L050 Nucleo. Running ST-Link software 2J28M18 (latest as of now). OpenOCD \
release 0.10 final Fails to connect to target.
Relevant debug output:
~~~
Debug: 256 47 stlink_usb.c:817 stlink_usb_init_mode(): MODE: 0x01
Debug: 257 47 stlink_usb.c:442 stlink_usb_error_check(): unknown/unexpected STLINK \
                status code 0x9
Error: 258 47 stlink_usb.c:1779 stlink_usb_open(): init mode failed (unable to \
connect to the target) ~~~
Looking in the source, this status code does not appear to be recognised at all - \
presumably recent addition.

I tried reducing clock speed from 300kHz to 100kHz without any difference.

Note: I can connect to the target using ST-Link.


---

Sent from sourceforge.net because openocd-devel@lists.sourceforge.net 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.
--===============6225172380928642324==
MIME-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: 7bit

<div class="markdown_content"><p>On Fri, Mar 31, 2017 at 02:45:31PM +0000, steve \
wrote:</p> <blockquote>
<p>I tried Paul's suggestion on reset, and that enabled me to connect \
sufficiently<br/> to get back the ID code, although it did give an error message! \
Error: BUG:<br/> can't assert SRST</p>
</blockquote>
<p>Does it mean you use a board config that lacks "reset_config<br/>
srst_only" when in fact this board has SRST properly connected?</p>
<p>-- <br/>
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!<br/>
mailto:fercerpav@gmail.com</p>
<hr/>
<p><strong> <a class="alink" \
href="https://sourceforge.net/p/openocd/tickets/149/">[tickets:#149]</a> ST-Link \
Unsupported status code 0x09</strong></p> <p><strong>Status:</strong> new<br/>
<strong>Milestone:</strong> 0.9.0<br/>
<strong>Created:</strong> Fri Mar 31, 2017 11:44 AM UTC by steve<br/>
<strong>Last Updated:</strong> Fri Mar 31, 2017 03:10 PM UTC<br/>
<strong>Owner:</strong> nobody</p>
<p>Using STM32L031 Nucleo for detailed investigation, although suspect similar \
problem on STM32L050 Nucleo. Running ST-Link software 2J28M18 (latest as of now). \
OpenOCD release 0.10 final<br/> Fails to connect to target.<br/>
Relevant debug output:</p>
<div class="codehilite"><pre><span class="n">Debug</span><span class="o">:</span> \
<span class="mi">256</span> <span class="mi">47</span> <span \
class="n">stlink_usb</span><span class="o">.</span><span class="na">c</span><span \
class="o">:</span><span class="mi">817</span> <span \
class="n">stlink_usb_init_mode</span><span class="o">():</span> <span \
class="n">MODE</span><span class="o">:</span> <span class="mh">0x01</span> <span \
class="n">Debug</span><span class="o">:</span> <span class="mi">257</span> <span \
class="mi">47</span> <span class="n">stlink_usb</span><span class="o">.</span><span \
class="na">c</span><span class="o">:</span><span class="mi">442</span> <span \
class="n">stlink_usb_error_check</span><span class="o">():</span> <span \
class="n">unknown</span><span class="o">/</span><span class="n">unexpected</span> \
<span class="n">STLINK</span> <span class="n">status</span> <span \
class="n">code</span> <span class="mh">0x9</span> <span class="n">Error</span><span \
class="o">:</span> <span class="mi">258</span> <span class="mi">47</span> <span \
class="n">stlink_usb</span><span class="o">.</span><span class="na">c</span><span \
class="o">:</span><span class="mi">1779</span> <span \
class="n">stlink_usb_open</span><span class="o">():</span> <span \
class="n">init</span> <span class="n">mode</span> <span class="n">failed</span> <span \
class="o">(</span><span class="n">unable</span> <span class="n">to</span> <span \
class="n">connect</span> <span class="n">to</span> <span class="n">the</span> <span \
class="n">target</span><span class="o">)</span> </pre></div>


<p>Looking in the source, this status code does not appear to be recognised at all - \
presumably recent addition.</p> <p>I tried reducing clock speed from 300kHz to 100kHz \
without any difference.</p> <p>Note: I can connect to the target using ST-Link.</p>
<hr/>
<p>Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is \
subscribed to <a href="https://sourceforge.net/p/openocd/tickets/">https://sourceforge.net/p/openocd/tickets/</a></p>
 <p>To unsubscribe from further messages, a project admin can change settings at <a \
href="https://sourceforge.net/p/openocd/admin/tickets/options.">https://sourceforge.net/p/openocd/admin/tickets/options.</a> \
                Or, if this is a mailing list, you can unsubscribe from the mailing \
                list.</p></div>
--===============6225172380928642324==--



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic