<?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>Attempting to setup Counter top value causes firmware to reboot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112121/attempting-to-setup-counter-top-value-causes-firmware-to-reboot</link><description>I&amp;#39;m running NCSv2.6.0 on some custom hardware, with an nRF52832 IC fitted. I&amp;#39;m trying to trigger an ADC measurement every ~ 300usec using a Counter, so need to set the Counter top value to trigger the callback function at the appropriate time. 
 I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Jun 2024 06:36:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112121/attempting-to-setup-counter-top-value-causes-firmware-to-reboot" /><item><title>RE: Attempting to setup Counter top value causes firmware to reboot</title><link>https://devzone.nordicsemi.com/thread/488794?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2024 06:36:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bea43258-c19e-47dd-90ab-3d3b1d4bc5e2</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;THANKYOU!!!!!&amp;nbsp; Wow, I have been struggling with this issue on and off for weeks.&amp;nbsp; Changing:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;TIMER&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;DT_NODELABEL&lt;/span&gt;&lt;span&gt;(timer0)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;to&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;TIMER&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;DT_NODELABEL&lt;/span&gt;&lt;span&gt;(timer1)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;fixed the problem!!&amp;nbsp; The other code, where things work, doesn&amp;#39;t utilise BLE, hence why it wasn&amp;#39;t an issue that presented itself.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I&amp;#39;m off to celebrate with a beer (its 4.30pm here in Australia) :-)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Cheers/sk&amp;aring;l,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Mike&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Attempting to setup Counter top value causes firmware to reboot</title><link>https://devzone.nordicsemi.com/thread/488793?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2024 06:08:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa74e916-d268-489f-9e97-dfa117494d6c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;For debugging, you may try disabling the &amp;#39;CONFIG_RESET_ON_FATAL_ERROR&amp;#39; setting to see if the error handler is invoked. I also noticed that you are using TIMER instance 0. This instance is reserved for the Softdevice controller / MPSL and should not be used if you are using BLE. Do you experience the same issue if you switch to a different TIMER instance?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>