<?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>Other Timer/Counter setup fails if Timer0 is disabled using zephyr drivers for nRF52833</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114062/other-timer-counter-setup-fails-if-timer0-is-disabled-using-zephyr-drivers-for-nrf52833</link><description>Hi folks, 
 we&amp;#39;re running zephyr v3.6.0 on ublox-anna-b412 module which embeds nRF52833. For our application we need multiple timers enabled next to running ble. When we were doing integration tests we ran into the issue that we can&amp;#39;t use timer1/timer2</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Aug 2024 14:51:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114062/other-timer-counter-setup-fails-if-timer0-is-disabled-using-zephyr-drivers-for-nrf52833" /><item><title>RE: Other Timer/Counter setup fails if Timer0 is disabled using zephyr drivers for nRF52833</title><link>https://devzone.nordicsemi.com/thread/499090?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 14:51:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f628947e-8b26-4ccb-8d51-f41f59a85c91</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;Could you share which zephyr git hash you forked from?&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: Other Timer/Counter setup fails if Timer0 is disabled using zephyr drivers for nRF52833</title><link>https://devzone.nordicsemi.com/thread/499072?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 13:24:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56c2c609-4a7f-48e8-adeb-d88470513421</guid><dc:creator>fbrs</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;that&amp;#39;s interesting. Your test is correct. We recreated it and got the following output:&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/pastedimage1724159792627v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;We&amp;#39;re using our own zephyr fork - maybe there are some compatibility issues between modules/packages. I will investigate it, thank you for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Other Timer/Counter setup fails if Timer0 is disabled using zephyr drivers for nRF52833</title><link>https://devzone.nordicsemi.com/thread/499037?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 12:05:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67d86f62-79aa-4894-b4bd-467637a7d597</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;Thank you for uploading the files.&lt;/p&gt;
&lt;p&gt;Could you share what happens at your end? I&amp;#39;m unable to successfully recreate this scenario. I&amp;#39;m getting this output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***
*** Using Zephyr OS v3.6.99-100befc70c74 ***
timer1 error: -134 - failed to set alarm on channel 2
timer1 error: -134 - failed to set alarm on channel 3
timer2 error: -134 - failed to set alarm on channel 2
timer2 error: -134 - failed to set alarm on channel 3
TIMER1 Channel: 0 Ticks: 500000
TIMER1 Channel: 1 Ticks: 500000
TIMER2 Channel: 0 Ticks: 500000
TIMER2 Channel: 1 Ticks: 500000
TIMER3 Channel: 0 Ticks: 500000
TIMER3 Channel: 1 Ticks: 500000
TIMER3 Channel: 2 Ticks: 500000
TIMER3 Channel: 3 Ticks: 500000
TIMER4 Channel: 0 Ticks: 500000
TIMER4 Channel: 1 Ticks: 500000
TIMER4 Channel: 2 Ticks: 500000
TIMER4 Channel: 3 Ticks: 500000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-134 = ENOTSUP and that occurs due to the number of CC channels, which is limited by the&amp;nbsp;counter implementation with -2:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/drivers/counter/counter_nrfx_timer.c#L18"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/drivers/counter/counter_nrfx_timer.c#L18&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The (stripped) overlay file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;// &amp;amp;timer0 {
//     status = &amp;quot;okay&amp;quot;;
//     prescaler = &amp;lt;4&amp;gt;;
// };

&amp;amp;timer1 {
    status = &amp;quot;okay&amp;quot;;
    prescaler = &amp;lt;4&amp;gt;;
};

&amp;amp;timer2 {
    status = &amp;quot;okay&amp;quot;;
    prescaler = &amp;lt;4&amp;gt;;
};

&amp;amp;timer3 {
    status = &amp;quot;okay&amp;quot;;
    prescaler = &amp;lt;4&amp;gt;;
};

&amp;amp;timer4 {
    status = &amp;quot;okay&amp;quot;;
    prescaler = &amp;lt;4&amp;gt;;
};

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And the build/zephyr/zephyr.dts shows that the timer0 is disabled:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;		timer0: timer@40008000 {
			compatible = &amp;quot;nordic,nrf-timer&amp;quot;;
			status = &amp;quot;disabled&amp;quot;;
			reg = &amp;lt; 0x40008000 0x1000 &amp;gt;;
			cc-num = &amp;lt; 0x4 &amp;gt;;
			max-bit-width = &amp;lt; 0x20 &amp;gt;;
			interrupts = &amp;lt; 0x8 0x1 &amp;gt;;
			prescaler = &amp;lt; 0x0 &amp;gt;;
		};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have I tested incorrectly? If yes, please have a look at my test here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/331846.zip"&gt;devzone.nordicsemi.com/.../331846.zip&lt;/a&gt;&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: Other Timer/Counter setup fails if Timer0 is disabled using zephyr drivers for nRF52833</title><link>https://devzone.nordicsemi.com/thread/499020?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 11:20:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36c0bbe7-fd6b-4c83-9e1b-c61ff63ea07c</guid><dc:creator>fbrs</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thank you for your fast response. I reuploaded the files.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Other Timer/Counter setup fails if Timer0 is disabled using zephyr drivers for nRF52833</title><link>https://devzone.nordicsemi.com/thread/499011?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 10:51:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5654f396-737a-4704-a3d3-87922a3baae5</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;Looks like the attachments were not successfully uploaded. Could you re-upload them?&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>