<?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>Getting HardFault Handler after porting latest nRF_SDK_15.3.0 to nRF52840.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52662/getting-hardfault-handler-after-porting-latest-nrf_sdk_15-3-0-to-nrf52840</link><description>Hi Nordic, 
 I have ported nRF_SDK_15.3.0 to nRF52840. These changes involves USBD. So While initializing pp_usb_init(), I see it is going to some hardfault handler. Please find below image for reference. Need help in resolving this. 
 
 Thanks, 
 Nirupama</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Oct 2019 06:52:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52662/getting-hardfault-handler-after-porting-latest-nrf_sdk_15-3-0-to-nrf52840" /><item><title>RE: Getting HardFault Handler after porting latest nRF_SDK_15.3.0 to nRF52840.</title><link>https://devzone.nordicsemi.com/thread/212916?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2019 06:52:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ba8c27a-6af0-42f1-a9bd-7ac6493da573</guid><dc:creator>Nirupama</dc:creator><description>&lt;p&gt;Yes, With new FW, it is not working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting HardFault Handler after porting latest nRF_SDK_15.3.0 to nRF52840.</title><link>https://devzone.nordicsemi.com/thread/212913?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2019 06:48:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e4a8f74-1e18-4c22-a81e-12a6913f79c2</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;RTT messages are transferred through the SWD lines to the debugger, not USB.&amp;nbsp;But&amp;nbsp;to confirm again, the USB starts working if you re-program the board with your old FW, and does not work when you program your new FW or any of the SDK examples?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting HardFault Handler after porting latest nRF_SDK_15.3.0 to nRF52840.</title><link>https://devzone.nordicsemi.com/thread/212903?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2019 05:39:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aafab9cf-f94b-4668-b4ba-bbf370c3dd42</guid><dc:creator>Nirupama</dc:creator><description>&lt;p&gt;I have nRF52840 PDK board of V0.9.0 where&amp;nbsp; this USB do not work, I am debugging on my custom board. According to Errata document, I see there are some problem&amp;nbsp;w.r.t&amp;nbsp;USB but they also provided some workaround to make it work. But SDK 15 has already that workaround, So it should work. I tried testing using RTT viewer sending logs through USB and it worked, When I try the same using Teraterm, I am not getting any logs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting HardFault Handler after porting latest nRF_SDK_15.3.0 to nRF52840.</title><link>https://devzone.nordicsemi.com/thread/212828?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 13:15:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38cf38b9-624f-4e12-8a9c-b32577c8e691</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;When you said the revision 1 kit, I thought you were referring to the 52840 DK (non-preview version). Do you have a 52840 DK to test with? And on the custom board, are you able to debug the board while having the &amp;quot;USB module&amp;quot; connected to see if there are any code assertions or unexpected resets?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting HardFault Handler after porting latest nRF_SDK_15.3.0 to nRF52840.</title><link>https://devzone.nordicsemi.com/thread/212741?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 08:38:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fcfe3d3-f173-4295-a069-7a183a0226e5</guid><dc:creator>Nirupama</dc:creator><description>&lt;p&gt;In the rev. 1 kit, I flash using j-link connected to USB, and then connect to other port to check the logs in Teraterm.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is my setup connected to USB for flashing the code.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/USB.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This is to check my logs&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0763.UART.jpg" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting HardFault Handler after porting latest nRF_SDK_15.3.0 to nRF52840.</title><link>https://devzone.nordicsemi.com/thread/212728?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 07:58:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62181702-b891-454d-aa8d-d5422ff54152</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, the PDK board may fail to enumerate. On the rev. 1 kit, are you connecting both of USB ports and does the LEDs indicate port &amp;quot;closed&amp;quot; or &amp;quot;open&amp;quot; when you connect to the &amp;quot;nRF USB&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting HardFault Handler after porting latest nRF_SDK_15.3.0 to nRF52840.</title><link>https://devzone.nordicsemi.com/thread/212713?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 06:46:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34d896c1-7ded-474f-9a39-cb933aed0c38</guid><dc:creator>Nirupama</dc:creator><description>&lt;p&gt;Yes, I have tried the example in PDK board and came to know that the example do not work on V0.9.0 board. So I am trying the example on revision 1, Still I don&amp;#39;t see that nRF52 USB when I connect the board to my PC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting HardFault Handler after porting latest nRF_SDK_15.3.0 to nRF52840.</title><link>https://devzone.nordicsemi.com/thread/212712?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 06:39:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08b221bc-f2a7-43d6-86bd-a9c7c7e4e49b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Have you tried the default&amp;nbsp;&lt;a title="USB CDC ACM Example" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/usbd_cdc_acm_example.html?cp=5_1_4_6_50_3"&gt;USB CDC ACM Example&lt;/a&gt;&amp;nbsp;in SDK 15.3.0 to see if that works? Drivers should be installed automatically if you&amp;nbsp;have Windows 10.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting HardFault Handler after porting latest nRF_SDK_15.3.0 to nRF52840.</title><link>https://devzone.nordicsemi.com/thread/212336?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 14:52:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fffff3d1-9b8b-4cb9-8069-a521bd51ba85</guid><dc:creator>Nirupama</dc:creator><description>&lt;p&gt;Yes....What screen shots you want?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting HardFault Handler after porting latest nRF_SDK_15.3.0 to nRF52840.</title><link>https://devzone.nordicsemi.com/thread/212335?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 14:51:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d583a6b-83cb-43f8-8a38-d502ed5c93c0</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;but what Teraterm, &lt;em&gt;et al&lt;/em&gt;, needs is a&lt;strong&gt; COMx:&lt;/strong&gt; port!&lt;/p&gt;
&lt;p&gt;There should be a COM port in the CDC device properties ... ?&lt;/p&gt;
&lt;p&gt;You know how to post screenshots ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting HardFault Handler after porting latest nRF_SDK_15.3.0 to nRF52840.</title><link>https://devzone.nordicsemi.com/thread/212333?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 14:43:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b30ee900-632c-4ba4-85e4-ee0f53911b68</guid><dc:creator>Nirupama</dc:creator><description>&lt;p&gt;I have 2 apps, which is older SDK and one is new SDK. When I flashed with older one, in Device manager, I am able to identify it under USB&amp;nbsp;&lt;span&gt;controllers&lt;/span&gt; as &lt;strong&gt;USB composite device&lt;/strong&gt; and under ports as &lt;strong&gt;USB COM PORT 14&lt;/strong&gt;. But with latest driver, Under USB controllers, device is identified as &lt;strong&gt;J-link driver and USB composite device&lt;/strong&gt; and Under Ports as &lt;strong&gt;&amp;quot;CDC Port&amp;quot;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting HardFault Handler after porting latest nRF_SDK_15.3.0 to nRF52840.</title><link>https://devzone.nordicsemi.com/thread/212324?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 14:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e39732a2-8cc9-4bec-80da-0ee05f865300</guid><dc:creator>awneil</dc:creator><description>[quote userid="74060" url="~/f/nordic-q-a/52662/getting-hardfault-handler-after-porting-latest-nrf_sdk_15-3-0-to-nrf52840/212320"]It is recognized as USB device[/quote]
&lt;p&gt;but is it recognised as a&lt;strong&gt; COM:&lt;/strong&gt; port?&lt;/p&gt;
[quote userid="74060" url="~/f/nordic-q-a/52662/getting-hardfault-handler-after-porting-latest-nrf_sdk_15-3-0-to-nrf52840/212320"]in Teraterm, where it should be identified as nRF USB device[/quote]
&lt;p&gt;No, it shouldn&amp;#39;t.&lt;/p&gt;
&lt;p&gt;Again, Teraterm&amp;nbsp;&lt;span&gt;&amp;nbsp;(or any other app) just sees a &lt;strong&gt;COMx:&lt;/strong&gt; device&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting HardFault Handler after porting latest nRF_SDK_15.3.0 to nRF52840.</title><link>https://devzone.nordicsemi.com/thread/212320?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 14:11:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08c7cc04-1e2b-48d2-a8b6-ced280ede435</guid><dc:creator>Nirupama</dc:creator><description>&lt;p&gt;Yes, I checked it in the device manager, It is recognized as USB device. But in order to test the logs, I should check in Teraterm, where it should be identified as nRF USB device. I am not getting that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting HardFault Handler after porting latest nRF_SDK_15.3.0 to nRF52840.</title><link>https://devzone.nordicsemi.com/thread/212315?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 13:54:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b973f2ee-70d3-4e92-aee1-a293d03acd52</guid><dc:creator>awneil</dc:creator><description>[quote userid="74060" url="~/f/nordic-q-a/52662/getting-hardfault-handler-after-porting-latest-nrf_sdk_15-3-0-to-nrf52840/212308"]when I test in Teraterm[/quote]
&lt;p&gt;recognising the USB device is done by Windows; not Teraterm.&lt;br /&gt; Teraterm (or any other app) just sees a COMx: device - it neither knows nor cares whether that&amp;#39;s a real RS232 port, a modem, USB, or anything else.&lt;/p&gt;
&lt;p&gt;You need to be looking in the Windows Device Manager ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting HardFault Handler after porting latest nRF_SDK_15.3.0 to nRF52840.</title><link>https://devzone.nordicsemi.com/thread/212308?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 13:42:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:992f6646-4b2d-4e04-98ce-49714da07c0b</guid><dc:creator>Nirupama</dc:creator><description>&lt;p&gt;Soft device is not enabled, Now I am able to initialize the USB without any hard faults but when I test in Teraterm, It is not recognized as nRF52 USB device. So is it because of USBD changes in nRF_SDK_15.3.0, Should we update the Nordic USB driver?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting HardFault Handler after porting latest nRF_SDK_15.3.0 to nRF52840.</title><link>https://devzone.nordicsemi.com/thread/212284?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 12:43:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85f6f203-8f4e-46d8-9375-a7b0a8450ee7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Are you using the Softdevice, and in that case, are you enabling the events through the&amp;nbsp;sd_power_* APIs?&amp;nbsp;Accessing POWER registers directly will lead to a hardfault if you have the Softdevice enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting HardFault Handler after porting latest nRF_SDK_15.3.0 to nRF52840.</title><link>https://devzone.nordicsemi.com/thread/212254?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 10:54:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b344f76-b92b-413a-9d0c-9dc17d95d186</guid><dc:creator>Nirupama</dc:creator><description>&lt;p&gt;Yes, It Supports nRF52840. I had this old version of SDK which I changed to 15.3.0, After the changes in USB driver, I am facing this hardfault. I tried debugging step by step and Observed that USB start is failing and accessing some restricted memory range in&amp;nbsp;app_usbd_power_events_enable().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting HardFault Handler after porting latest nRF_SDK_15.3.0 to nRF52840.</title><link>https://devzone.nordicsemi.com/thread/212216?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 09:07:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e83a991-6151-40a8-af4b-dda616a4f294</guid><dc:creator>awneil</dc:creator><description>[quote userid="74060" url="~/f/nordic-q-a/52662/getting-hardfault-handler-after-porting-latest-nrf_sdk_15-3-0-to-nrf52840"]I have ported nRF_SDK_15.3.0 to nRF52840[/quote]
&lt;p&gt;What do you mean by that?&lt;/p&gt;
&lt;p&gt;The SDK already supports nRF52840 - no &amp;quot;porting&amp;quot; is necessary!&lt;/p&gt;
[quote userid="74060" url="~/f/nordic-q-a/52662/getting-hardfault-handler-after-porting-latest-nrf_sdk_15-3-0-to-nrf52840"]I see it is going to some hardfault handler[/quote]
&lt;p&gt;That&amp;#39;ll be because of an APP_ERROR_CHECK() which has detected an error return code from some SDK function call.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10729/my-device-is-freezing-and-restarting/40107#40107"&gt;devzone.nordicsemi.com/.../40107&lt;/a&gt;&lt;/p&gt;
[quote userid="74060" url="~/f/nordic-q-a/52662/getting-hardfault-handler-after-porting-latest-nrf_sdk_15-3-0-to-nrf52840"]Need help in resolving this[/quote]
&lt;p&gt;In a Debug configuration, you should get useful messages on the&amp;nbsp;debug log output.&lt;/p&gt;
&lt;p&gt;Or use the &lt;em&gt;&lt;strong&gt;debugger&lt;/strong&gt; &lt;/em&gt;to step through your code to find where it&amp;#39;s failing.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/debug.html"&gt;https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/debug.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/communicate.html"&gt;infocenter.nordicsemi.com/.../communicate.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>