<?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>NRFX driver interrupt freeze the MCU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65432/nrfx-driver-interrupt-freeze-the-mcu</link><description>Hi! 
 
 I want to develop a simple program which count pulses in a digital pin in an interval of 10ms. I want to use a timer as a counter to count the pulses, also I want to use another counter to read the amount of pulses that occurs in the pin and reset</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Sep 2020 09:09:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65432/nrfx-driver-interrupt-freeze-the-mcu" /><item><title>RE: NRFX driver interrupt freeze the MCU</title><link>https://devzone.nordicsemi.com/thread/268231?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2020 09:09:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:938d2c77-6513-4ee7-afc5-2ea0b07ffb87</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Happy that you at least found a solution for it. Not sure why this is defined such in Mbed, you would have to ask them &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Good luck with your project.&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRFX driver interrupt freeze the MCU</title><link>https://devzone.nordicsemi.com/thread/268078?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2020 12:54:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e99f6fdc-2892-4744-bd1c-5cd08de6b766</guid><dc:creator>FFischer</dc:creator><description>&lt;p&gt;Hi Jared!&lt;/p&gt;
&lt;p&gt;Yes, I changed the sdk_config.h file to enabled the timers, GPIOTE and PPI.&lt;/p&gt;
&lt;p&gt;Yesterday I try to compile the same program in SEGGER Embedded Studio and works fine. I think that the problem in mbed is related to the startup_nrf52832.S file. In this file the IRQ handlers are difined as: TIMER3_IRQHandler_v and TIMER4_IRQHandler_v (I don&amp;#39;t know why).&lt;/p&gt;
&lt;p&gt;I will try to learn more about the startup file because I don&amp;#39;t know how understand the file.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRFX driver interrupt freeze the MCU</title><link>https://devzone.nordicsemi.com/thread/268006?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2020 09:45:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64d13a0d-25c9-42bf-b943-7134a30a2638</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure about Mbed as it&amp;#39;s an external environment but in our SDK we require you to enable the peripheral in the sdk config file. We have &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/nrf_dev_timer_example.html?cp=7_1_4_6_46"&gt;timers &lt;/a&gt;and &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/nrf_gpiote_example.html?cp=7_1_4_6_14"&gt;GPIOTE + PPI&lt;/a&gt; examples in the SDK. Could you see if you&amp;#39;re able to reproduce it with our SDK?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRFX driver interrupt freeze the MCU</title><link>https://devzone.nordicsemi.com/thread/267660?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2020 14:10:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3fdea61-e72b-4f8f-aa1a-4238338e23b3</guid><dc:creator>FFischer</dc:creator><description>&lt;p&gt;Yes! I set a breakpoint on the handler and never stop the program. Also, I try to blink the led2 in the handler, but never change his state. Also, I see that the led1 stop to blink.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m wondering if I need enable the clock for the periphals o someting else. But I can&amp;#39;t find more information. There are any tutorial in hardware timers?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRFX driver interrupt freeze the MCU</title><link>https://devzone.nordicsemi.com/thread/267651?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2020 13:49:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f4bb8ea-430a-4da1-a359-20b6d7eb1a33</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;How did you verify that the handler isn&amp;#39;t called? Have you set a breakpoint in the handler and used the debugger? Could you try removing the sleep in the loop in main&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRFX driver interrupt freeze the MCU</title><link>https://devzone.nordicsemi.com/thread/267495?ContentTypeID=1</link><pubDate>Tue, 01 Sep 2020 14:55:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d58c20c-e55a-468b-a9c0-bff72789aa92</guid><dc:creator>FFischer</dc:creator><description>&lt;p&gt;Hi Jared! Thanks for the reply.&lt;/p&gt;
&lt;p&gt;I tried with LOW POWER MODE, but still don&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;Maybe my english don&amp;#39;t help, but the counter works well, I have problems with the timer, the callback function never is called.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRFX driver interrupt freeze the MCU</title><link>https://devzone.nordicsemi.com/thread/267487?ContentTypeID=1</link><pubDate>Tue, 01 Sep 2020 14:02:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f17f7209-6e83-4ba9-a4cd-854bd55c08ef</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Could you try to set the&amp;nbsp;counter_cfg.mode to&amp;nbsp;&lt;u&gt;&lt;a title="https://infocenter.nordicsemi.com/topic/drivers_nrfx_v2.3.0/group__nrf__timer__hal.html#gga61044c286dc20ccb08df3988bc57a6f2ac8924c802962ea8c7ee492403b339388" href="https://infocenter.nordicsemi.com/topic/drivers_nrfx_v2.3.0/group__nrf__timer__hal.html#gga61044c286dc20ccb08df3988bc57a6f2ac8924c802962ea8c7ee492403b339388" rel="noopener noreferrer" target="_blank"&gt;NRF_TIMER_MODE_LOW_POWER_COUNTER&lt;/a&gt;&amp;nbsp;&lt;/u&gt;(or the similar definition used in MBED). The counter has been &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/timer.html?cp=4_2_0_23_4_3#register.MODE"&gt;deprecated&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;u&gt;&lt;a title="https://infocenter.nordicsemi.com/topic/drivers_nrfx_v2.3.0/group__nrf__timer__hal.html#gga61044c286dc20ccb08df3988bc57a6f2ac8924c802962ea8c7ee492403b339388" href="https://infocenter.nordicsemi.com/topic/drivers_nrfx_v2.3.0/group__nrf__timer__hal.html#gga61044c286dc20ccb08df3988bc57a6f2ac8924c802962ea8c7ee492403b339388" rel="noopener noreferrer" target="_blank"&gt;&lt;/a&gt;&lt;/u&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>