<?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>RTC weird on nrf52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82585/rtc-weird-on-nrf52832</link><description>Hi, 
 we have an odd issue on ~ 50% of our in-house boards here. We&amp;#39;re using the internal RC as a low frequency clock, and then enable one RTC. No softdevice or anything. In main() , after the classic Reset_Handler (SDK 17.0.2), the first thing we do</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Dec 2021 07:41:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82585/rtc-weird-on-nrf52832" /><item><title>RE: RTC weird on nrf52832</title><link>https://devzone.nordicsemi.com/thread/344727?ContentTypeID=1</link><pubDate>Wed, 22 Dec 2021 07:41:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d48c5576-eb2d-4d55-bc59-1159fcc6a3fb</guid><dc:creator>pellepl</dc:creator><description>&lt;p&gt;I cannot reproduce this anymore, so I&amp;#39;ll conclude it was a fluke of some sort. If we stumble on it again I&amp;#39;ll try to gather more data.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the help and merry Christmas!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC weird on nrf52832</title><link>https://devzone.nordicsemi.com/thread/343803?ContentTypeID=1</link><pubDate>Thu, 16 Dec 2021 08:25:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c14b4d07-81be-4ede-b0e1-d02a165e9d15</guid><dc:creator>pellepl</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;sorry for belated reply. The marking on the chip says QFAAE1 2114FA,&amp;nbsp;In production we&amp;#39;re using the nrfx drivers, this example is boiled down for clarity.&lt;/p&gt;
&lt;p&gt;Turns out a power cycle resolves it. The processors are in a bit awkward position to easily cold boot.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My gut feeling is that&amp;nbsp;we&amp;#39;ve gotten into this state by numerous debugging sessions and flashings on perhaps bad timings. But it is a little scary that we got in this state as we&amp;#39;re relying on the rtc to work. I&amp;#39;ll see if I can reproduce it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC weird on nrf52832</title><link>https://devzone.nordicsemi.com/thread/343762?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 20:50:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2686481-4ac2-455c-8a10-9f04b515c3d5</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;This is not necessarily the issue, but I suggest changing the position of DSB to ensure the start completes before attempting to read. Additionally continuous reading of the counter register by the 64MHz cpu thrashes the bus pathwys between CPU and the 32kHz RTC and may (will) cause issues,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;Change:
    NRF_RTC2-&amp;gt;TASKS_START = 1;
    //while (NRF_RTC2-&amp;gt;COUNTER == 0); // HANG 4ever :(
    __DSB();
To:
    NRF_RTC2-&amp;gt;TASKS_START = 1;
    __DSB();
    while (NRF_RTC2-&amp;gt;COUNTER == 0) nrf_delay_usec(200); // HANG 4ever :(&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC weird on nrf52832</title><link>https://devzone.nordicsemi.com/thread/343440?ContentTypeID=1</link><pubDate>Tue, 14 Dec 2021 14:31:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32c55ac4-608a-4deb-9da8-98bb0d28d7f3</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not seeing this when testing on nRF52832-DKs. Can you try to call &lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/v1.8.4/drivers/src/nrfx_clock.c#L124"&gt;nrfx_clock_anomaly_132()&lt;/a&gt; before triggering LFCLKSTART ?&lt;/p&gt;
&lt;p&gt;PS: I recommend using the nrfx driver.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC weird on nrf52832</title><link>https://devzone.nordicsemi.com/thread/342980?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 16:01:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22c2a164-c34d-4352-8ceb-812b16dd28d7</guid><dc:creator>pellepl</dc:creator><description>&lt;p&gt;Hi, thanks for answering.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m pretty sure it is newer than that as it came from the factory this autumn, but will check for sure coming Monday.&lt;/p&gt;
&lt;p&gt;Also, it affects all three RTCs in fact, the RTC2 is simply the last one I tested.&lt;/p&gt;
&lt;p&gt;Finally, turns out a full power cycle recovers it. A reset via nrfjprog -r does not. Have yet to test nvic reset. We have no pin reset. And no idea of how we got to this state.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC weird on nrf52832</title><link>https://devzone.nordicsemi.com/thread/342977?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 15:51:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f68e2c13-5b0d-4742-af54-f1018e1a87df</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What is the IC marking on the nRF52832 that fails?&lt;/p&gt;
&lt;p&gt;Are you using some old&amp;nbsp;nRF52832 Engineering A devices here ? If yes, then this errata would explain the issue:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_EngA/ERR/nRF52832/EngineeringA/latest/anomaly_832_10.html"&gt;https://infocenter.nordicsemi.com/topic/errata_nRF52832_EngA/ERR/nRF52832/EngineeringA/latest/anomaly_832_10.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>