<?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>hardware timer in nrf connect sdk - counter alarm sample</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90190/hardware-timer-in-nrf-connect-sdk---counter-alarm-sample</link><description>I wanted to make a timer interrupt I went through the devzone support and saw the following post 
 
 I have 2 questions 
 
 Question one 
 I am following the Zephyr API. I am trying to implement the counter alarm code in ble UART example. While doing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Jul 2022 12:54:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90190/hardware-timer-in-nrf-connect-sdk---counter-alarm-sample" /><item><title>RE: hardware timer in nrf connect sdk - counter alarm sample</title><link>https://devzone.nordicsemi.com/thread/378719?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2022 12:54:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dde94ce6-14a6-4329-bd61-e8cc4d0dc65e</guid><dc:creator>Salman</dc:creator><description>&lt;p&gt;I check similar issues and came across this ticket.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/90172/nrf-connect-v2-0-0---merging-alarm-sample-with-peripheral_uart-sample"&gt;NRF Connect v2.0.0 - merging &amp;#39;alarm&amp;#39; sample with &amp;#39;peripheral_uart&amp;#39; sample&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;it turns out that I can not use&amp;nbsp;&lt;span&gt;CONFIG_COUNTER_RTC0&lt;/span&gt;&lt;span&gt;=y I have to use&amp;nbsp;CONFIG_COUNTER_RTC2=y&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Its working now.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hardware timer in nrf connect sdk - counter alarm sample</title><link>https://devzone.nordicsemi.com/thread/378698?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2022 11:36:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b19951c1-ecef-40af-baf1-fd3677c0331b</guid><dc:creator>Salman</dc:creator><description>&lt;p&gt;I have changed the idle stack and main stack in prj.conf as below but still getting the exact same error.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1658835854401v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1658835866356v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hardware timer in nrf connect sdk - counter alarm sample</title><link>https://devzone.nordicsemi.com/thread/378207?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 05:09:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db644fb8-970e-4b64-ae52-4550b90a5686</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;&amp;gt;&amp;nbsp;00&amp;gt; [00:00:02.004,699] &amp;lt;err&amp;gt; os: Current thread: 0x20001e20 (idle 00)&lt;/p&gt;
&lt;p&gt;This shows that the hardfault seems to be happening in the idle thread, so I would suggest you to increase the&lt;a href="https://docs.zephyrproject.org/1.14.1/reference/kconfig/CONFIG_IDLE_STACK_SIZE.html"&gt; idle stack&lt;/a&gt; and &lt;a href="https://docs.zephyrproject.org/1.14.1/reference/kconfig/CONFIG_MAIN_STACK_SIZE.html"&gt;main stack&lt;/a&gt; sizes to begin with.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hardware timer in nrf connect sdk - counter alarm sample</title><link>https://devzone.nordicsemi.com/thread/377988?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 06:19:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eccec8ac-e32b-4be0-bba3-a0c566a05502</guid><dc:creator>Salman</dc:creator><description>&lt;p&gt;I will check the it on the DK as well. Mean while can you tell me from where I can change the stack sizes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hardware timer in nrf connect sdk - counter alarm sample</title><link>https://devzone.nordicsemi.com/thread/377987?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 06:17:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b606b131-941a-4b4e-b4f8-ca43b1fe0935</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Have you tried to run the same application on the nRF52 DK? if you do not get the same error on the DK then it must be something with your custom board. If you get the same error on the DK, then we need to focus on the changes you made in your application.&lt;/p&gt;
&lt;p&gt;It is saying that there is a hardfault in the idle thread, one of the common reasons that could happen is due to stack overflow. Have you checked if your application have set up enough stack sizes for the threads?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>