<?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 LPC55S69 Trustzone SDK Example Problems in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Trustzone-SDK-Example-Problems/m-p/890039#M35668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;To get started with the LPC55S69 and TrustZone, I am running the TrustZone hello world example from the SDK example projects on the LPC55S69-EVK board. My first problem is, that I&amp;nbsp;am not able to erase the flash with the GUI flash tool. As long as I only tried a project from the driver examples without trustzone, everything worked fine. As soon as I flashed the hello world trustzone example, I was not even able to debug anymore. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;I could solve the debug-problem through setting &lt;/SPAN&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;Debugger -&amp;gt; Configuration Options -&amp;gt; Flash Driver Reset Handling -&amp;gt; Select SYSRESETREQ in the launch configuration of the project. In the GUI flash tool, I can also select &lt;/SPAN&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;SYSRESETREQ, but it still fails to erase/program the flash. As soon as I have flashed a single non-secure project again, it's possible to erase the flash again. The error is always: &lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;Flash Driver V.2 startup failed - rc Ef(34): Timed-out initializing flash.&lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;chip initialization failed - Ef(34): Timed-out initializing flash.&lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;failed to initialize flash driver LPC55xx.cfx&lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;And just as a note: Debugging fails regularly. It can always be fixed through hitting the "Clean up Debug" button first and then starting debugging from the Quick Start panel but it would be nice if debugging would just work always as expected. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;UPDATE: I "solved" the second problem, that the non-secure application fails to link: When importing the SDK example, the GUI provides the possibility to add a suffix to the project. If this is done, the non-secure application won't link. The reason is, that the application expects that the library generated by the secure project is named: &lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;lpcxpresso55s69_hello_world_s_CMSE_lib.o. This is not the case if a suffix was added to the project name. It then must be configured in non-secure Project Properties -&amp;gt; C/C++ Build -&amp;gt; Settings -&amp;gt; MCU Linker -&amp;gt; Miscellaneous -&amp;gt; Other Objects, then the project will link again (if the secure application was built before).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Apr 2019 14:35:37 GMT</pubDate>
    <dc:creator>simon_ott</dc:creator>
    <dc:date>2019-04-09T14:35:37Z</dc:date>
    <item>
      <title>LPC55S69 Trustzone SDK Example Problems</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Trustzone-SDK-Example-Problems/m-p/890039#M35668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;To get started with the LPC55S69 and TrustZone, I am running the TrustZone hello world example from the SDK example projects on the LPC55S69-EVK board. My first problem is, that I&amp;nbsp;am not able to erase the flash with the GUI flash tool. As long as I only tried a project from the driver examples without trustzone, everything worked fine. As soon as I flashed the hello world trustzone example, I was not even able to debug anymore. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;I could solve the debug-problem through setting &lt;/SPAN&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;Debugger -&amp;gt; Configuration Options -&amp;gt; Flash Driver Reset Handling -&amp;gt; Select SYSRESETREQ in the launch configuration of the project. In the GUI flash tool, I can also select &lt;/SPAN&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;SYSRESETREQ, but it still fails to erase/program the flash. As soon as I have flashed a single non-secure project again, it's possible to erase the flash again. The error is always: &lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;Flash Driver V.2 startup failed - rc Ef(34): Timed-out initializing flash.&lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;chip initialization failed - Ef(34): Timed-out initializing flash.&lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;failed to initialize flash driver LPC55xx.cfx&lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;And just as a note: Debugging fails regularly. It can always be fixed through hitting the "Clean up Debug" button first and then starting debugging from the Quick Start panel but it would be nice if debugging would just work always as expected. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;UPDATE: I "solved" the second problem, that the non-secure application fails to link: When importing the SDK example, the GUI provides the possibility to add a suffix to the project. If this is done, the non-secure application won't link. The reason is, that the application expects that the library generated by the secure project is named: &lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;lpcxpresso55s69_hello_world_s_CMSE_lib.o. This is not the case if a suffix was added to the project name. It then must be configured in non-secure Project Properties -&amp;gt; C/C++ Build -&amp;gt; Settings -&amp;gt; MCU Linker -&amp;gt; Miscellaneous -&amp;gt; Other Objects, then the project will link again (if the secure application was built before).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 14:35:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Trustzone-SDK-Example-Problems/m-p/890039#M35668</guid>
      <dc:creator>simon_ott</dc:creator>
      <dc:date>2019-04-09T14:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Trustzone SDK Example Problems</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Trustzone-SDK-Example-Problems/m-p/890040#M35669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I found the solution to this problem. You can put a jumper on J10, reset the board and perform mass erase from the flash tool. After the mass erase was successful, i was able to reset the board and flash bits as before. Please see&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/500164"&gt;https://community.nxp.com/thread/500164&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2019 05:15:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Trustzone-SDK-Example-Problems/m-p/890040#M35669</guid>
      <dc:creator>romlinux</dc:creator>
      <dc:date>2019-04-15T05:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Trustzone SDK Example Problems</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Trustzone-SDK-Example-Problems/m-p/890041#M35670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please&amp;nbsp;confirm, that this thread solves your issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="" data-containerid="11497" data-containertype="14" data-content-finding="Community" data-objectid="500164" data-objecttype="1" href="https://community.nxp.com/thread/500164" style="color: #3d9ce7; background-color: #ffffff; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;https://community.nxp.com/thread/500164&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2019 13:19:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Trustzone-SDK-Example-Problems/m-p/890041#M35670</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2019-04-15T13:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Trustzone SDK Example Problems</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Trustzone-SDK-Example-Problems/m-p/890042#M35671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the replies. In general, I am now able to erase the flash with the tool by following the instructions in the linked thread, which is a step forward. However, it still fails regularly, so I have to repeat it 2-3 times until it works. It's the same with the debugging, sometimes it works, sometimes it does not. It always works after some tries without changing anything but just clicking the "Clean up Debug" and "Debug" buttons again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The errors are either that it does not find a core or "Failed on connect: Ee(D0). Could not connect to server / No connection to chip's debug port". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the MCUexpresso IDE, there are the classic eclipse "suspend", "terminate", "resume", etc. buttons and there are "suspend all", "terminate all", "resume all" additional buttons, that I do not know from other eclipse IDEs. Also there is the blue "Debug" button in the toolbar as well as a "Build" button in the toolbar, but those two buttons are also available in the "QickStart" Panel. Is there any difference between those buttons?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 09:34:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Trustzone-SDK-Example-Problems/m-p/890042#M35671</guid>
      <dc:creator>simon_ott</dc:creator>
      <dc:date>2019-04-16T09:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Trustzone SDK Example Problems</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Trustzone-SDK-Example-Problems/m-p/890043#M35672</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;Please check the following threads for more information about these buttons:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/450310"&gt;https://community.nxp.com/thread/450310&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/482052"&gt;https://community.nxp.com/thread/482052&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dzone.com/articles/mcuxpresso-ide-terminate-and-disconnect-a-debug-session"&gt;https://dzone.com/articles/mcuxpresso-ide-terminate-and-disconnect-a-debug-session&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sol&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2019 01:58:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Trustzone-SDK-Example-Problems/m-p/890043#M35672</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2019-04-18T01:58:04Z</dc:date>
    </item>
  </channel>
</rss>

