<?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>Device reset is happening again and again while calling the function</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62022/device-reset-is-happening-again-and-again-while-calling-the-function</link><description>Hi, 
 
 I am working on project which is based on nrf9160. I added the source files and user define header files . and also given the path of source file in CMake file. Build is successful. But when i put the break point in function (function defined</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Jun 2020 13:40:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62022/device-reset-is-happening-again-and-again-while-calling-the-function" /><item><title>RE: Device reset is happening again and again while calling the function</title><link>https://devzone.nordicsemi.com/thread/253314?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2020 13:40:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9af8d4af-90a7-4b21-ba77-fe0d92dd3025</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="shruti mishra"]Why the data section from the solution build is not updating . As i defined some of the functions in Protocol_SupportFuncs.c and Calling those functions from the MICmdInterpreter.c but why data section from solution build is not updating , Those function are creating a device reset which i defined in Protocol_SupportFunc.c and&amp;nbsp; Ascii.c .[/quote]
&lt;p&gt;Is the added usage used, or is the compiler/linker dropping some code? Can you check your build output before and after adding the code?&lt;/p&gt;
&lt;p&gt;I tried this and it updates the RAM and flash usage accordingly at my end after rebuilding:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-df97794adba04931950927f845640bde/pastedimage1591277904298v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="shruti mishra"]Those function are creating a device reset which i defined in Protocol_SupportFunc.c and&amp;nbsp; Ascii.c .[/quote]
&lt;p&gt;&amp;nbsp;Are you able to see where or get a fault print out? Can you try to select &amp;quot;ASSERT&amp;quot; in menuconfig (or open prj.conf and add CONFIG_ASSERT=y) to see if this has an impact?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device reset is happening again and again while calling the function</title><link>https://devzone.nordicsemi.com/thread/252710?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2020 11:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0164b4fa-c7f3-4eb7-9400-eb1902c6ea6b</guid><dc:creator>shruti mishra</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Why the data section from the solution build is not updating . As i defined some of the functions in Protocol_SupportFuncs.c and Calling those functions from the MICmdInterpreter.c but why data section from solution build is not updating , Those function are creating a device reset which i defined in Protocol_SupportFunc.c and&amp;nbsp; Ascii.c .&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/project-compiler-section.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device reset is happening again and again while calling the function</title><link>https://devzone.nordicsemi.com/thread/252699?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2020 11:30:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05918780-afad-4e6e-9b1d-ff141f864857</guid><dc:creator>shruti mishra</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I can able to enter in debug mode and can able to debug some of the functions . I am sending the data from real term to nrf&amp;nbsp; through the uart and can able to receive data in real term&amp;nbsp; after that when received data is processed through the other function , it is not hitting&amp;nbsp; some of the break points , and before hitting&amp;nbsp; to those&amp;nbsp; function device got reset. I called those function from one file and define those functions in some other file.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is there anything printing on the uart that indicates a fault? - NO&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It is only showing after the reset&amp;nbsp; -Timeout while preparing target, RAMCode did not respond in time. What does it means ?I checked&amp;nbsp;&lt;a href="https://forum.segger.com/index.php/Thread/5019-ABANDONED-Timeout-while-blank-checking-RAMCode-did-not-respond-in-time/?s=6299687fed54f7c2132712de85510b0427b12df4"&gt;[ABANDONED] Timeout while blank checking, RAMCode did not respond in time&lt;/a&gt;&amp;nbsp;and updated the J-link version but still facing the same issue .&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What is this - CPU_REG_Set() : Register 0 is already marked as valid.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2555.CPU-reg.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device reset is happening again and again while calling the function</title><link>https://devzone.nordicsemi.com/thread/252652?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2020 08:55:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2fb965c-e4b9-4f10-9e28-3720b3a20005</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It looks like you&amp;#39;re not able to enter debug mode successfully.&lt;/p&gt;
&lt;p&gt;Do you see the same behavior if you erase the device (from command line: nrfjprog -e -f nrf91), then enter debug mode (shortcut: F5)?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there anything printing on the uart that indicates a fault?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>