<?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>Power-cycling reset vs JLink reset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9709/power-cycling-reset-vs-jlink-reset</link><description>We&amp;#39;ve developed a custom board based on the nRF51822-QFAA and an MPU-6050 IMU. It runs on a li-pol battery and uses S110. 
 I&amp;#39;ve encountered a strange problem when power-cycling the device (taking the battery out and putting it back it) that doesn&amp;#39;t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 18 Feb 2017 12:54:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9709/power-cycling-reset-vs-jlink-reset" /><item><title>RE: Power-cycling reset vs JLink reset</title><link>https://devzone.nordicsemi.com/thread/35929?ContentTypeID=1</link><pubDate>Sat, 18 Feb 2017 12:54:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91773633-5f65-4b7b-becc-39278879ffc5</guid><dc:creator>Sanjay Shreedharan</dc:creator><description>&lt;p&gt;Re-initializing the MPU6050 seemed to solve the issue. Guess it is some issue with the SDK 4.4.2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power-cycling reset vs JLink reset</title><link>https://devzone.nordicsemi.com/thread/35928?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2017 23:07:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99be335a-0d6a-4908-bbc7-0dd3fb7103f5</guid><dc:creator>Nicolas Tzovanis</dc:creator><description>&lt;p&gt;Can you post the code you used to initialize the MPU-6050?
I&amp;#39;ve had some issues before, when I was trying to initialize the MPU by reading the values of the registers and masking them before writing. Not sure if that&amp;#39;s your case, but it&amp;#39;s worth double-checking that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power-cycling reset vs JLink reset</title><link>https://devzone.nordicsemi.com/thread/35927?ContentTypeID=1</link><pubDate>Sat, 11 Feb 2017 20:36:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce7c117a-d04e-47de-8d6a-023d4ddd6238</guid><dc:creator>Sanjay Shreedharan</dc:creator><description>&lt;p&gt;I am facing the same issue as above. I have a custom made board with nRF51822 QFAA, MPU6050 and CP2104 (USB to Serial converter). If I reset the board through JLink, I&amp;#39;m able to receive the accelerometer and gyroscope values through serial communication. If I hard reset the device, the accelerometer and gyroscope just gives me zeros.&lt;/p&gt;
&lt;p&gt;I already tried the above solution and increased the initial delay to 10 seconds before MPU6050 is initialised. But even then, I get only zeros. Any help on this issue would be appreciated.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power-cycling reset vs JLink reset</title><link>https://devzone.nordicsemi.com/thread/35926?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2015 12:21:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08102ef3-7718-48a5-bec9-0a9f58d48d6b</guid><dc:creator>Nicolas Tzovanis</dc:creator><description>&lt;p&gt;Thanks Dave, that solved my problem! It wasn&amp;#39;t mentioned in the documentation so it required some trial and error, but eventually it worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power-cycling reset vs JLink reset</title><link>https://devzone.nordicsemi.com/thread/35924?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2015 13:30:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80b8f05a-ceb8-4b8a-a995-0a3bef22b86c</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;I have experienced that nRF51 can be powered through GPIO pins. I assume the MPU communicates with the nRF51 through SPI or TWI on configured GPIO pins. Somehow that MPU retains voltage on GPIO pins to power the nRF51 for a short while. That is what I can think of as a possible reason if the case is not what Dave points out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power-cycling reset vs JLink reset</title><link>https://devzone.nordicsemi.com/thread/35923?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2015 10:07:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d162851-460e-4bbe-8989-dcdefbd71148</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Fair point. (I guess the accelerometer counts as other &amp;quot;hardware things&amp;quot;...?)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power-cycling reset vs JLink reset</title><link>https://devzone.nordicsemi.com/thread/35922?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2015 08:14:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f0753b4-1c67-4e3f-8ba3-519bd70f313f</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;His problem is the wrong way round for that. If it were the case the memory was not being reset when the power stayed on, then his JLink reset would fail, but the power-cycle one would work. His issue is the opposite to that, it works with JLink and fails when he power-cycles it. I think it&amp;#39;s more likely to be what Dave mentions above, the accelerometer IS set up, however it&amp;#39;s set up too early.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power-cycling reset vs JLink reset</title><link>https://devzone.nordicsemi.com/thread/35921?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2015 08:08:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e081b4a0-9f3c-4b54-a991-9407afcbc78c</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Yes - the big difference between a power-cycle and a jLink (or other) reset is that the power remains connected during the reset. So there are going to be hardware things that are not affected - in particular, memory contents.&lt;/p&gt;
&lt;p&gt;So the first thing to check would be that you&amp;#39;re not relying upon any uninitialised variables or memory areas...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power-cycling reset vs JLink reset</title><link>https://devzone.nordicsemi.com/thread/35920?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2015 03:04:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a09fc3b6-9584-405b-9851-2ae3b003e79a</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;There are differences between a power-down reset and a jLink reset, but not many. Both of them restart the code at the reset_handler and if your variable is correctly a static variable with default zero it will be in the BSS section and it will be initialised to zero in both cases.&lt;/p&gt;
&lt;p&gt;So it&amp;#39;s unlikely that&amp;#39;s your problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power-cycling reset vs JLink reset</title><link>https://devzone.nordicsemi.com/thread/35925?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2015 19:51:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8efe39d3-ea13-4a7f-9634-9866ad03407a</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;Often time with accelerometers there are required delays after a Power-cycle before you can safely write to their registers them.   This is because there are internal sub-routines that occur.  I&amp;#39;ve interfaced to several difference sensors which all had their own required delay after a POR.   On a Reset-pin Reset this delay isn&amp;#39;t required.  Something to look into.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>