<?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>nRF52 cache</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14420/nrf52-cache</link><description>Hello everyone, 
 I am using the nRF52832 rev 1, i am not using the softcore. When the cache is enabled as below, the performance actually seems to get worse. 
 F_NVMC-&amp;gt;ICACHECNF = ((NVMC_ICACHECNF_CACHEEN_Enabled &amp;lt;&amp;lt; NVMC_ICACHECNF_CACHEEN_Pos) |
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Jul 2016 12:10:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14420/nrf52-cache" /><item><title>RE: nRF52 cache</title><link>https://devzone.nordicsemi.com/thread/55076?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2016 12:10:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df1aa497-ae30-4278-82c0-0b0973fc8bc9</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Just wanted to add that in the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52%2Fdita%2Fnrf52%2Fchips%2Fnrf52832_ps.html&amp;amp;cp=2_2_0"&gt;nRF52832 Product Specification&lt;/a&gt; the section &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fcpu.html&amp;amp;cp=2_2_0_6_1&amp;amp;anchor=topic"&gt;CPU performance&lt;/a&gt; lists the following numbers for CPU wait states when running from flash and RAM:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;flash w/o cache: min. 0 max. 2
flash w/ cache: min. 0 max. 3
RAM: max. 0
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The best and worst case numbers for flash access are due to difference in frequency between CPU and flash. This means flash reading times are in the range 0 to 2 cpu cycles without cache, and in the range 0 to 3 cpu cycles including a cache miss.&lt;/p&gt;
&lt;p&gt;Regards, Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 cache</title><link>https://devzone.nordicsemi.com/thread/55075?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 10:53:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3011ed75-d52d-4c59-ad44-6310101e6f4d</guid><dc:creator>jsleeman</dc:creator><description>&lt;p&gt;Hi. It&amp;#39;s not essential but it would be useful as our timings are very tight, and it would be good to work out how much time everything is taking. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 cache</title><link>https://devzone.nordicsemi.com/thread/55074?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 07:16:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb650eba-84a1-47f6-84a4-04dfdcbd8ed6</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Hi. The flash reads will be as fast as RAM reads. I could not find any numbers at this time, but you can assume it to be very fast. Will you need the excact numbers?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 cache</title><link>https://devzone.nordicsemi.com/thread/55073?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 13:19:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:960bdc0b-23bc-443a-972f-51ef2f005fa1</guid><dc:creator>jsleeman</dc:creator><description>&lt;p&gt;The webpage you have provided a link to, provides timings for write, erase page and erase all, however nothing is mentioned about write times. Is it missing from the webpage? Or could you point out something i could search for in the page to help me find it.
Many thanks, James.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 cache</title><link>https://devzone.nordicsemi.com/thread/55072?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 13:06:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:820e0a20-6130-4c4f-b209-71f6aceb99a6</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;When using a softdevice, it will turn on the Cache by default. The application is free to turn it off if it wants.&lt;/p&gt;
&lt;p&gt;Cache will in most applications bring a performance increase. Spending less time waiting for flash operations will in most cases also decrease the current consumption of an application.&lt;/p&gt;
&lt;p&gt;Information about the flash and cache can be found &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.0/nvmc.html?cp=2_2_0_9#concept_pcl_wbz_vr"&gt;here&lt;/a&gt;. Here you can see timings of flash reads and writes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 cache</title><link>https://devzone.nordicsemi.com/thread/55071?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 12:08:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7e305bc-3558-4f52-8a52-2bc664e22768</guid><dc:creator>jsleeman</dc:creator><description>&lt;p&gt;Hi Anders, thanks for getting back to me. The issue has been further investigated at our end, it was been found that when a part of the system is sped up it fails in a very similar way to what we were finding when the performance was worse. The performance was remeasured and it has been found to increase when the cache is switched on. So the cache is not an issue.&lt;/p&gt;
&lt;p&gt;When we were trying to calculate the rough performance gains we should see when enabling the cache, we looked at the datasheet to try and see the time it takes to perform a flash read. We couldn&amp;#39;t find this information, is this available? Thanks again, James.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 cache</title><link>https://devzone.nordicsemi.com/thread/55070?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 09:31:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7c343a6-3874-49c2-ab4d-0d6012a4e9ac</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;How are you measuring the performance with and without cache enabled? I will look into this in the meantime&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>