<?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>nRF52840 USB example crash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23724/nrf52840-usb-example-crash</link><description>Hi.
I&amp;#39;ve just received my nRF52840-PDK and now I am trying to run usb examples from SDK 13.1.0. 
 I have started with VisualGDB using arm-eabi toolchain and USB HID Generic example from the SDK. The project built and flashed without errors. But when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Aug 2017 17:45:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23724/nrf52840-usb-example-crash" /><item><title>RE: nRF52840 USB example crash</title><link>https://devzone.nordicsemi.com/thread/93296?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2017 17:45:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51cb5018-07d2-40e2-af4e-5ac7f27bd79d</guid><dc:creator>ilia</dc:creator><description>&lt;p&gt;Hi @pbirkner, basically using the another board solved the problem. With new board I am able to flash and run precompiled .hex from the SDK (now I use 14.0 version). But I have not managed  to make VisualGDB projects working on any of my boards yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB example crash</title><link>https://devzone.nordicsemi.com/thread/93295?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2017 17:26:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98d92408-146e-453f-9993-a86414f068d0</guid><dc:creator>pbirkner</dc:creator><description>&lt;p&gt;Has there been any resolution of this issue? I am having the EXACT same problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB example crash</title><link>https://devzone.nordicsemi.com/thread/93282?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 09:07:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:427f9383-8edf-40dc-a6cc-7d2790a3a5e8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Ilia,&lt;/p&gt;
&lt;p&gt;No I don&amp;#39;t think you can damage the board with the hex file.
Today I got some time to test the board and when scoping on the 2 Data line, I found that on one of the line it&amp;#39;s completely flat when I plug the USB in, seems that it&amp;#39;s unconnected to either the chip or the USB port. I would suggest you to hook a logic analyzer on the TP13 and TP14 and check if there is any signal on it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB example crash</title><link>https://devzone.nordicsemi.com/thread/93292?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 15:54:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d5b0356-85f0-4e11-8f58-ed49424bbce9</guid><dc:creator>ilia</dc:creator><description>&lt;p&gt;The HID Composite example is working. Not absolutely stable, but it works. Other examples I have not tried yet. Thank you. Is there a possibility to damage my board when flashing SDK example which was built with VisualGDB?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB example crash</title><link>https://devzone.nordicsemi.com/thread/93294?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 15:30:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d39e8679-a6ec-4c8f-b3e9-7080b834707e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Ilia,&lt;/p&gt;
&lt;p&gt;It &amp;#39;s strange. Could you also try with the usbd_hid_composite example ? and the cdc_acm or mcs example ? (for the cdc example you may need to follow this guide to install the driver: &lt;a href="https://devzone.nordicsemi.com/question/108281/is-there-a-windows-driver-for-the-nrf52840-usb-cdc-acm/)"&gt;devzone.nordicsemi.com/.../)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We released SDK v14 today, it might also help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB example crash</title><link>https://devzone.nordicsemi.com/thread/93293?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 15:20:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca4cbd83-5eb5-43d2-b41b-1079efecf098</guid><dc:creator>ilia</dc:creator><description>&lt;p&gt;Hi @hungbui,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve got another nRF52840 PDK with the same revision as my previous board, and USB HID Generic sample started to work. The device is correctly recognized as input device now. The only issue left - the device does not behave as stated in the SDK documentation. The LED2 which should show the USB library status is always OFF which means &amp;quot;USB library stopped&amp;quot;. And my PC does not react to button click events from the board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB example crash</title><link>https://devzone.nordicsemi.com/thread/93291?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2017 13:12:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9d04f60-ab5e-4192-a855-c33f3efb721c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;No, you don&amp;#39;t need to configure any jumper or connectors (SW6 to Default, SW9 to VDD). USB Generic should work out of the box.
I haven&amp;#39;t got chance to debug my board yet.&lt;/p&gt;
&lt;p&gt;Is it possible for you to replace the board ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB example crash</title><link>https://devzone.nordicsemi.com/thread/93290?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2017 11:14:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82c05ce4-693a-4c0c-89f3-ace0cfe3f786</guid><dc:creator>ilia</dc:creator><description>&lt;p&gt;Hi @hungbui,&lt;/p&gt;
&lt;p&gt;Ok, programming with nRFGo gave the same result. What about jumpers and connectors? Do I need to connect some pins? Also you have said, that you have one PDK board with not working USB examples. What revision does this board have? And what revisions does the working boards have? My board&amp;#39;s revision is 0.9.2 2017.25.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB example crash</title><link>https://devzone.nordicsemi.com/thread/93285?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2017 07:56:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8b0f996-67e8-48a3-b370-34de815a3180</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;No, the USB example doesn&amp;#39;t require softdevice. It&amp;#39;s fine to do drag and drop. But we usually suggest to use nRFGo Studio or nrfjprog tool to do flash programming, instead of drag and drop to the USB drive.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB example crash</title><link>https://devzone.nordicsemi.com/thread/93284?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2017 06:40:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82287a91-0e00-48a4-aa7c-b14ec93b662d</guid><dc:creator>ilia</dc:creator><description>&lt;p&gt;One more question, just for clarification for flashing process. Do I need to flash specific soft device, make some other configuration changes to the board to run precompiled .hex? And to flash this .hex, I just copy it to the board, which recognized as USB drive.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB example crash</title><link>https://devzone.nordicsemi.com/thread/93286?ContentTypeID=1</link><pubDate>Tue, 01 Aug 2017 12:25:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1d8e95e-ef1f-4faf-baad-ad2c1b860d0e</guid><dc:creator>ilia</dc:creator><description>&lt;p&gt;Hi @hungbui,&lt;/p&gt;
&lt;p&gt;Yeah, you are right, I have already compiled with gcc and flashed the resulted .hex to the device and got the same situation with not recognized USB device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB example crash</title><link>https://devzone.nordicsemi.com/thread/93280?ContentTypeID=1</link><pubDate>Tue, 01 Aug 2017 12:09:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd0dd4db-c432-4b60-82e0-36abb62f95c9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry that it&amp;#39;s a little bit busy here to test the VidualGDB project. But if you have issue with the precompiled hex I don&amp;#39;t think it&amp;#39;s about your project setting of start up file. HID device should work out of the box. I would suggest to acquire another nRF52840 PDK for testing and replace your current board.
If you want to compile and test an example, I would suggest to also try with gcc. But I don&amp;#39;t think it would make any different compare to the pre-compiled hex.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB example crash</title><link>https://devzone.nordicsemi.com/thread/93281?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2017 10:29:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:691562b4-712f-48b9-896c-4c624c261653</guid><dc:creator>ilia</dc:creator><description>&lt;p&gt;Hi @hungbui,&lt;/p&gt;
&lt;p&gt;I have already used another PC, and I have only one DK to test. Here is sample &lt;a href="https://github.com/skir/HID-Generic"&gt;project from the SDK created for VisualGDB&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB example crash</title><link>https://devzone.nordicsemi.com/thread/93283?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2017 10:11:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fb93b85-9878-4230-b55f-03d4777b0525</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Could you send the project you used ? If you have problem with the pre-compiled hex file, I would suspect that it&amp;#39;s a hardware issue. Could you try on other PC ? Also if you have another DK please try that also.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB example crash</title><link>https://devzone.nordicsemi.com/thread/93288?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 10:53:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c58587b5-743d-46e5-b02a-25a220be7864</guid><dc:creator>ilia</dc:creator><description>&lt;p&gt;Hi @hungbui,&lt;/p&gt;
&lt;p&gt;Situation #1:&lt;/p&gt;
&lt;p&gt;I use HID_Generic example code from the SDK with VisualGDB on Windows PC. I flash and run the code with debugging. Everything is working - the board is just waiting for USB connection. Then I connect the second USB cable and project crashes with exception SIGTRAP in the exact same location as in the referenced thread. And I don&amp;#39;t see how to change startup file because in project references there is &amp;quot;.c&amp;quot; startup file and not &amp;quot;.s&amp;quot;.&lt;/p&gt;
&lt;p&gt;Situation #2:&lt;/p&gt;
&lt;p&gt;Flash precompiled .hex -&amp;gt; the PC will not recognize the device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB example crash</title><link>https://devzone.nordicsemi.com/thread/93287?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 10:12:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:878e1da9-3d63-4665-8269-dc65ce2dab0c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Sorry I&amp;#39;m not very familiar with the USB stuff. But what exactly &amp;quot;reent.c&amp;quot;  you talked about ?
In the case about start up file you pointed to, it&amp;#39;s pretty straight forward, he used the wrong start up file , so the interrupt vector was configured wrongly. It&amp;#39;s the arm_startup_nrf52840.s start up file.&lt;/p&gt;
&lt;p&gt;Could you described exactly what happens ? If you don&amp;#39;t plug the USB in, do you have the issue ? If you plug USB in what exactly happens ? Do you have assertion, hardfault or something ?&lt;/p&gt;
&lt;p&gt;On my board, the code execute with no problem, the only problem is that the PC couldn&amp;#39;t recognize it. I assume you are testing with a Windows PC ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB example crash</title><link>https://devzone.nordicsemi.com/thread/93279?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 12:37:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29cabcb6-51e9-4b0b-b654-808ac17e4843</guid><dc:creator>ilia</dc:creator><description>&lt;p&gt;Hi @hungbui,&lt;/p&gt;
&lt;p&gt;could SIGTRAP exception while debugging be a hardware problem too? What about this &lt;a href="https://devzone.nordicsemi.com/question/156450/nrf52840-crashes-after-connecting-usb/"&gt;thread&lt;/a&gt;, I referenced in my question. I have already checked different cables as well as different ports and PCs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB example crash</title><link>https://devzone.nordicsemi.com/thread/93289?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 11:37:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18246ad4-1403-4e90-aac4-0355b606c633</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Ilia,&lt;/p&gt;
&lt;p&gt;I suspect hardware issue. Have you tried to use shorter USB cable ?
I also have a PDK board that couldn&amp;#39;t run any USB examples (USB device not recognized) when other boards worked just fine ( the precompiled hex should work). When we have some more time, I will try to check why that happened.&lt;/p&gt;
&lt;p&gt;For now, I would suggest to test on other board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>