<?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: SDMMC SD_init() loops forever in a TrustZone enabled project in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDMMC-SD-init-loops-forever-in-a-TrustZone-enabled-project/m-p/1276004#M44986</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Hope you are well. &lt;BR /&gt;The status of 0x400 means a Bus Error. I suggest you verify that the memory used in your application is located at the secure part. A secure application does not trust an NS application.&lt;/P&gt;
&lt;P&gt;A context of how are you implementing the Trustzone might be useful.&lt;BR /&gt;If you have more questions do not hesitate to ask me.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Omar&lt;/P&gt;</description>
    <pubDate>Wed, 12 May 2021 22:51:51 GMT</pubDate>
    <dc:creator>Omar_Anguiano</dc:creator>
    <dc:date>2021-05-12T22:51:51Z</dc:date>
    <item>
      <title>SDMMC SD_init() loops forever in a TrustZone enabled project</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDMMC-SD-init-loops-forever-in-a-TrustZone-enabled-project/m-p/1272310#M44886</link>
      <description>&lt;P&gt;I am a noob in embedded space, so maybe I am missing something very obvious.&lt;BR /&gt;I am working on a project that is based on TrustZone on LPCXpresso55S69 board. Part of the project's desired functionality is enabling a persistent storage of some objects.&lt;/P&gt;&lt;P&gt;For that purpose I referred to the SDK sdcard_polling example. I tested it, and it works just fine.&amp;nbsp;&lt;BR /&gt;Then I decided to copy the code, library and configs to the project I am working on (for now, I literally just copied the code of the example).&amp;nbsp; The SD card IO shall be performed from the secure side. I initialise the SD config and run the example code from the main_s.c class (main function of the secure project).&lt;BR /&gt;I managed to get it building and running, however it gets stuck in an endless loop when calling SD_CardInit().&lt;BR /&gt;&lt;BR /&gt;Backtrace: SD_CardInit() -&amp;gt;&amp;nbsp;SD_SendScr -&amp;gt;&amp;nbsp;SDMMCHOST_TransferFunction -&amp;gt;&amp;nbsp;SDIF_TransferBlocking -&amp;gt;&amp;nbsp;SDIF_TransferDataBlocking -&amp;gt;&amp;nbsp;SDIF_GetInternalDMAStatus.&amp;nbsp;&lt;BR /&gt;SDIF_GetInternalDMAStatus return 0x400 and the execution loops inside of the&amp;nbsp;SDIF_TransferDataBlocking forever.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Not sure what other information might be relevant for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 16:51:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDMMC-SD-init-loops-forever-in-a-TrustZone-enabled-project/m-p/1272310#M44886</guid>
      <dc:creator>apercov</dc:creator>
      <dc:date>2021-05-05T16:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: SDMMC SD_init() loops forever in a TrustZone enabled project</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDMMC-SD-init-loops-forever-in-a-TrustZone-enabled-project/m-p/1276004#M44986</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Hope you are well. &lt;BR /&gt;The status of 0x400 means a Bus Error. I suggest you verify that the memory used in your application is located at the secure part. A secure application does not trust an NS application.&lt;/P&gt;
&lt;P&gt;A context of how are you implementing the Trustzone might be useful.&lt;BR /&gt;If you have more questions do not hesitate to ask me.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Omar&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 22:51:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDMMC-SD-init-loops-forever-in-a-TrustZone-enabled-project/m-p/1276004#M44986</guid>
      <dc:creator>Omar_Anguiano</dc:creator>
      <dc:date>2021-05-12T22:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: SDMMC SD_init() loops forever in a TrustZone enabled project</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDMMC-SD-init-loops-forever-in-a-TrustZone-enabled-project/m-p/2053166#M57778</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;STRONG&gt;Hello,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am facing exactly the same issue mentioned in the post. I am working on a project that uses TrustZone. In this project, the secure side needs to read from an SD card.&lt;/P&gt;&lt;P&gt;I have already configured &lt;STRONG&gt;DMA, SDIF memory regions, and access permissions&lt;/STRONG&gt; to be secure, yet the loop inside &lt;STRONG&gt;SDIF_TransferDataBlocking&lt;/STRONG&gt; remains stuck, preventing the initialization process from continuing.&lt;/P&gt;&lt;P&gt;I have tried different &lt;STRONG&gt;TrustZone configurations&lt;/STRONG&gt;, but I haven't been able to find a solution.&lt;/P&gt;&lt;P&gt;Is there any known fix for this issue?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Best regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Feb 2025 17:27:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDMMC-SD-init-loops-forever-in-a-TrustZone-enabled-project/m-p/2053166#M57778</guid>
      <dc:creator>yidaen</dc:creator>
      <dc:date>2025-02-27T17:27:42Z</dc:date>
    </item>
  </channel>
</rss>

