<?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>Programmation Error due to Reset pin ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68959/programmation-error-due-to-reset-pin</link><description>Hi, 
 
 I&amp;#39;m using nrf52833, flashed by using Jlink SWD programmer. I have no probleme to re-programmed 2/3 of my board. 
 
 But the hird gave an error. The strange things is that it is still running. I have the feeling that the programmed is started </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Dec 2020 17:24:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68959/programmation-error-due-to-reset-pin" /><item><title>RE: Programmation Error due to Reset pin ?</title><link>https://devzone.nordicsemi.com/thread/282748?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 17:24:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:174c26a9-ae3f-49d4-bd2a-c53fc3bddcb9</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;OK thanks for confirmation, it is what i did , seem to work fine. That&amp;#39;s crazy i didn&amp;#39;t had issue on some board, but i have to admit that sometimes i had random behavior. Anyway i&amp;#39;m happy to have solved the probleme with your help. I hope this ticket will be usefull for other people too.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programmation Error due to Reset pin ?</title><link>https://devzone.nordicsemi.com/thread/282747?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 17:22:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29ebf105-d937-4cf7-a0cb-1886f138b9c2</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You can remove the&amp;nbsp;&lt;span&gt;CONFIG_GPIO_AS_PINRESET define, you will still be able to program, soft reset and debug using the SWD interface (e.g. using SEGGER j-link). You should remove&amp;nbsp;CONFIG_GPIO_AS_PINRESET&amp;nbsp;define from both bootloader and application code yes if you intend not support pin reset. If you enable it you must ensure that the pin in question is not used (e.g not configured as output low) by the application or bootloader. This may cause a continuous&amp;nbsp;reset loop.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programmation Error due to Reset pin ?</title><link>https://devzone.nordicsemi.com/thread/282699?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 13:59:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3011166-fdb4-4200-bd6b-6c8d9be0043d</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;Ok it was not working on board 3 anymore, so i just connect RESET mu pin to vdd, and now i can flash and debug again.&lt;/p&gt;
&lt;p&gt;So i dont&amp;#39; really understand why this reset pin that should not be used has an impact but it seems that i need to connect it to vdd to not have probleme and get a robust programing connexion.&lt;/p&gt;
&lt;p&gt;I have also chek ed in the secure bootloader if something was enable but no :NRF_BL_DFU_ENTER_METHOD_PINRESET 0&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But surprised ! when i run secure bootloader in debug mode, and also looking in the editor , even if ... was not defined, i was surprised to see the code &amp;quot;enable&amp;quot; after #if defined ! It should be light grey and not black no?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1606830824794v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When i search&amp;nbsp;CONFIG_GPIO_AS_PINRESET in the entire solution, i see nowhere definition of this.&lt;/p&gt;
&lt;p&gt;But bingo ! i reminf there was some settings also in project properties:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1606830950319v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And same definition in my project ( based on HRS example).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So now what can be the clean solution? remove this definition and loose the possibility to use reset with programmer ? Then how can i reset during debug ? I have seens in Segger documentation several strategy to manage reset.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Or keep it , and use may be a king of pull down resistor or something like this ?&lt;/p&gt;
&lt;p&gt;And if i disable this option , i guess i have to disable it in both bootloader and application ?&lt;/p&gt;
&lt;p&gt;Thank you !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programmation Error due to Reset pin ?</title><link>https://devzone.nordicsemi.com/thread/282684?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 13:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce45e25a-26e8-44e7-b020-f79f2370de2b</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;HI Kenneth,&lt;/p&gt;
&lt;p&gt;Thanks for the fast reply.&lt;/p&gt;
&lt;p&gt;No&amp;nbsp;CONFIG_GPIO_AS_PINRESET defined in my code , so, should not be used .&lt;/p&gt;
&lt;p&gt;I tried in command line but i think something is not clear with installation or DLL :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;gt;nrfjprog --recover
ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with argument --log, contact Nordic
ERROR: Semiconductor and provide the generated log.log file to them.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have then used the segger utility J-Link Utility DLL Updapter that seems to list one item to update without really do it i think because when i re load it do the same ( i run in administrator mode):&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1606829496836v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As i have seens that it update in SES forder ,&amp;nbsp; i retry to flash with SES and now board 4 is updated !&lt;/p&gt;
&lt;p&gt;So i don&amp;#39;t know what is really the problem but it seems to works, at least with SES.&lt;/p&gt;
&lt;p&gt;For command line i don&amp;#39;t know why it makes an error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programmation Error due to Reset pin ?</title><link>https://devzone.nordicsemi.com/thread/282641?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 11:42:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d316574-4951-40c7-b3b1-b9d537114a61</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You only need to connect swdio, swdclk, gnd and vdd (vtarget). There is not need to connect reset pin. However if you have (by accident) enabled pin reset, then I recommend to connect p0.18 directly to vdd, and execute an &amp;#39;nrfjprog --recover&amp;#39; or &amp;#39;nrfjprog --eraseall&amp;#39; to make sure that uicr is erased and pin reset disabled again.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>