<?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>How to reduce crowd in the main file?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71944/how-to-reduce-crowd-in-the-main-file</link><description>I want to ask a question. 
 The codes seem too complicated in main file. I created new sources and header files and carried some code into the new sources and header file from main file. For instance it was timer settings and timer handler function in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Feb 2021 10:53:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71944/how-to-reduce-crowd-in-the-main-file" /><item><title>RE: How to reduce crowd in the main file?</title><link>https://devzone.nordicsemi.com/thread/296208?ContentTypeID=1</link><pubDate>Thu, 25 Feb 2021 10:53:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad3314c2-1f7d-43aa-9db8-90da912a9811</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;At least it is difficult to say without knowing what&amp;#39;s going on. What timers are you talking about, and what do you mean is the wrong behavior? Perhaps you can point to some places in your code? Are those places that are misbehaving coming from our SDK, or are they coming from your company?&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reduce crowd in the main file?</title><link>https://devzone.nordicsemi.com/thread/296121?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 22:27:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a9d2af6-7420-43a4-adab-d2f717f5dad3</guid><dc:creator>awneil</dc:creator><description>[quote userid="101400" url="~/f/nordic-q-a/71944/how-to-reduce-crowd-in-the-main-file/296105#296105"]I am a junior software developer.[/quote]
&lt;p&gt;so, surely, you have senior colleagues who could help you - and in your own language.&lt;/p&gt;
&lt;p&gt;it is far more effective to get support from someone local - who can sit with you, can see what&amp;#39;s going on and understands what you&amp;#39;re doing - than from complete strangers who know nothing about you or your project or your setup or the code you&amp;#39;re talking about.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reduce crowd in the main file?</title><link>https://devzone.nordicsemi.com/thread/296105?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 18:45:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ca3a6ec-6413-4390-a02b-30f73905bd70</guid><dc:creator>cemalb</dc:creator><description>&lt;p&gt;timer_init.h / c and main.c is also something I&amp;#39;ve implemented myself. More precisely, I received this project from someone else. I&amp;#39;m just trying to organize and understand the codes.&amp;nbsp;I learned what nRF and BLE are just 3 weeks ago. I am a junior software developer. My English is not very good either. I do not fully understand which documents I should read. I would be glad if you could guide me as to which documents I should read.&lt;/p&gt;
&lt;p&gt;I also have one more question regarding flash memory usage in the forum. I expect your help in this matter too.&lt;br /&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reduce crowd in the main file?</title><link>https://devzone.nordicsemi.com/thread/296050?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 14:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b060e5e9-c563-42c9-b376-4bd9f7c157dd</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Are these questions related to the app_timer from the SDK, or is that something that you have implemented yourself in the timer_init.c/h files that you show in your screenshot?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reduce crowd in the main file?</title><link>https://devzone.nordicsemi.com/thread/296048?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 13:58:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0cbddcd-9239-416f-bc1c-83acd04d7014</guid><dc:creator>awneil</dc:creator><description>[quote userid="101400" url="~/f/nordic-q-a/71944/how-to-reduce-crowd-in-the-main-file/296018#296018"]Suppose we define a timer for 20 second. When the timer is running (for example, at 15 seconds.) What if I restart the timer?[/quote]
&lt;p&gt;Isn&amp;#39;t that stated in the app_timer &lt;strong&gt;documentation&lt;/strong&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reduce crowd in the main file?</title><link>https://devzone.nordicsemi.com/thread/296018?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 12:43:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1e49a40-1f18-43a1-aa88-a0a7f226fe65</guid><dc:creator>cemalb</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7245.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0652.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;My header and source files are as above.&amp;nbsp;I include the file timer_init in main.c.&amp;nbsp;but the timers don&amp;#39;t stop when I stop them with app_timer_stop (). When the timeout expires, it stops itself.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;***&lt;/p&gt;
&lt;p&gt;I will have one more question besides this topic. Suppose we define a timer for 20 second. When the timer is running (for example, at 15 seconds.) What if I restart the timer? Does the count value reset or keep counting?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reduce crowd in the main file?</title><link>https://devzone.nordicsemi.com/thread/295895?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 15:48:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e838a3fe-36f8-4e3b-bfdd-5b1c00e5c499</guid><dc:creator>cemalb</dc:creator><description>[quote userid="6462" url="~/f/nordic-q-a/71944/how-to-reduce-crowd-in-the-main-file/295884#295884"]&lt;p&gt;If your code doesn&amp;#39;t work, then you need to look at how it was working before, and compare that to what your new code is actually doing.&lt;/p&gt;
&lt;p&gt;Step both versions in the debugger.&lt;/p&gt;[/quote]
&lt;p&gt;it&amp;#39;s a good idea ! i will try it. Thanks. Also I didn&amp;#39;t get any compiler warnings.&lt;/p&gt;
&lt;p&gt;For now there is only a problem with the timers running. There may be other problems I haven&amp;#39;t noticed yet.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reduce crowd in the main file?</title><link>https://devzone.nordicsemi.com/thread/295884?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 15:25:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d134e67a-7048-4057-a409-e480c7a67e8c</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Of course it&amp;#39;s &lt;em&gt;possible&lt;/em&gt; to take stuff out of the main.c file and move it into another - that&amp;#39;s just standard &amp;#39;C&amp;#39; refactoring.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://c-faq.com/decl/decldef.html"&gt;c-faq.com/.../decldef.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But, as with any other changes to existing code, you have to have a full understanding of what the existing code is doing and how it works before you start changing it.&lt;/p&gt;
&lt;p&gt;Did you get any compiler warnings?&lt;/p&gt;
&lt;p&gt;If your code doesn&amp;#39;t work, then you need to look at how it was working before, and compare that to what your new code is actually doing.&lt;/p&gt;
&lt;p&gt;Step both versions in the debugger.&lt;/p&gt;
&lt;p&gt;Compare &amp;amp; contrast.&lt;/p&gt;
[quote userid="101400" url="~/f/nordic-q-a/71944/how-to-reduce-crowd-in-the-main-file"]k correctly. For example, although the timers are stopped, they continue to run.[/quote]
&lt;p&gt;So you must have missed something in the stopping&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>