<?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>app_timer value affects twim?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60665/app_timer-value-affects-twim</link><description>I&amp;#39;m seeing an odd behavior where the ability for our application to communicate to peripherals via twim is being affected by the initialization values for app timers. 
 Timers are initialized and started before twim. 
 
 a single shot timer with duration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 May 2020 19:14:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60665/app_timer-value-affects-twim" /><item><title>RE: app_timer value affects twim?</title><link>https://devzone.nordicsemi.com/thread/249023?ContentTypeID=1</link><pubDate>Fri, 08 May 2020 19:14:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21e60643-fc97-4ea4-bc65-6a28532b1991</guid><dc:creator>Raymond Pelletier</dc:creator><description>&lt;p&gt;Changing the initialization order fixes the problem. &amp;nbsp;Softdevice &amp;gt; timers &amp;gt; TWIM. Works for all values of the timer. If anyone has an explanation of why the original order fails, if one exists, it would be useful to clarify and avoid issues going forward.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_timer value affects twim?</title><link>https://devzone.nordicsemi.com/thread/247414?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 18:29:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ade495b-75ce-42c4-9262-7594c6616aa4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I cannot see how this change in app timer frequency itself should cause this problem, but from your description, it seems clear that this could change the timing of other things in your system, such as &amp;quot;send info over a bluetooth characteristic or talk to a peripheral via TWIM&amp;quot;. This is clearly where you should look, but I cannot say anything more specific without knowing more about your firmware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_timer value affects twim?</title><link>https://devzone.nordicsemi.com/thread/247408?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 17:35:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76cf27c5-f0d5-4a07-8885-f316c0062c60</guid><dc:creator>Raymond Pelletier</dc:creator><description>&lt;ul&gt;
&lt;li&gt;What does the third timer control (i.e. what happens in the timeout handler)?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It examines the state of the buttons on our device and changes the LED patterns according to UX design rules.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Is the third timer related to your TWIM transactions or handling in some way?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If the button state should trigger anything more elaborate the handler queues&amp;nbsp;an event on the app scheduler. (for example, to send&amp;nbsp;info&amp;nbsp;over a bluetooth characteristic or talk to a peripheral via TWIM)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;How is TWIM affected?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;a read operation never completes. During initialization we wait for the read to complete before continuing.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Anything else you can say? Please elaborate&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The hang occurs during initialization of the device on reset and is the first attempt to communicate over&amp;nbsp;twim. The difference is caused by the change of a single integer configuration value (frequency of the button scan)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Can you share code?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I prefer not to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_timer value affects twim?</title><link>https://devzone.nordicsemi.com/thread/246813?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 12:12:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ec407f0-d1f5-4982-a186-026e6b22a062</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I do not immediately see any good reason the frequency of an app timer should affect your TWIM transactions in general, particularly not when&amp;nbsp;increasing it. I have some questions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What does the third timer control (i.e. what happens in the timeout handler)?&lt;/li&gt;
&lt;li&gt;Is the third timer related to your TWIM transactions or handling in some way?&lt;/li&gt;
&lt;li&gt;How is TWIM affected?&lt;/li&gt;
&lt;li&gt;Anything else you can say? Please elaborate&lt;/li&gt;
&lt;li&gt;Can you share code?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>