<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>mbed gcc/gdb development?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2852/mbed-gcc-gdb-development</link><description>I recently received a nrf51822 mbed board. 
 I went with the mbed board over the EK because I figured it was more &amp;#39;open&amp;#39;, without realizing exactly what mbed was. I played around with some of the test apps, which seem to work just fine, but what I really</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Jul 2014 12:00:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2852/mbed-gcc-gdb-development" /><item><title>RE: mbed gcc/gdb development?</title><link>https://devzone.nordicsemi.com/thread/10878?ContentTypeID=1</link><pubDate>Tue, 01 Jul 2014 12:00:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d908b9d-2c6e-4c2b-9839-549b0245a9b9</guid><dc:creator>T&amp;#252;ze</dc:creator><description>&lt;p&gt;The pyUSB is now updated to use EP0 for HID outputs. You can try it out with the latest version of the Nordic branch of pyOCD on github,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mbed gcc/gdb development?</title><link>https://devzone.nordicsemi.com/thread/10877?ContentTypeID=1</link><pubDate>Mon, 23 Jun 2014 14:35:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0c6e063-4196-4c46-9efc-6ae6f29087f7</guid><dc:creator>T&amp;#252;ze</dc:creator><description>&lt;p&gt;Hi Clem. Sorry for the delayed response. Yes your observations are correct. The nrf mkit uses ep0 for HID OUT instead of a dedicated endpoint. The pyUSB lib used by pyOCD does not seem to support this, it will require someone to take a look at the pyOCD library or the pyUSB to fix this issue. I will update you if anyone gets a chance to look at it here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mbed gcc/gdb development?</title><link>https://devzone.nordicsemi.com/thread/10876?ContentTypeID=1</link><pubDate>Fri, 20 Jun 2014 10:32:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5018082f-7aea-4d33-9e20-1cc94c185218</guid><dc:creator>Clem Taylor</dc:creator><description>&lt;p&gt;I suspect the issue is that hidapi and pyusb query the device differently. The hidapi library test program seems to be able to find the board and read from it.&lt;/p&gt;
&lt;p&gt;See: &lt;a href="http://paste.debian.net/105971/"&gt;paste.debian.net/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However when I built cython-hidapi and force pyOCD to use the hidapiusb (via PYOCD_USB_BACKEND=hidapiusb) , it segfaults in chooseBoard() someplace, joy...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mbed gcc/gdb development?</title><link>https://devzone.nordicsemi.com/thread/10875?ContentTypeID=1</link><pubDate>Fri, 20 Jun 2014 08:09:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22ab8736-aaee-4f9b-a48f-b50dba4ff026</guid><dc:creator>Clem Taylor</dc:creator><description>&lt;p&gt;So this makes sense, lsusb shows only &amp;#39;EP 3 IN&amp;#39; but no out end point.&lt;/p&gt;
&lt;p&gt;Here is the lsusb -vv for the mbed board:
&lt;a href="http://paste.debian.net/105943/"&gt;paste.debian.net/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mbed gcc/gdb development?</title><link>https://devzone.nordicsemi.com/thread/10874?ContentTypeID=1</link><pubDate>Fri, 20 Jun 2014 08:06:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d52c8b3-ae9d-41c2-b434-950b07b579a3</guid><dc:creator>Clem Taylor</dc:creator><description>&lt;p&gt;I pulled that change, without any difference. It was trying both gdb_server.py and basic_test.py. It doesn&amp;#39;t get past chooseBoard(), so  don&amp;#39;t think it that change will matter.&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t get past the getAllConnectedInterface() loop.&lt;/p&gt;
&lt;p&gt;I think the problem is that it isn&amp;#39;t finding the out endpoint, not sure why.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mbed gcc/gdb development?</title><link>https://devzone.nordicsemi.com/thread/10873?ContentTypeID=1</link><pubDate>Fri, 20 Jun 2014 06:54:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0487bbd-b4a0-447d-90ed-4e1721031c4e</guid><dc:creator>T&amp;#252;ze</dc:creator><description>&lt;p&gt;just updated the test file, so it should run without any problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mbed gcc/gdb development?</title><link>https://devzone.nordicsemi.com/thread/10872?ContentTypeID=1</link><pubDate>Fri, 20 Jun 2014 06:37:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5867cdb9-30be-4a31-83e4-c2517b127e9d</guid><dc:creator>T&amp;#252;ze</dc:creator><description>&lt;p&gt;The test files are not yet updated to include nrf as target. But you can write your own python scripts to access nrf as well as use gdb (see the examples provided at the github README.md)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mbed gcc/gdb development?</title><link>https://devzone.nordicsemi.com/thread/10880?ContentTypeID=1</link><pubDate>Fri, 20 Jun 2014 04:37:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77eafe4d-878c-4273-a0e7-d6a142b986ba</guid><dc:creator>Clem Taylor</dc:creator><description>&lt;p&gt;I upgraded the mbed firmware and tried it again in a Windows 7 VM and the sniffer worked. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mbed gcc/gdb development?</title><link>https://devzone.nordicsemi.com/thread/10871?ContentTypeID=1</link><pubDate>Fri, 20 Jun 2014 04:36:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebd3a1ab-fa97-4cd9-9218-fafd545e2b6d</guid><dc:creator>Clem Taylor</dc:creator><description>&lt;p&gt;The nordic github version also can&amp;#39;t seem to find the endpoints. When the board is not connected basic_test.py the says:
INFO:root:Waiting for a USB device connected&lt;/p&gt;
&lt;p&gt;and then waits. When I plug in the mbed board I get a stream of:
ERROR:root:Endpoints not found&lt;/p&gt;
&lt;p&gt;If I run &amp;quot;python gdb_server.py -d debug -l&amp;quot; I get:
Welcome to the PyOCD GDB Server Beta Version
ERROR:root:Endpoints not found
No available boards is connected&lt;/p&gt;
&lt;p&gt;This is on a new install of Fedora 20.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mbed gcc/gdb development?</title><link>https://devzone.nordicsemi.com/thread/10879?ContentTypeID=1</link><pubDate>Thu, 19 Jun 2014 12:37:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70f7ce14-080c-4b25-8328-c11c7f3158e1</guid><dc:creator>T&amp;#252;ze</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Like Sigve Sebastian said, you can find the pyOCD repo with the nrf target on the NordicSemiconductor github repo. This will be merged with the mbed pyOCD sometime in the future.&lt;/p&gt;
&lt;p&gt;For compiling with gcc you can find example projects in the nordic SDK and adapt these to work with your mbed projects.&lt;/p&gt;
&lt;p&gt;In order to use the sniffer with your mkit please update your interface firmware with the latest (V0216):&lt;a href="https://mbed.org/platforms/Nordic-nRF51822/"&gt;mbed.org/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mbed gcc/gdb development?</title><link>https://devzone.nordicsemi.com/thread/10870?ContentTypeID=1</link><pubDate>Thu, 19 Jun 2014 10:05:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:239e48df-798c-484b-a7a0-fdea9495457a</guid><dc:creator>Sigve Sebastian Farstad</dc:creator><description>&lt;p&gt;Have a look at &lt;a href="https://github.com/NordicSemiconductor/pyOCD"&gt;github.com/.../pyOCD&lt;/a&gt; (which was just put up on GitHub).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>