<?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: TrustZone hello_world example: Hard Fault Issue After Code Update - MCUXpresso ide LPCXpresso55S in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/TrustZone-hello-world-example-Hard-Fault-Issue-After-Code-Update/m-p/1994002#M10136</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/242954"&gt;@yidaen&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I made some test with examples hello_world_s/hello_world_ns, this because both examples work together, and when I have both code open and upload the hello_world_s it works as expected. It would start with the code in the memory section that is secure, then it would jump to the code that is written in a not secure memory section.&lt;/P&gt;
&lt;P&gt;When you make the tests, are you using both examples (&lt;EM&gt;hello_world_s&lt;/EM&gt;/&lt;EM&gt;hello_world_ns&lt;/EM&gt;)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Nov 2024 21:12:55 GMT</pubDate>
    <dc:creator>Pablo_Ramos</dc:creator>
    <dc:date>2024-11-13T21:12:55Z</dc:date>
    <item>
      <title>TrustZone hello_world example: Hard Fault Issue After Code Update - MCUXpresso ide LPCXpresso55S69</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/TrustZone-hello-world-example-Hard-Fault-Issue-After-Code-Update/m-p/1992558#M10133</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm trying to develop a TrustZone application using the MCUXpresso IDE and the LPCXpresso55S69 board. I can add the TrustZone examples as a project, build them directly, and run them without any issues. However, problems start when I make any changes.&lt;/P&gt;&lt;P&gt;If I press the "Update Code" option—due to a pin/timer/secure area modification or even without making any changes—the previously working application begins to show errors when I try to debug. Initially, it gives a null pointer error, and if I try to run the program, I encounter a hard fault, as shown in the example images.&lt;/P&gt;&lt;P&gt;What could be the reason for this issue, and how can I resolve it? I get this error directly even without making any modifications to the example. Additionally, is there a way to create separate secure and non-secure projects for TrustZone and link them correctly? This way, I wouldn’t have to manipulate the examples.&lt;/P&gt;&lt;P&gt;SDK Version: 2.16&lt;BR /&gt;Board: LPCXpresso55S69&lt;BR /&gt;MCUXpresso IDE: 24.9.25&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yidaen_0-1731394623370.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/309965iAA0128EE55C9881A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yidaen_0-1731394623370.png" alt="yidaen_0-1731394623370.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yidaen_1-1731394656104.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/309967i1F4236EC5852A998/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yidaen_1-1731394656104.png" alt="yidaen_1-1731394656104.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yidaen_2-1731394703913.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/309969iABAA71303A2A9EC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yidaen_2-1731394703913.png" alt="yidaen_2-1731394703913.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 06:59:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/TrustZone-hello-world-example-Hard-Fault-Issue-After-Code-Update/m-p/1992558#M10133</guid>
      <dc:creator>yidaen</dc:creator>
      <dc:date>2024-11-12T06:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: TrustZone hello_world example: Hard Fault Issue After Code Update - MCUXpresso ide LPCXpresso55S</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/TrustZone-hello-world-example-Hard-Fault-Issue-After-Code-Update/m-p/1994002#M10136</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/242954"&gt;@yidaen&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I made some test with examples hello_world_s/hello_world_ns, this because both examples work together, and when I have both code open and upload the hello_world_s it works as expected. It would start with the code in the memory section that is secure, then it would jump to the code that is written in a not secure memory section.&lt;/P&gt;
&lt;P&gt;When you make the tests, are you using both examples (&lt;EM&gt;hello_world_s&lt;/EM&gt;/&lt;EM&gt;hello_world_ns&lt;/EM&gt;)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 21:12:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/TrustZone-hello-world-example-Hard-Fault-Issue-After-Code-Update/m-p/1994002#M10136</guid>
      <dc:creator>Pablo_Ramos</dc:creator>
      <dc:date>2024-11-13T21:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: TrustZone hello_world example: Hard Fault Issue After Code Update - MCUXpresso ide LPCXpresso55S</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/TrustZone-hello-world-example-Hard-Fault-Issue-After-Code-Update/m-p/1994012#M10137</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231808"&gt;@Pablo_Ramos&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your support; indeed, both projects are as follows.&lt;/P&gt;&lt;P&gt;If I add the projects using the "import SDK examples" option and then build and run them directly, I encounter no issues, and the project functions as expected. However, the problem arises when I use the "update code" option. As seen, there are many warnings in the default code state.&lt;/P&gt;&lt;P&gt;The key point here is that the issue only appears when the TrustZone codes are updated. If I don’t update the TrustZone codes, I don't encounter this issue. Additionally, if I open any other project containing TrustZone, I continue to receive this error. So, the problem seems to be in the code generation for TrustZone.&lt;/P&gt;&lt;P&gt;When I look into the source of the error, I see an issue related to floating points. When I check my UFSR register, as shown in the first image, I notice that the NCOP flag is set. The hard fault occurs during a floating-point operation. Could there be an error related to hardware activation for floating points in the new version of TrustZone?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yidaen_3-1731532869797.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/310353i9E92FABE43969090/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yidaen_3-1731532869797.png" alt="yidaen_3-1731532869797.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yidaen_2-1731532850863.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/310352iE809440A421C93B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yidaen_2-1731532850863.png" alt="yidaen_2-1731532850863.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 21:21:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/TrustZone-hello-world-example-Hard-Fault-Issue-After-Code-Update/m-p/1994012#M10137</guid>
      <dc:creator>yidaen</dc:creator>
      <dc:date>2024-11-13T21:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: TrustZone hello_world example: Hard Fault Issue After Code Update - MCUXpresso ide LPCXpresso55S</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/TrustZone-hello-world-example-Hard-Fault-Issue-After-Code-Update/m-p/2003160#M10156</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/242954"&gt;@yidaen&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Sorry for taking a while to get back to you.&lt;BR /&gt;&lt;BR /&gt;Making some test I notice that there is a conflict on the versions of config tool and the example. This occasioning changes in the code regardless of whether you modify anything.&lt;BR /&gt;&lt;BR /&gt;I recommend you make the modifications to the example through code.&lt;/P&gt;
&lt;P&gt;An apology for the inconvenience this might bring.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 22:16:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/TrustZone-hello-world-example-Hard-Fault-Issue-After-Code-Update/m-p/2003160#M10156</guid>
      <dc:creator>Pablo_Ramos</dc:creator>
      <dc:date>2024-11-27T22:16:04Z</dc:date>
    </item>
  </channel>
</rss>

