<?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 difference S110 v7 vs v8</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10792/timer-difference-s110-v7-vs-v8</link><description>For a sensor design I want to use timers with the UART service. I got it somehow working for the S110 version 7. The only problem I have with version 7 is that I can&amp;#39;t use the UART like it should. However when I try to port the software to get it working</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Dec 2015 17:16:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10792/timer-difference-s110-v7-vs-v8" /><item><title>RE: Timer difference S110 v7 vs v8</title><link>https://devzone.nordicsemi.com/thread/40331?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2015 17:16:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9db709de-6835-4c0f-8e91-8b4c574acecb</guid><dc:creator>Michel</dc:creator><description>&lt;p&gt;Thanks. This solved my problem.
By replacing this code:
static app_timer_id_t m_battery_timer_id;&lt;/p&gt;
&lt;p&gt;for
APP_TIMER_DEF(m_battery_timer_id);
This did the trick!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer difference S110 v7 vs v8</title><link>https://devzone.nordicsemi.com/thread/40330?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2015 14:34:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:239aa5fb-d60b-4e57-9e8f-822a274e374e</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;For SDK 10 it looks like you have to use this macro (app_timer_start(...) will return NRF_ERROR_INVALID_STATE if the id is zero):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;APP_TIMER_DEF(m_battery_timer_id);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer difference S110 v7 vs v8</title><link>https://devzone.nordicsemi.com/thread/40329?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2015 14:05:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75973ce3-e1d8-4231-8a82-b6fd662eea1e</guid><dc:creator>Michel</dc:creator><description>&lt;p&gt;I have selected the latest versions of the Software Packs.
As far as I know I&amp;#39;m using 10.0.0.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nRF_Examples = 10.0.0&lt;/li&gt;
&lt;li&gt;nRF_BLE, Libraries, Drivers,  = 3.1.0&lt;/li&gt;
&lt;li&gt;FamilyPack = 8.2.0&lt;/li&gt;
&lt;li&gt;nRF_Softdevice_S110 = 8.0.3&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The error-code after creating the timer is 0, so that should be NRF_SUCCESS.&lt;/p&gt;
&lt;p&gt;I will add some of the declaration&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define BATTERY_LEVEL_MEAS_INTERVAL	500  /**&amp;lt; Battery Level measurement interval. */
#define APP_TIMER_PRESCALER             0         /**&amp;lt; Value of the RTC1 PRESCALER register. */

static app_timer_id_t   m_battery_timer_id;     /**&amp;lt; Battery timer. */
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer difference S110 v7 vs v8</title><link>https://devzone.nordicsemi.com/thread/40328?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2015 13:11:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0633944e-1156-41bf-a5de-ae06d87d599c</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Which SDK version are you using? I see that you dont check the error code from app_timer_create(), are you sure this completed successfully?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer difference S110 v7 vs v8</title><link>https://devzone.nordicsemi.com/thread/40327?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2015 11:53:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a0f6782-b6ad-4c2b-9e4a-2f6f91f528a5</guid><dc:creator>Michel</dc:creator><description>&lt;p&gt;Thanks for the comment. I checked the error code. It is indeed not NRF_SUCCESS but Code number 8 which suggests NRF_ERROR_INVALID_STATE. But this is still strange for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer difference S110 v7 vs v8</title><link>https://devzone.nordicsemi.com/thread/40326?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2015 22:40:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc19316e-e5dc-44a2-a875-5e9b7cad6670</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;What&amp;#39;s &amp;#39;err_code&amp;#39;? Most likely the APP_ERROR_CHECK() is resetting the device because err_code isnt&amp;#39; NRF_SUCCESS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>