<?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 conflict(?) between UNO and nRF8001</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13702/timer-conflict-between-uno-and-nrf8001</link><description>Dear members! 
 I followed the tutorial of the nRF8001, and tried this code: learn.adafruit.com/.../nrf-uart-in-detail 
 It worked for me just fine, but... 
 I have an existing metal detector code for Arduino UNO that uses Timer0 and Timer1 and interrupts</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 May 2016 13:46:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13702/timer-conflict-between-uno-and-nrf8001" /><item><title>RE: Timer conflict(?) between UNO and nRF8001</title><link>https://devzone.nordicsemi.com/thread/52367?ContentTypeID=1</link><pubDate>Tue, 10 May 2016 13:46:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7073d1a1-99b1-4541-8f44-664059f0fe66</guid><dc:creator>TreasureHunter</dc:creator><description>&lt;p&gt;I have no clue :(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer conflict(?) between UNO and nRF8001</title><link>https://devzone.nordicsemi.com/thread/52369?ContentTypeID=1</link><pubDate>Tue, 10 May 2016 06:03:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2047db4a-e45d-412f-88e6-4908ea310708</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;And for furter debugging, you could try to add some delays, as the serial interface is quite slow, you might get past sei() even if it looks like you don&amp;#39;t. I would guess you are failing in BTLEserial.begin() as this is essentially the only change in the setup part of your code, compared to the version without ble???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer conflict(?) between UNO and nRF8001</title><link>https://devzone.nordicsemi.com/thread/52368?ContentTypeID=1</link><pubDate>Tue, 10 May 2016 05:45:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89ef4615-b30a-4a5b-b274-c29656c4006c</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Could you check that you are not doing something strange when configuring your interrupts? As far as I can see, the adafruit library is a bit different from the nordic library (which means I&amp;#39;m not sure exactly what they are doing...), maybe you should check the way they configure interrupts in &lt;a href="https://github.com/adafruit/Adafruit_nRF8001/blob/master/utility/hal_aci_tl.cpp#L315"&gt;hal_aci_tl&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer conflict(?) between UNO and nRF8001</title><link>https://devzone.nordicsemi.com/thread/52366?ContentTypeID=1</link><pubDate>Mon, 09 May 2016 14:05:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06ff4e72-d2ac-4a3a-88be-0fa0ab0772ac</guid><dc:creator>TreasureHunter</dc:creator><description>&lt;p&gt;I tried the tutorial code again, it works fine, I then tried the code in the &amp;quot;pastebin&amp;quot; again, nothing..
I put a Serial.print(&amp;quot;TEST&amp;quot;); before cli() in setup() stage, and put Serial.print(&amp;quot;TEST1&amp;quot;); after sei().&lt;/p&gt;
&lt;p&gt;The result was: a &amp;quot;T&amp;quot; appeared in the serial monitor, nothing more..
so the problem must be between cli() and sei() with those registers or something.. I don&amp;#39;t get it..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer conflict(?) between UNO and nRF8001</title><link>https://devzone.nordicsemi.com/thread/52365?ContentTypeID=1</link><pubDate>Mon, 09 May 2016 13:55:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e70c4c6-9917-4c51-9810-c387f4a108ba</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;I have heared about the bug that is somehow connected with newest IDE. As other people were saying (i have not experienced that by myself! maybe because i am not using arduino at all.) program may be stuck when you have USB cable plugged in board and serial monitor is closed. Could you try restarting serial monitor?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer conflict(?) between UNO and nRF8001</title><link>https://devzone.nordicsemi.com/thread/52364?ContentTypeID=1</link><pubDate>Mon, 09 May 2016 13:50:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce139774-cb7e-4700-accb-0c14e52826cf</guid><dc:creator>TreasureHunter</dc:creator><description>&lt;p&gt;When I run the program, it doesn&amp;#39;t even reach the loop() cycle, because the serial.print(&amp;quot;TEST3&amp;quot;) doesn&amp;#39;t print out at the beginning. I though it&amp;#39;s a timer problem because nRF8001 uses a clock at SCK pin, so I though it needs a timer of some sort.&lt;/p&gt;
&lt;p&gt;I call BTLEserial.write in the end of the code, but we doesn&amp;#39;t reach that, because it doesn&amp;#39;t even starts to advertise.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer conflict(?) between UNO and nRF8001</title><link>https://devzone.nordicsemi.com/thread/52363?ContentTypeID=1</link><pubDate>Mon, 09 May 2016 13:05:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05a4f8ea-ad16-40c7-a18e-e77ec6ce1394</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;As far as I can see the adafruite library isn&amp;#39;t using any timer. Why do you suspect that this is a timer conflict?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer conflict(?) between UNO and nRF8001</title><link>https://devzone.nordicsemi.com/thread/52362?ContentTypeID=1</link><pubDate>Mon, 09 May 2016 12:39:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e308738-8647-411b-b5d6-625df0d23cda</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Are you getting any indications why it is not working? Is BTLEserial.write called? what is returned from BTLEserial.write? etc...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>