<?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>Setup timer on ARDUINO NANO 33 BLE nRF 52840.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52982/setup-timer-on-arduino-nano-33-ble-nrf-52840</link><description>Hi I am having trouble setting up a timer and interrupt on the Arduino side &amp;amp; was hoping some one might help 
 
 here is my code so far 
 
 Thanks so much</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Jun 2020 23:00:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52982/setup-timer-on-arduino-nano-33-ble-nrf-52840" /><item><title>RE: Setup timer on ARDUINO NANO 33 BLE nRF 52840.</title><link>https://devzone.nordicsemi.com/thread/254112?ContentTypeID=1</link><pubDate>Tue, 09 Jun 2020 23:00:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2b70c27-cfbf-4495-a4e6-e54e9db43fb8</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Instead of NRF_TIMER2-&amp;gt;TASKS_STOP = 1; try this maybe:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;  // Errata: [78] TIMER: High current consumption when using timer STOP task only
  //  - Workaround: Use the SHUTDOWN task after the STOP task or instead of the STOP task
  //  - this also stops the Timer from hanging after a time change
  //  - affects nRF52832, nRF52840
  NRF_TIMER2-&amp;gt;TASKS_SHUTDOWN = 1;
  // There is no STOPPED Event, and this register is read-only, so add a delay to ensure it is stopped before changes
  //NRF_TIMER2-&amp;gt;TASKS_STOP = 1;
  nrf_delay_us(200);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Not sure about priorities in Arduino, but maybe set something:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;  // Set interrupt priority and enable interrupt
  NVIC_SetPriority(TIMER2_IRQn, 6);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Edit: Oh, I see the question is 8 months old, maybe it got fixed already ..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setup timer on ARDUINO NANO 33 BLE nRF 52840.</title><link>https://devzone.nordicsemi.com/thread/254111?ContentTypeID=1</link><pubDate>Tue, 09 Jun 2020 22:21:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ca9d28d-fdce-428f-b537-0918d69e0f4b</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Of course there is.&lt;/p&gt;
&lt;p&gt;You can just erase the chip, and go from there ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setup timer on ARDUINO NANO 33 BLE nRF 52840.</title><link>https://devzone.nordicsemi.com/thread/254110?ContentTypeID=1</link><pubDate>Tue, 09 Jun 2020 22:17:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04cff5a8-1abe-48e3-8add-29b25e12d2d9</guid><dc:creator>sastorer-ms</dc:creator><description>&lt;p&gt;Hey there! I&amp;#39;m wondering the same thing. I&amp;#39;d like to use an official Nordic SDK on the nano 33 BLE. Is there a way to do this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setup timer on ARDUINO NANO 33 BLE nRF 52840.</title><link>https://devzone.nordicsemi.com/thread/222156?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 15:35:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:741978f1-a77e-42a5-8574-9b053d7ffe77</guid><dc:creator>alexisicte90</dc:creator><description>&lt;p&gt;Do you believe that is possible to develop on nrf SDK and then flash the hex file to arduino nano ble 33 through SWD pins?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setup timer on ARDUINO NANO 33 BLE nRF 52840.</title><link>https://devzone.nordicsemi.com/thread/221938?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 19:03:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87c24000-cd15-421e-87a6-be2fcc765548</guid><dc:creator>rocksetta</dc:creator><description>&lt;p&gt;I have also bought a few boards supporting the nRF52840 Nordic chip that I would prefer to program using nordic&amp;#39;s nrf-connect. Which I think could be done, just no one has done it. In my case both the Arduino Nano 33 BLE and the Particle Mesh devices. As far as I can tell, neither can be programmed using the USB connection and nRF-connect.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setup timer on ARDUINO NANO 33 BLE nRF 52840.</title><link>https://devzone.nordicsemi.com/thread/213738?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 18:02:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cdaddbc-02f2-4f62-bc9c-52e0714cca3f</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Yes, but nordic have nothing to do with the Arduino software that you&amp;#39;re using to drive it - that&amp;#39;s the bit that you need to ask the Arduino people about.&lt;/p&gt;
&lt;p&gt;Nordic support&amp;nbsp;development using their SDK:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/struct_sdk/struct/sdk.html"&gt;https://infocenter.nordicsemi.com/topic/struct_sdk/struct/sdk.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setup timer on ARDUINO NANO 33 BLE nRF 52840.</title><link>https://devzone.nordicsemi.com/thread/213736?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 17:33:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb0985f0-71ee-45a4-bf60-44f4ebb254d2</guid><dc:creator>Drusound</dc:creator><description>&lt;p&gt;With the kindest of respect &amp;nbsp;this arduino does it uses the Nordic nRrf 52840 nmicroprocessor so I thought it might be a good place to ask&lt;/p&gt;
&lt;h1 class="name"&gt;&lt;/h1&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setup timer on ARDUINO NANO 33 BLE nRF 52840.</title><link>https://devzone.nordicsemi.com/thread/213734?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 17:22:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f56c80b-2530-40da-9024-a6a87087e5e9</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The Arduino stuff is nothing to do with Nordic - you&amp;#39;d need to ask on the Arduino forums&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>