<?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>nRF5340 trust zone and cache</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77740/nrf5340-trust-zone-and-cache</link><description>Hi Team 
 
 In nRF5340 Product Specification v1.1 page 117. The CACHEDATA is mapping as secure. But it have trust zone ID 252. So I have below questions 
 
 Does cache only be used by secure code? 
 if the answer is no, no matter cache was config as secure</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Jul 2021 13:14:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77740/nrf5340-trust-zone-and-cache" /><item><title>RE: nRF5340 trust zone and cache</title><link>https://devzone.nordicsemi.com/thread/321836?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 13:14:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:697a6542-aa4d-4837-93b5-6d36d4f114cc</guid><dc:creator>victor zheng</dc:creator><description>&lt;p&gt;Simon&lt;/p&gt;
&lt;p&gt;Because the cache only be used by secure code, the execute speed is different between&amp;nbsp; secure and non secure code by the influence by cache, right? Thank you.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Victor&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 trust zone and cache</title><link>https://devzone.nordicsemi.com/thread/321760?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 09:48:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdd76e84-4a7e-42f7-a6cc-79cd7418b8cd</guid><dc:creator>Simon</dc:creator><description>[quote user=""]Does&amp;nbsp;cache only be used&amp;nbsp;by secure code?[/quote]
&lt;p&gt;Yes, correct.The CACHE peripheral can only be accessed from secure code, since it&amp;#39;s mapped as secure (S).&lt;/p&gt;
&lt;p&gt;Read these for more information:&lt;/p&gt;
&lt;p&gt;&lt;a title="Peripheral access control" href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/spu.html?cp=2_0_0_5_14_3#peripheral_access_control"&gt;Peripheral access control&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a title="Memory map" href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/memory.html?cp=2_0_0_3_1_0#memorymap"&gt;Memory map&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-2-ncs-v1-4-0#h100sjwm551634uoal2fr9zwynnptkq"&gt;1.6 Secure vs. nonsecure&lt;/a&gt;&lt;/p&gt;
[quote user=""]if the &lt;span style="font-size:12px;"&gt;answer is no, no matter cache was config as secure or non secure, only the&amp;nbsp;code in same zone can use it. right?&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;Answer was yes&lt;/p&gt;
[quote user=""]if cache only be used by one secure state code, the execute speed will be different in different secure area?[/quote]
&lt;p&gt;&amp;nbsp;Does this question still apply, since the answer to the first question was yes?&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></channel></rss>