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

List:       openocd-development
Subject:    [OpenOCD-devel] [openocd:tickets] #255 LPC-Link2 Not Working as CMSIS-DAP
From:       Masatoshi Tateishi via OpenOCD-devel <openocd-devel () lists ! sourceforge ! net>
Date:       2020-06-30 8:37:07
Message-ID: /p/openocd/tickets/255/132838cc58d1f8efb9d6ee2460f16472668bfa5f.tickets () openocd ! p ! sourceforge ! net
[Download RAW message or body]

[Attachment #2 (multipart/related)]


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

> You did not replyed about the email address in the commit message, please let me \
> know.

Sorry, I forgot it.

Please change my e-mail address.

"Suggested-by: Masatoshi Tateishi <tateishim3@users.sourceforge.net>"
->
"Suggested-by: Masatoshi Tateishi <tateishim3@gmail.com>"


Thanks,
tateishi


---

** [tickets:#255] LPC-Link2 Not Working as CMSIS-DAP**

**Status:** new
**Milestone:** 0.9.0
**Created:** Mon Nov 04, 2019 01:35 AM UTC by Donald Bailey
**Last Updated:** Tue Jun 30, 2020 08:14 AM UTC
**Owner:** nobody


Hi,

I'm working on a project with the NXP LPC824 using VisualGDB and OpenOCD. Using the \
LPCXpresso824-MAX dev board I had no trouble programming and debugging using OpenOCD. \
I have recently built my first prototype PCB for this project and purchased an \
LPC-Link2 to use as a CMSIS-DAP debugger with it. However, I am unable to get the \
LPC-Link2 to work with OpenOCD. I keep getting a "CMSIS-DAP command CMD_INFO failed" \
error.

I have flashed the CMSIS-DAP firmware to the LPC-Link2, reinstalled the drivers, and \
followed any other troubleshooting tips I could find, but with no success. The \
LPC-Link2 works when flashed with the Segger J-Link firmware and also with the \
CMSIS-DAP firmware when debugging through MCUXpresso, so it does not appear to be a \
problem with the probe or the firmware but rather something specific to OpenOCD. \
There is nothing wrong with the target board because, as a workaround, I have removed \
the target MCU from the LPCXpresso824-MAX and am using its external debug header to \
debug the target MCU on my PCB.

I am using the version of OpenOCD that comes with VisualGDB (0.10.0) but I have also \
tried the 0.10.0 version that is from the MSYS2 repositories I am on Windows 10.

Here is the output of my version of OpenOCD with the LPC-Link2 with debug turned on.
```
openocd.exe -f interface/cmsis-dap.cfg -c "debug_level 4"
Open On-Chip Debugger 0.10.0 (2019-08-28) [https://github.com/sysprogs/openocd]
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
User : 14 6 options.c:60 configuration_output_handler(): debug_level: 4
User : 15 9 options.c:60 configuration_output_handler():
Info : 16 13 server.c:311 add_service(): Listening on port 6666 for tcl connections
Info : 17 16 server.c:311 add_service(): Listening on port 4444 for telnet \
                connections
Debug: 18 19 command.c:143 script_debug(): command - init init
Debug: 20 21 command.c:143 script_debug(): command - target target init
Debug: 22 23 command.c:143 script_debug(): command - target target names
Debug: 23 26 target.c:1431 handle_target_init_command(): Initializing targets...
Debug: 24 59 cmsis_dap_usb.c:251 cmsis_dap_usb_open(): Cannot read product string of \
                device 0x46d:0xc232
Debug: 25 65 cmsis_dap_usb.c:251 cmsis_dap_usb_open(): Cannot read product string of \
                device 0x46d:0xc231
Debug: 26 1075 cmsis_dap_usb.c:409 cmsis_dap_usb_xfer(): error reading data: (null)
Error: 27 1081 cmsis_dap_usb.c:503 cmsis_dap_cmd_DAP_Info(): CMSIS-DAP command \
                CMD_INFO failed.
Debug: 28 1088 command.c:630 run_command(): Command 'init' failed with error code \
-107 User : 29 1103 command.c:695 command_run_line():
```

Any ideas? I have tried the NXP forums and StackExchange but noone seems to know \
anything.

Regards,
Donald


---

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.
--===============1045729192616183003==
MIME-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: 7bit

<div class="markdown_content"><blockquote>
<p>You did not replyed about the email address in the commit message, please let me \
know.</p> </blockquote>
<p>Sorry, I forgot it.</p>
<p>Please change my e-mail address.</p>
<p>"Suggested-by: Masatoshi Tateishi <a \
href="mailto:tateishim3@users.sourceforge.net">tateishim3@users.sourceforge.net</a>"<br/>
                
-&gt;<br/>
"Suggested-by: Masatoshi Tateishi <a \
href="mailto:tateishim3@gmail.com">tateishim3@gmail.com</a>"</p> <p>Thanks,<br/>
tateishi</p>
<hr/>
<p><strong> <a class="alink" \
href="https://sourceforge.net/p/openocd/tickets/255/">[tickets:#255]</a> LPC-Link2 \
Not Working as CMSIS-DAP</strong></p> <p><strong>Status:</strong> new<br/>
<strong>Milestone:</strong> 0.9.0<br/>
<strong>Created:</strong> Mon Nov 04, 2019 01:35 AM UTC by Donald Bailey<br/>
<strong>Last Updated:</strong> Tue Jun 30, 2020 08:14 AM UTC<br/>
<strong>Owner:</strong> nobody</p>
<p>Hi,</p>
<p>I'm working on a project with the NXP LPC824 using VisualGDB and OpenOCD. Using \
the LPCXpresso824-MAX dev board I had no trouble programming and debugging using \
OpenOCD. I have recently built my first prototype PCB for this project and purchased \
an LPC-Link2 to use as a CMSIS-DAP debugger with it. However, I am unable to get the \
LPC-Link2 to work with OpenOCD. I keep getting a "CMSIS-DAP command CMD_INFO failed" \
error.</p> <p>I have flashed the CMSIS-DAP firmware to the LPC-Link2, reinstalled the \
drivers, and followed any other troubleshooting tips I could find, but with no \
success. The LPC-Link2 works when flashed with the Segger J-Link firmware and also \
with the CMSIS-DAP firmware when debugging through MCUXpresso, so it does not appear \
to be a problem with the probe or the firmware but rather something specific to \
OpenOCD. There is nothing wrong with the target board because, as a workaround, I \
have removed the target MCU from the LPCXpresso824-MAX and am using its external \
debug header to debug the target MCU on my PCB.</p> <p>I am using the version of \
OpenOCD that comes with VisualGDB (0.10.0) but I have also tried the 0.10.0 version \
that is from the MSYS2 repositories I am on Windows 10.</p> <p>Here is the output of \
my version of OpenOCD with the LPC-Link2 with debug turned on.</p> <div \
class="codehilite"><pre><span></span><span class="nv">openocd</span>.<span \
class="nv">exe</span> <span class="o">-</span><span class="nv">f</span> <span \
class="nv">interface</span><span class="o">/</span><span class="nv">cmsis</span><span \
class="o">-</span><span class="nv">dap</span>.<span class="nv">cfg</span> <span \
class="o">-</span><span class="nv">c</span> <span class="s2">"</span><span \
class="s">debug_level 4</span><span class="s2">"</span> <span class="nv">Open</span> \
<span class="nv">On</span><span class="o">-</span><span class="nv">Chip</span> <span \
class="nv">Debugger</span> <span class="mi">0</span>.<span class="mi">10</span>.<span \
class="mi">0</span> <span class="ss">(</span><span class="mi">2019</span><span \
class="o">-</span><span class="mi">08</span><span class="o">-</span><span \
class="mi">28</span><span class="ss">)</span> [<span class="nv">https</span>:<span \
class="o">//</span><span class="nv">github</span>.<span class="nv">com</span><span \
class="o">/</span><span class="nv">sysprogs</span><span class="o">/</span><span \
class="nv">openocd</span>] <span class="nv">Licensed</span> <span \
class="nv">under</span> <span class="nv">GNU</span> <span class="nv">GPL</span> <span \
class="nv">v2</span> <span class="k">For</span> <span class="nv">bug</span> <span \
class="nv">reports</span>, <span class="nv">read</span>  <span \
class="nv">http</span>:<span class="o">//</span><span class="nv">openocd</span>.<span \
class="nv">org</span><span class="o">/</span><span class="nv">doc</span><span \
class="o">/</span><span class="nv">doxygen</span><span class="o">/</span><span \
class="nv">bugs</span>.<span class="nv">html</span> <span class="nv">User</span> : \
<span class="mi">14</span> <span class="mi">6</span> <span \
class="nv">options</span>.<span class="nv">c</span>:<span class="mi">60</span> <span \
class="nv">configuration_output_handler</span><span class="ss">()</span>: <span \
class="nv">debug_level</span>: <span class="mi">4</span> <span class="nv">User</span> \
: <span class="mi">15</span> <span class="mi">9</span> <span \
class="nv">options</span>.<span class="nv">c</span>:<span class="mi">60</span> <span \
class="nv">configuration_output_handler</span><span class="ss">()</span>: <span \
class="nv">Info</span> : <span class="mi">16</span> <span class="mi">13</span> <span \
class="nv">server</span>.<span class="nv">c</span>:<span class="mi">311</span> <span \
class="nv">add_service</span><span class="ss">()</span>: <span \
class="nv">Listening</span> <span class="nv">on</span> <span class="nv">port</span> \
<span class="mi">6666</span> <span class="k">for</span> <span class="nv">tcl</span> \
<span class="nv">connections</span> <span class="nv">Info</span> : <span \
class="mi">17</span> <span class="mi">16</span> <span class="nv">server</span>.<span \
class="nv">c</span>:<span class="mi">311</span> <span \
class="nv">add_service</span><span class="ss">()</span>: <span \
class="nv">Listening</span> <span class="nv">on</span> <span class="nv">port</span> \
<span class="mi">4444</span> <span class="k">for</span> <span \
class="nv">telnet</span> <span class="nv">connections</span> <span \
class="nv">Debug</span>: <span class="mi">18</span> <span class="mi">19</span> <span \
class="nv">command</span>.<span class="nv">c</span>:<span class="mi">143</span> <span \
class="nv">script_debug</span><span class="ss">()</span>: <span \
class="nv">command</span> <span class="o">-</span> <span class="nv">init</span> <span \
class="nv">init</span> <span class="nv">Debug</span>: <span class="mi">20</span> \
<span class="mi">21</span> <span class="nv">command</span>.<span \
class="nv">c</span>:<span class="mi">143</span> <span \
class="nv">script_debug</span><span class="ss">()</span>: <span \
class="nv">command</span> <span class="o">-</span> <span class="nv">target</span> \
<span class="nv">target</span> <span class="nv">init</span> <span \
class="nv">Debug</span>: <span class="mi">22</span> <span class="mi">23</span> <span \
class="nv">command</span>.<span class="nv">c</span>:<span class="mi">143</span> <span \
class="nv">script_debug</span><span class="ss">()</span>: <span \
class="nv">command</span> <span class="o">-</span> <span class="nv">target</span> \
<span class="nv">target</span> <span class="nv">names</span> <span \
class="nv">Debug</span>: <span class="mi">23</span> <span class="mi">26</span> <span \
class="nv">target</span>.<span class="nv">c</span>:<span class="mi">1431</span> <span \
class="nv">handle_target_init_command</span><span class="ss">()</span>: <span \
class="nv">Initializing</span> <span class="nv">targets</span>... <span \
class="nv">Debug</span>: <span class="mi">24</span> <span class="mi">59</span> <span \
class="nv">cmsis_dap_usb</span>.<span class="nv">c</span>:<span class="mi">251</span> \
<span class="nv">cmsis_dap_usb_open</span><span class="ss">()</span>: <span \
class="nv">Cannot</span> <span class="nv">read</span> <span class="nv">product</span> \
<span class="nv">string</span> <span class="nv">of</span> <span \
class="nv">device</span> <span class="mi">0</span><span class="nv">x46d</span>:<span \
class="mi">0</span><span class="nv">xc232</span> <span class="nv">Debug</span>: <span \
class="mi">25</span> <span class="mi">65</span> <span \
class="nv">cmsis_dap_usb</span>.<span class="nv">c</span>:<span class="mi">251</span> \
<span class="nv">cmsis_dap_usb_open</span><span class="ss">()</span>: <span \
class="nv">Cannot</span> <span class="nv">read</span> <span class="nv">product</span> \
<span class="nv">string</span> <span class="nv">of</span> <span \
class="nv">device</span> <span class="mi">0</span><span class="nv">x46d</span>:<span \
class="mi">0</span><span class="nv">xc231</span> <span class="nv">Debug</span>: <span \
class="mi">26</span> <span class="mi">1075</span> <span \
class="nv">cmsis_dap_usb</span>.<span class="nv">c</span>:<span class="mi">409</span> \
<span class="nv">cmsis_dap_usb_xfer</span><span class="ss">()</span>: <span \
class="nv">error</span> <span class="nv">reading</span> <span class="nv">data</span>: \
<span class="ss">(</span><span class="nv">null</span><span class="ss">)</span> <span \
class="nv">Error</span>: <span class="mi">27</span> <span class="mi">1081</span> \
<span class="nv">cmsis_dap_usb</span>.<span class="nv">c</span>:<span \
class="mi">503</span> <span class="nv">cmsis_dap_cmd_DAP_Info</span><span \
class="ss">()</span>: <span class="nv">CMSIS</span><span class="o">-</span><span \
class="nv">DAP</span> <span class="nv">command</span> <span \
class="nv">CMD_INFO</span> <span class="nv">failed</span>. <span \
class="nv">Debug</span>: <span class="mi">28</span> <span class="mi">1088</span> \
<span class="nv">command</span>.<span class="nv">c</span>:<span class="mi">630</span> \
<span class="nv">run_command</span><span class="ss">()</span>: <span \
class="nv">Command</span> <span class="s1">'</span><span class="s">init</span><span \
class="s1">'</span> <span class="nv">failed</span> <span class="nv">with</span> <span \
class="nv">error</span> <span class="nv">code</span> <span class="o">-</span><span \
class="mi">107</span> <span class="nv">User</span> : <span class="mi">29</span> <span \
class="mi">1103</span> <span class="nv">command</span>.<span \
class="nv">c</span>:<span class="mi">695</span> <span \
class="nv">command_run_line</span><span class="ss">()</span>: </pre></div>


<p>Any ideas? I have tried the NXP forums and StackExchange but noone seems to know \
anything.</p> <p>Regards,<br/>
Donald</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>
--===============1045729192616183003==--





_______________________________________________
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