<?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>Timer 1 and BLE (softdevice) interfering</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22627/timer-1-and-ble-softdevice-interfering</link><description>Hi, 
 To decrease the load on the system I would like to periodically send some BT data (and do some SD card writing). 
 Since Timer 0 is used by the soft device, I am using Timer 1 as follows: 
 const nrf_drv_timer_t timer = NRF_DRV_TIMER_INSTANCE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Mar 2018 11:12:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22627/timer-1-and-ble-softdevice-interfering" /><item><title>RE: Timer 1 and BLE (softdevice) interfering</title><link>https://devzone.nordicsemi.com/thread/122436?ContentTypeID=1</link><pubDate>Thu, 01 Mar 2018 11:12:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c902255-8302-4f34-b45c-e10dde6f9dc7</guid><dc:creator>Pepijn</dc:creator><description>&lt;p&gt;I just saw I didn&amp;#39;t close this ticket, although the issue has been resolved. However, I&amp;#39;m not sure what the exact cause was, I believe it was because I did &amp;quot;very&amp;quot; time consuming actions, such as writing/read to and from an SD card. This wouldn&amp;#39;t be completed before the next timer callback, leading to strange behavior.&lt;br /&gt;&lt;br /&gt;I solved it by only setting flags in the onTimer callback, such as &amp;quot;_action_write = true&amp;quot;. In the main() loop I checked whether this flag was set, performed the action there, and cleared the flag. Now I&amp;#39;m also sure I&amp;#39;m not trying to write to the same file at the same time (which would happen if the onTimer callbacks overlapped in duration time).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer 1 and BLE (softdevice) interfering</title><link>https://devzone.nordicsemi.com/thread/89008?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2017 12:23:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6e93d09-9d4b-43ff-a910-cd6da2a7dd9a</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;When TIMER1 starts to behave strange, could you use &lt;code&gt;nrf_drv_timer_capture()&lt;/code&gt; to capture the timer value?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>