<?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>Resetting system after enabling internal RC  (Zephyr)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67364/resetting-system-after-enabling-internal-rc-zephyr</link><description>Hi, 
 I am using a custom board that uses Arm Cortex-A7 and embedding an nRF52840, There is no external low-frequency crystal 32kHz connected to the nrf52 chip, so I&amp;#39;ve enabled the internal RC by 
 
 CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y 
 CONFIG_CLOCK_CONTROL_NRF_K32SRC_20PPM</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Feb 2021 09:53:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67364/resetting-system-after-enabling-internal-rc-zephyr" /><item><title>RE: Resetting system after enabling internal RC  (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/293919?ContentTypeID=1</link><pubDate>Thu, 11 Feb 2021 09:53:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0801bc25-b05f-471f-b804-ce5dcc324f80</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;The reason the Direct Test Mode sample in NCS fails is because it&amp;#39;s not using the onoff service to request the HFXO. Check out this answer for more details:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/68773/clock_control_on-returns--eperm-on-ncs-1-4-0/282578#282578"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/68773/clock_control_on-returns--eperm-on-ncs-1-4-0/282578#282578&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please ask if you want more details on how to implement this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Resetting system after enabling internal RC  (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/282241?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2020 10:46:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a39f3012-76eb-4e4e-9ebb-cfba2d312a08</guid><dc:creator>Deri</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In fact, I&amp;#39;ve used DTM from nRF5 SDK v.16 instead and it is working smoothly, but I am still interested in finding why it not working using nRF connect&amp;nbsp;SDK with (&lt;span&gt;Zephyr RTOS) for the coming projects.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;so I would appreciate it if you could help to figure out what is still missing to enable internal RC in a proper way.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards.&lt;br /&gt;Tarek&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Resetting system after enabling internal RC  (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/282231?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2020 10:18:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16797212-82c2-47df-9292-e173f7d383e5</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry for the delay on this, I&amp;#39;ve been quite busy lately. Have you made any progress on this, or do you want me to look into this?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Resetting system after enabling internal RC  (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/280135?ContentTypeID=1</link><pubDate>Mon, 16 Nov 2020 14:27:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad029b46-fed0-4fc9-82bc-3d164c912a73</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;There seem to be some problems with the calibration of the RC oscillator when requesting the&amp;nbsp;&lt;span&gt;HFCLK. I tried to set a break point&amp;nbsp;at &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.0-ncs1-rc1/drivers/clock_control/clock_control_nrf.c#L156"&gt;clock_control_nrf.c--&amp;gt;set_starting_state--&amp;gt;err = -EPERM&lt;/a&gt;, and it was triggered. Here is the call stack:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/5732.pastedimage1605536759766v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will continue to investigate.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am really sorry for the slow progress on this issue.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Resetting system after enabling internal RC  (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/279191?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 10:42:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c46e6578-ad67-4c1a-bbcb-e80d0600be6c</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;ll ask internally if there has been any progress on this. However, I can see that only the nR5340 PDK is listed under &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/direct_test_mode/README.html#requirements"&gt;Requirements&lt;/a&gt; in the&amp;nbsp;DTM Documentation, so it may be that the nRF52840DK is not sufficiently tested. I was able to get internal RC to work with the BLE peripheral_lbs sample, so it seems like this is specific to the DTM sample.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Resetting system after enabling internal RC  (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/278950?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2020 09:54:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:651ce714-2765-4bb5-ba95-123217a1c14b</guid><dc:creator>Deri</dc:creator><description>&lt;p&gt;I am still waiting for any progress on solving this matter, Is there any good news?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Resetting system after enabling internal RC  (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/278155?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 18:12:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34c9c26b-622e-4fa9-899b-96e4567ab983</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure what&amp;#39;s causing this behaviour, I&amp;#39;ve reported your issue internally. I&amp;#39;ll keep you updated&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Resetting system after enabling internal RC  (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/277463?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 16:38:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b86dae7-14d8-4cc2-adf9-2364896a60b3</guid><dc:creator>Deri</dc:creator><description>&lt;p&gt;&lt;strong&gt;# nrfjprog --memrd 0x40000418&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;0x40000418: 00010000 |....|&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I will be on vacation for three days and&amp;nbsp;I will start debugging it by Ozone when coming back.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Resetting system after enabling internal RC  (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/277401?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 13:34:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1598c177-ce8e-49e4-8adb-e350b2f8cff8</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure why you&amp;#39;re not seeing the serial log. Are you able to use RTT logging?&lt;/p&gt;
&lt;p&gt;Could you try to debug your device (e.g. by using &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/tools/nordic_segger.html"&gt;Ozone&lt;/a&gt;), to see if everything behaves as expected?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What do you get if you run&amp;nbsp;&lt;em&gt;nrfjprog --memrd 0x40000418&amp;nbsp;&lt;/em&gt;(read &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/clock.html?cp=4_0_0_4_3_2_18#register.LFCLKSTAT"&gt;this register&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t&amp;nbsp;have access to an nRF52 device without/with a defect&amp;nbsp;&lt;span&gt;XTAL, so I&amp;#39;m not able to test this myself. Tomorrow I&amp;#39;ll get hold of one and do some testing.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Resetting system after enabling internal RC  (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/276925?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 14:41:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97503f14-7568-40eb-9e1f-76b56add84a6</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;ve been quite busy lately, my apologies for that. I will prioritize your issue tomorrow and try to get to the bottom of it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Resetting system after enabling internal RC  (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/276912?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 14:23:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21d91e80-04cc-4d31-ac3e-0702224de089</guid><dc:creator>Deri</dc:creator><description>&lt;p&gt;Is there any update about my issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Resetting system after enabling internal RC  (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/276485?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2020 15:01:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d3a57f7-2a87-4028-941e-dd42d01f746b</guid><dc:creator>Deri</dc:creator><description>&lt;p&gt;When disabling these&amp;nbsp;settings, the Zephyr OS on the custom board doesn&amp;#39;t boot up at all, it doesn&amp;#39;t show anything on the terminal,&lt;/p&gt;
&lt;p&gt;of course, I&amp;#39;ve enabled the below to see the data on my terminal.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;strong&gt;CONFIG_UART_CONSOLE=y&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;any other suggestions?&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Resetting system after enabling internal RC  (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/276461?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2020 13:29:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b12856ea-a582-44b6-9a4d-a36334373771</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I talked to a colleague that tried to enable RC on a chip with a defect XTAL. He told me that NCS would automatically detect this and choose the RC oscillator. Could you try to disable/comment out these:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_20PPM=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and see if it works.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Resetting system after enabling internal RC  (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/276069?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 06:16:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17efbc90-7a54-4116-9e20-1d5a9208bbe8</guid><dc:creator>Deri</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;r = &lt;span class="pl-c1"&gt;onoff_request&lt;/span&gt;(data-&amp;gt;&lt;span class="pl-smi"&gt;clk_mgr&lt;/span&gt;, &amp;amp;cli)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;It has returned 0 for the first time and has returned -5 for the second time and this triggered the macro assert&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;EIO&amp;nbsp;&lt;/span&gt;&lt;span&gt;5&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/*&amp;nbsp;I/O&amp;nbsp;error&amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I&amp;#39;ve also flashed the same FW on&amp;nbsp;nRF52840 DK (PCA10056) and it starts showing the same error and&amp;nbsp;resetting&amp;nbsp;continuously.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Resetting system after enabling internal RC  (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/276000?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 15:32:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:960a32ec-ecc0-463d-a62b-c1749478ec79</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;&lt;span style="background-color:rgba(255, 255, 255, 1);"&gt;It seems like &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.0-ncs1-rc1/drivers/sensor/nrf5/temp_nrf5.c#L60"&gt;this assert&lt;/a&gt; was triggered. Can you check what &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.0-ncs1-rc1/drivers/sensor/nrf5/temp_nrf5.c#L59"&gt;onoff_request()&lt;/a&gt; returned? Which one of &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.0-ncs1-rc1/include/sys/onoff.h#L341-L343"&gt;these&lt;/a&gt;? See &lt;em&gt;zephyr\lib\libc\minimal\include\errno.h.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:rgba(255, 255, 255, 1);"&gt;I&amp;#39;m not too familiar with this issue and what the assert may be caused by, but I will look into it/ask internally.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:rgba(255, 255, 255, 1);"&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:rgba(255, 255, 255, 1);"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>