<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: LPC55S69 : cmse_nonsecure_entry privileges in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-cmse-nonsecure-entry-privileges/m-p/1022204#M39922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="" style="color: #333e48; background-color: #e6e6e6 !important; font-weight: bold; font-size: 16px; margin: 0px 0.05rem 1.5rem 0px; padding: 1rem;"&gt;#include &amp;lt;arm_cmse.h&amp;gt; void __attribute__((cmse_nonsecure_entry)) entry_func(int val) {   int state = cmse_nonsecure_caller();    if (state)   { // called from non-secure     // do non-secure work     ...   } else   { // called from within secure     // do secure work     ...   } }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Dec 2019 20:43:40 GMT</pubDate>
    <dc:creator>soledad</dc:creator>
    <dc:date>2019-12-20T20:43:40Z</dc:date>
    <item>
      <title>LPC55S69 : cmse_nonsecure_entry privileges</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-cmse-nonsecure-entry-privileges/m-p/1022201#M39919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have FreeRTOS tasks on non secure side what running with user privileges.&lt;/P&gt;&lt;P&gt;Sometimes the should use&amp;nbsp;cmse_nonsecure_entry calls to secure side and it is not so clear with what privilege this call appears on secure side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think call with user privilege on nonsecure side should be with user privilege on secure side as well.&lt;/P&gt;&lt;P&gt;Or some escalation of privileges can happens or can be done ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2019 08:29:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-cmse-nonsecure-entry-privileges/m-p/1022201#M39919</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2019-12-09T08:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 : cmse_nonsecure_entry privileges</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-cmse-nonsecure-entry-privileges/m-p/1022202#M39920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the following link and let me know if this helps,&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/community/general-purpose-mcus/lpc/blog/2019/05/05/trustzone-with-armv8-m-and-the-nxp-lpc55s69-evk"&gt;https://community.nxp.com/community/general-purpose-mcus/lpc/blog/2019/05/05/trustzone-with-armv8-m-and-the-nxp-lpc55s69-evk&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2019 16:28:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-cmse-nonsecure-entry-privileges/m-p/1022202#M39920</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2019-12-10T16:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 : cmse_nonsecure_entry privileges</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-cmse-nonsecure-entry-privileges/m-p/1022203#M39921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/soledad"&gt;soledad&lt;/A&gt;‌ !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is non clear set anywhere. But let's assume MPU configured on secure side and some code/data privileged and some are not.&lt;/P&gt;&lt;P&gt;Does privilege on nonsecure side call have effect for privileges protection on secure side ?&lt;/P&gt;&lt;P&gt;Or any call via NSC ares are privileged automatically ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2019 19:07:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-cmse-nonsecure-entry-privileges/m-p/1022203#M39921</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2019-12-10T19:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 : cmse_nonsecure_entry privileges</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-cmse-nonsecure-entry-privileges/m-p/1022204#M39922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="" style="color: #333e48; background-color: #e6e6e6 !important; font-weight: bold; font-size: 16px; margin: 0px 0.05rem 1.5rem 0px; padding: 1rem;"&gt;#include &amp;lt;arm_cmse.h&amp;gt; void __attribute__((cmse_nonsecure_entry)) entry_func(int val) {   int state = cmse_nonsecure_caller();    if (state)   { // called from non-secure     // do non-secure work     ...   } else   { // called from within secure     // do secure work     ...   } }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2019 20:43:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-cmse-nonsecure-entry-privileges/m-p/1022204#M39922</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2019-12-20T20:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 : cmse_nonsecure_entry privileges</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-cmse-nonsecure-entry-privileges/m-p/1022205#M39923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean if NS side call CMSE functions with user or privileged rights.&lt;/P&gt;&lt;P&gt;I can't call NS printf from rtos task with user privileges.&lt;/P&gt;&lt;P&gt;So what is caller rights for call function via NSC ?&lt;/P&gt;&lt;P&gt;Should caller on NS side be privileged or nonprivileged is also OK ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Dec 2019 08:54:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-cmse-nonsecure-entry-privileges/m-p/1022205#M39923</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2019-12-21T08:54:05Z</dc:date>
    </item>
  </channel>
</rss>

