<?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>Accessing timers from the secure world/TFM custom partition?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112638/accessing-timers-from-the-secure-world-tfm-custom-partition</link><description>My programm uses both the non-secure world and the secure world, with the non-secure-world largely just calling functions inside a custom partition of TFM in the secure world. In the secure world I want to use a timer, but that leads to the runtime error</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Jul 2024 16:04:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112638/accessing-timers-from-the-secure-world-tfm-custom-partition" /><item><title>RE: Accessing timers from the secure world/TFM custom partition?</title><link>https://devzone.nordicsemi.com/thread/492515?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 16:04:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6eecef5d-1a67-48a5-975d-b391d3c94734</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi gdl,&lt;/p&gt;
&lt;p&gt;I am glad to know things are working.&lt;/p&gt;
[quote user="gdl"]I&amp;#39;m trying to make some performance measurements. But i wouldn&amp;#39;t be able to use the timing-features of zephyr in the custom secure partition/TFM or could i (as the secure world doesn&amp;#39;t use zephyr if i didn&amp;#39;t misunderstand it)?[/quote]
&lt;p&gt;I don&amp;#39;t think you made any misunderstanding. I am a novice in this topic myself and misunderstood things.&lt;/p&gt;
&lt;p&gt;On this note, I want to add that there is also the RTC peripheral, which has much lower resolution and accuracy, but&amp;nbsp;also much lower current consumption. However, as you are only making measurements during development, I&amp;nbsp;assume power efficiency isn&amp;#39;t much of a concern.&lt;/p&gt;
[quote user="gdl"]Also is there any way to use one timer (or sth similar) from both the non-secure and the secure world?[/quote]
&lt;p&gt;I don&amp;#39;t think so. That would violate the principle of isolation, wouldn&amp;#39;t it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Accessing timers from the secure world/TFM custom partition?</title><link>https://devzone.nordicsemi.com/thread/492317?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2024 15:39:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8218398b-2b24-49f7-8279-8478d1a3d317</guid><dc:creator>gdl</dc:creator><description>&lt;p&gt;Hey Hieu&lt;br /&gt;Many Thanks. I didn&amp;#39;t correctly fully configure the yaml and it seems to work now.&lt;/p&gt;
[quote userid="9456" url="~/f/nordic-q-a/112638/accessing-timers-from-the-secure-world-tfm-custom-partition/491844"]As you mentioned that you want to do most things in the secure domain, I would like to remind you that doing that is not necessarily more secured, and the modem can only be accessed from the non-secure domain.[/quote]
&lt;p&gt;Sry i said that unclear. Later somebody else will write the extensive actual code for the non-secure world, but for now development is mainly about the secure-world.&lt;/p&gt;
[quote userid="9456" url="~/f/nordic-q-a/112638/accessing-timers-from-the-secure-world-tfm-custom-partition/491844"]Also, depends on what you are trying to implement, you might not need a TIMER peripheral, and might be able to use something simpler, such as the timing features in the Zephyr&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/zephyr/kernel/index.html"&gt;Kernel&lt;/a&gt;.[/quote]
&lt;p&gt;I&amp;#39;m trying to make some performance measurements. But i wouldn&amp;#39;t be able to use the timing-features of zephyr in the custom secure partition/TFM or could i (as the secure world doesn&amp;#39;t use zephyr if i didn&amp;#39;t misunderstand it)?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Also is there any way to use one timer (or sth similar) from both the non-secure and the secure world?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Accessing timers from the secure world/TFM custom partition?</title><link>https://devzone.nordicsemi.com/thread/491844?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 12:49:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c3dd4bf-be52-4ef8-b719-1a05bdfee899</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi gdl,&lt;/p&gt;
&lt;p&gt;Configuring a peripheral to be used in the secure domain is demonstrated in the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/nrf/samples/tfm/tfm_secure_peripheral/README.html"&gt;TF-M secure peripheral partition&lt;/a&gt;&amp;nbsp;sample. Have you taken a look at it yet?&lt;/p&gt;
&lt;p&gt;Also, depends on what you are trying to implement, you might not need a TIMER peripheral, and might be able to use something simpler, such as the timing features in the Zephyr&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/zephyr/kernel/index.html"&gt;Kernel&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;As you mentioned that you want to do most things in the secure domain, I would like to remind you that doing that is not necessarily more secured, and the modem can only be accessed from the non-secure domain.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>