<?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>Add Multiple Timers in sdk 11 (S130)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12568/add-multiple-timers-in-sdk-11-s130</link><description>I am developing an code which requires use of multiple Timers.
I am using Sdk 11 here when i try to initialize timer there is no field for APP_TIMER_MAX_TIMERS in APP_TIMER_INIT function.
Before this i was using Sdk 6.1.0 and in that there was provision</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Mar 2016 07:34:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12568/add-multiple-timers-in-sdk-11-s130" /><item><title>RE: Add Multiple Timers in sdk 11 (S130)</title><link>https://devzone.nordicsemi.com/thread/47731?ContentTypeID=1</link><pubDate>Thu, 17 Mar 2016 07:34:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea1ae963-4957-47ce-873f-1e28325234b3</guid><dc:creator>jayesh</dc:creator><description>&lt;p&gt;Hello Wojtek can you share any sample Peripheral code for SDK 11 prepared by you. It would be great help from your side. If you want i can share you my Email ID:- jayesh1.embedded@gmail.com
Right now i am using soft device &amp;quot;s130_nrf51_2.0.0_softdevice&amp;quot; for SDK 11.
But while debugging i am not getting yellow pointer on 1st line of Main routine infact i am not getting only yellow cursor. Am i using wrong soft device ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Multiple Timers in sdk 11 (S130)</title><link>https://devzone.nordicsemi.com/thread/47730?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2016 13:43:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b44af45-0beb-4460-b492-1e582d3100bb</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;Ok I was a bit wrong - it doesn&amp;#39;t calculate number of timers initialized, but actually every APP_TIMER_DEF reserves ram for static timer instance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Multiple Timers in sdk 11 (S130)</title><link>https://devzone.nordicsemi.com/thread/47729?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2016 13:30:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b4fd606-17da-4f4b-8eac-b99a4d66786d</guid><dc:creator>jayesh</dc:creator><description>&lt;p&gt;But on what basis IDE automatically calculates number of timers, any idea Wojtek??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Multiple Timers in sdk 11 (S130)</title><link>https://devzone.nordicsemi.com/thread/47735?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2016 13:27:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04b0e689-42ef-4d4d-a629-05d5307a8397</guid><dc:creator>jayesh</dc:creator><description>&lt;p&gt;Thanks Einar for the reply it helped a lot to me...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Multiple Timers in sdk 11 (S130)</title><link>https://devzone.nordicsemi.com/thread/47734?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2016 07:48:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99a5a2c9-39fa-448f-bf5e-6d243d6d2a5b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;You are absolutely right. It&amp;#39;s fixed now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Multiple Timers in sdk 11 (S130)</title><link>https://devzone.nordicsemi.com/thread/47733?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 15:10:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c69994a-9a62-451f-bbf1-8ee672cd677d</guid><dc:creator>Luis</dc:creator><description>&lt;p&gt;I think there is a typo at using the comparison expressions.
Shouldn&amp;#39;t it be &amp;quot;SDK &amp;lt;=9 to SDK &amp;gt;= 10&amp;quot; ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Multiple Timers in sdk 11 (S130)</title><link>https://devzone.nordicsemi.com/thread/47732?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 14:13:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b731dcec-8f8b-4767-bec7-8490d48fd7ee</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;There was a change in the application timer API from version 9 to 10. This change is explained in the &lt;a href="https://devzone.nordicsemi.com/tutorials/19/"&gt;Application Timer Tutorial&lt;/a&gt;. There also a &lt;a href="https://devzone.nordicsemi.com/tutorials/23/"&gt;Scheduler Tutorial&lt;/a&gt; that describes how to use the scheduler together with the application timer. The tutorials are written for SDK version 9 and 10, but is equally valid for version 11.&lt;/p&gt;
&lt;p&gt;In short this is the changes you have to do when going from SDK &amp;lt;=9 to SDK &amp;gt;=10:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Create the timer ID with &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/group__app__timer.html#gaf8712d5f21788ee57a694e9d3303d9ee"&gt;&lt;code&gt;APP_TIMER_DEF()&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/group__app__timer.html#ga63243f2b20523cb832fe0bf3d56c1bc9"&gt;&lt;code&gt;APP_TIMER_INIT&lt;/code&gt;&lt;/a&gt; does no longer need the max number of  timers a a parameter.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In addition, if you are using the scheduler you should initialize the application timer using &lt;code&gt;APP_TIMER_APPSH_INIT()&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Multiple Timers in sdk 11 (S130)</title><link>https://devzone.nordicsemi.com/thread/47728?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 13:35:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:555022db-2a30-43e7-81ee-786d71d9bf07</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;I don&amp;#39;t know about scheduler, but I think APP_TIMER_MAX_TIMERS is not needed as IDE automatically calculates number of timers used and reserve exact amount of memory needed to handle them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>