<?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>different behaviour when debugging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16557/different-behaviour-when-debugging</link><description>I&amp;#39;m trying to communicate with an EEPROM chip using SPI. When I run under the debugger, the EEPROM doesn&amp;#39;t respond; without the debugger running, it seems to work fine. 
 What difference could running under the debugger be making?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Sep 2016 12:36:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16557/different-behaviour-when-debugging" /><item><title>RE: different behaviour when debugging</title><link>https://devzone.nordicsemi.com/thread/63337?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2016 12:36:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76920ebe-ce4f-4f7f-8eb1-85141335ab74</guid><dc:creator>Display Name</dc:creator><description>&lt;p&gt;The EEPROM is a N25Q064A13ESE40E.  The datasheet is &lt;a href="http://www.farnell.com/datasheets/1674442.pdf"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: different behaviour when debugging</title><link>https://devzone.nordicsemi.com/thread/63338?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2016 11:36:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e7e7138-f840-471a-aee4-e02f594ebe56</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;That is a bit strange that the noise was making this 100% reproducible. Would you please mind telling us the EEPROM spec, could be fun for others to try figure it out what cause this. Most probably some electrical resonance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: different behaviour when debugging</title><link>https://devzone.nordicsemi.com/thread/63336?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2016 11:13:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6c24c16-b94d-43cb-917a-cfe82f0575e9</guid><dc:creator>Display Name</dc:creator><description>&lt;p&gt;So, we got it working and the problem was this:&lt;/p&gt;
&lt;p&gt;The EEPROM has a HOLD pin which needed to be pulled-up in order for it to work.  Although the datasheet showed an example schematic with that pin floating (internal pullup implied) that was not the case and an external pullup was needed.&lt;/p&gt;
&lt;p&gt;We think the debugger/non-debugger difference in behaviour was caused by different levels of noise on the floating pin with/without the debugger running. Bit weird, but 100% reproducible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: different behaviour when debugging</title><link>https://devzone.nordicsemi.com/thread/63335?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2016 12:00:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:679bf02b-cfa2-49c2-b43c-998d47a5e302</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;There must be a difference either in the data sent or in the timings. There is no other explanation to it. The timing could be different in us - ms. Also check if there are any floating pins and all pins are pulled down or pulled up correctly if they require it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: different behaviour when debugging</title><link>https://devzone.nordicsemi.com/thread/63334?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2016 09:37:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c197c2ea-f4f2-4a49-8a17-a27a48f1af2a</guid><dc:creator>Display Name</dc:creator><description>&lt;p&gt;The broken behaviour happens even without any breakpoints set.  Looking on an analyser with and without debugger, the signals are pretty much identical.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: different behaviour when debugging</title><link>https://devzone.nordicsemi.com/thread/63333?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2016 09:30:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dd97ca4-4801-4a00-848a-f09b33ccea18</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Depends on your EEPROM, if it does not like breaks in between SPI read/write bytes then it probably wont respond. Check the commands sent to the EEPROM and its response using logic analyzer with and without debugger.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>