<?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>Enabling / Disabling I-Cache while Softdevice is Enabled on NRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42527/enabling-disabling-i-cache-while-softdevice-is-enabled-on-nrf52840</link><description>NRF52840 - SDK 15.0 - SD 6.0.0 
 I&amp;#39;m trying to profile some code performance and I want to see how the I-Cache is impacting it. If I attempt to access the NVMC register ICACHECNF once SD is enabled my device goes into a reset loop, crashing every time</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Mar 2023 17:45:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42527/enabling-disabling-i-cache-while-softdevice-is-enabled-on-nrf52840" /><item><title>RE: Enabling / Disabling I-Cache while Softdevice is Enabled on NRF52840</title><link>https://devzone.nordicsemi.com/thread/416642?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2023 17:45:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7595d03-3a4f-4a19-ac35-55ca0d849cba</guid><dc:creator>peter9477</dc:creator><description>&lt;p&gt;I have no issue. If you read my comment, you can see I&amp;#39;m responding to an earlier comment with what I believed was useful information that might help others who may come along later to read this thread...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling / Disabling I-Cache while Softdevice is Enabled on NRF52840</title><link>https://devzone.nordicsemi.com/thread/416247?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2023 12:28:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5338e717-0c76-4815-bd9d-27a5c3cfc3b4</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;peter9477,&lt;/p&gt;
&lt;p&gt;This case is ~4 years old. Please create a new case for the issue you are having. Make sure to include SDK, SoftDevice version, etc&amp;nbsp;when you create a new case:&amp;nbsp; &lt;a id="i2" href="https://devzone.nordicsemi.com/support/add"&gt;https://devzone.nordicsemi.com/support/add&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling / Disabling I-Cache while Softdevice is Enabled on NRF52840</title><link>https://devzone.nordicsemi.com/thread/416168?ContentTypeID=1</link><pubDate>Sun, 19 Mar 2023 23:45:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6e21d86-6ea3-4d7e-853f-fd6047640758</guid><dc:creator>peter9477</dc:creator><description>&lt;p&gt;I&amp;#39;m running with the S140 SoftDevice and the ICACHECNF value is 0x01.&amp;nbsp; Since I didn&amp;#39;t enable it, and the default value in that register is 0, according to the datasheet, that must mean the SoftDevice enabled it.&amp;nbsp; That implies strongly that you can&amp;#39;t disable it when running the SoftDevice, because it wouldn&amp;#39;t know that you&amp;#39;d disabled it.... the state of the register would be identical to its value after a reset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling / Disabling I-Cache while Softdevice is Enabled on NRF52840</title><link>https://devzone.nordicsemi.com/thread/165810?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 16:18:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c546d07e-b9bd-42bd-bba7-4d38687e7f47</guid><dc:creator>donbosley</dc:creator><description>&lt;p&gt;There are other posts that say it is, but I don&amp;#39;t see it in the SD spec, so I&amp;#39;m not sure... I will try this and see what happens.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling / Disabling I-Cache while Softdevice is Enabled on NRF52840</title><link>https://devzone.nordicsemi.com/thread/165757?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 13:29:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7e6bf14-9ac0-4cde-9973-dcc2037928a5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="53848" url="~/f/nordic-q-a/42527/enabling-disabling-i-cache-while-softdevice-is-enabled-on-nrf52840"]Since SD engages it by default, I can&amp;#39;t turn it off before I start SD.&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;I don&amp;#39;t think that is correct. If you disable it before you enable the SD, the SD&amp;nbsp;should not enable it again.&lt;/p&gt;
&lt;p&gt;So just call this before&amp;nbsp;ble_stack_init():&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;NRF_NVMC-&amp;gt;ICACHECNF = 0x00;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>