<?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>segmentation fault / bricked nrf52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59280/segmentation-fault-bricked-nrf52832</link><description>Hi there, Until todayI had no problem programming/controlling my nrf52832 on my custom board. Suddenly Im getting segmentation fault whenever I try to communicate with the chip. Im using my nrf52 DK as my programmer via 10-pin debug out-connector. 
 Segger</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Mar 2020 14:24:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59280/segmentation-fault-bricked-nrf52832" /><item><title>RE: segmentation fault / bricked nrf52832</title><link>https://devzone.nordicsemi.com/thread/241622?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 14:24:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f62565c9-b126-4f5f-9dd4-5ce387f54eca</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;As far as I know, nrfjprog should not use the RST pin unless you perform a pin-reset using the --pinreset argument.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segmentation fault / bricked nrf52832</title><link>https://devzone.nordicsemi.com/thread/241351?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 12:00:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f38c9162-af63-4e6a-a663-b84d68c8efa8</guid><dc:creator>Rasmus</dc:creator><description>&lt;p&gt;Yes, the voltage is okay.&amp;nbsp;&lt;br /&gt;Strange that Im getting segfult then.. but I will try with the latest version 10.7.0.&lt;br /&gt;&lt;br /&gt;We have an other CPU that is controlling the BLEchip by its RST-pin, to make som testes I deactivate pin 24 (port 21) as RST pin. My&amp;nbsp;&lt;span&gt;10-pin debug connector is using the RST-pin. Could that be the cause to segfault? I did this by commenting out lines 199-212 in system_nrf52.c&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;    /* Configure GPIO pads as pPin Reset pin if Pin Reset capabilities desired. If CONFIG_GPIO_AS_PINRESET is not
      defined, pin reset will not be available. One GPIO (see Product Specification to see which one) will then be
      reserved for PinReset and not available as normal GPIO. */
    #if defined (CONFIG_GPIO_AS_PINRESET)
        if (((NRF_UICR-&amp;gt;PSELRESET[0] &amp;amp; UICR_PSELRESET_CONNECT_Msk) != (UICR_PSELRESET_CONNECT_Connected &amp;lt;&amp;lt; UICR_PSELRESET_CONNECT_Pos)) ||
            ((NRF_UICR-&amp;gt;PSELRESET[1] &amp;amp; UICR_PSELRESET_CONNECT_Msk) != (UICR_PSELRESET_CONNECT_Connected &amp;lt;&amp;lt; UICR_PSELRESET_CONNECT_Pos))){
            NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Wen &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos;
            while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy){}
            NRF_UICR-&amp;gt;PSELRESET[0] = 21;
            while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy){}
            NRF_UICR-&amp;gt;PSELRESET[1] = 21;
            while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy){}
            NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Ren &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos;
            while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy){}
            NVIC_SystemReset();
        }
    #endif&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;Best regards /Rasmus&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segmentation fault / bricked nrf52832</title><link>https://devzone.nordicsemi.com/thread/240829?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 10:59:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afc959c6-0294-4a00-9ece-d96f39080664</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Just to be sure, the board is powered at the same voltage level as the nRF52 DK? The J-Link OB debugger on the DK does not support level shifting.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure about the segfault, from the &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download"&gt;release notes of nRF5 Command Line Tools v10.6.0&lt;/a&gt;, it seems like this issue should have been fixed: &amp;quot;&lt;span&gt;Fixed issue where nrfjprog exe caused segmentation faults if an unsupported JLink Dll was loaded.&amp;quot; Are you sure that you are using this version (can be checked with &amp;#39;nrfjprog --version&amp;#39;). Could you also try installing the latest version (10.7.0) of the Command Line Tools?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segmentation fault / bricked nrf52832</title><link>https://devzone.nordicsemi.com/thread/240796?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 10:02:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1ba56f4-ce94-4b41-9257-da7af96782fe</guid><dc:creator>Rasmus</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Its kinda of hard to tell if the board is working fine apart from the programming part, that is because Im not 100% sure if the last command was --program or --recover. My guess would be that it is not running as it should.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The board is powered externally. &lt;br /&gt;Its hard to measure the connections between the debug connector and the chip&amp;nbsp;due to lack of space. Its pretty crowded with components and its a 4 layer pcb. The board is manufactured and assembled by an experienced company, so soldering issues is not very likely, but of course not impossible..&amp;nbsp;also if I recall correct, I didnt touch any of the boards nor the connections when the problem occured.&lt;br /&gt;We have more prototype boards but I feel nervous&amp;nbsp;when this seemed to occur without any particular reason.&lt;br /&gt;&lt;br /&gt;I&amp;acute;ve also tried with an other NRF52 DK just to be sure.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I&amp;acute;m attaching the log.log file from running&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span class="s1"&gt;nrfjprog --recover --log&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0654.log.log"&gt;devzone.nordicsemi.com/.../0654.log.log&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;What does &amp;quot;segmention fault&amp;quot; mean btw?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards, Rasmus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segmentation fault / bricked nrf52832</title><link>https://devzone.nordicsemi.com/thread/240652?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2020 13:39:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c5453e9-949d-4688-8558-6ad3f54b0a5b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is the board working fine apart from programming, i.e. does the last application that you programmed to the board run when you power it?&lt;/p&gt;
&lt;p&gt;Is the board powered through the 10-pin debug cable, or is it powered externally? Have you checked that there are connections between the debug connector and the chip on the board (for instance that there are no soldering issues, etc. that have broken the connections or created shorts)? Some people have solved similar issues by heating the device to fix lost connections.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segmentation fault / bricked nrf52832</title><link>https://devzone.nordicsemi.com/thread/240617?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2020 11:35:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e5451d7-9a58-4277-b744-17132d571227</guid><dc:creator>Rasmus</dc:creator><description>&lt;p&gt;Edit: I&amp;acute;ve tried the following&amp;nbsp;solution for about 45 min:&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47308/nrf52832-bricked-nrfjprog-segmentation-fault"&gt;&lt;br /&gt;https://devzone.nordicsemi.com/f/nordic-q-a/47308/nrf52832-bricked-nrfjprog-segmentation-fault&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;I can send you the log.log -fil from when failing on &amp;quot;nrfjprog --recover&amp;quot; command. Would that be helpful? Regards /Rasmus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>