<?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>NRF52840 use ble_app_blinky source code add timer function?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38863/nrf52840-use-ble_app_blinky-source-code-add-timer-function</link><description>I used ble_app_blinky source code want to add timer0 function. 
 main.c 
 const nrf_drv_timer_t m_timer0 = NRF_DRV_TIMER_INSTANCE(0); 
 static void timer0_event_handler(nrf_timer_event_t event_type, void * p_context) { } 
 
 I used ble_app_blinky source</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Sep 2018 03:23:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38863/nrf52840-use-ble_app_blinky-source-code-add-timer-function" /><item><title>RE: NRF52840 use ble_app_blinky source code add timer function?</title><link>https://devzone.nordicsemi.com/thread/150575?ContentTypeID=1</link><pubDate>Thu, 27 Sep 2018 03:23:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87b516b0-6cba-4d90-bc01-ba971d2bf22b</guid><dc:creator>Ray Chiou</dc:creator><description>&lt;p&gt;Thank you very much.&lt;br /&gt;I use timer1 to PWM function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 use ble_app_blinky source code add timer function?</title><link>https://devzone.nordicsemi.com/thread/150378?ContentTypeID=1</link><pubDate>Wed, 26 Sep 2018 07:29:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66afab53-0425-4e6a-b1a6-210e90ab5c31</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;TIMER2 is exactly the same as TIMER1, so if TIMER1 doesn&amp;#39;t work, then perhaps you use it somewhere else in your code?&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 use ble_app_blinky source code add timer function?</title><link>https://devzone.nordicsemi.com/thread/150373?ContentTypeID=1</link><pubDate>Wed, 26 Sep 2018 07:17:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a1c65ac-7013-4fb4-b360-4bd00bc5ffd8</guid><dc:creator>Ray Chiou</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi AndreasF,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Sorry, I use timer2 is OK,but timer1 is false. I don&amp;#39;t no what happend?&lt;br /&gt;&lt;br /&gt;I have enable sdk_config.h.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 use ble_app_blinky source code add timer function?</title><link>https://devzone.nordicsemi.com/thread/150368?ContentTypeID=1</link><pubDate>Wed, 26 Sep 2018 06:56:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0df5e14c-940e-4104-9e8f-8c351235a9a1</guid><dc:creator>Ray Chiou</dc:creator><description>&lt;p&gt;Hi AndreasF,&lt;br /&gt;&lt;br /&gt;I modify&amp;nbsp;&lt;span&gt;const nrf_drv_timer_t m_timer0 = NRF_DRV_TIMER_INSTANCE(0) to&amp;nbsp;const nrf_drv_timer_t m_timer0 = NRF_DRV_TIMER_INSTANCE(1)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I get this meaasge,can you help me?&lt;br /&gt;&lt;br /&gt;&amp;lt;error&amp;gt; app: ERROR 8 [NRF_ERROR_INVALID_STATE] at :0&lt;br /&gt; &lt;br /&gt;PC at: 0x00000000&lt;br /&gt; &lt;br /&gt;&amp;lt;error&amp;gt; app: End of error report&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 use ble_app_blinky source code add timer function?</title><link>https://devzone.nordicsemi.com/thread/150238?ContentTypeID=1</link><pubDate>Tue, 25 Sep 2018 11:51:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ccf9b3f-9422-4ab7-a325-d62123e79565</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Ray.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;TIMER0&lt;/em&gt; is blocked when the SoftDevice is enabled. You can see this in the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.sds/dita/softdevices/s130/sd_resource_reqs/hw_block_interrupt_vector.html?cp=2_3_2_0_6_0"&gt;hardware access table&lt;/a&gt; in the infocenter. &lt;br /&gt;You can also see in this table that &lt;em&gt;TIMER1&lt;/em&gt; and &lt;em&gt;TIMER2&lt;/em&gt; is &lt;em&gt;open&lt;/em&gt;, so you should use these.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>