<?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: HardFault When Reading DRAM on i.MX93 Cortex-M33 Core in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/HardFault-When-Reading-DRAM-on-i-MX93-Cortex-M33-Core/m-p/2038011#M233604</link>
    <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Could you share how are you running your test?&lt;BR /&gt;Is it by single boot and then loading trough uboot or by userspace?&lt;BR /&gt;Are you debugging when seeing the hardfault?&lt;BR /&gt;&lt;BR /&gt;Best regards/Saludos,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2025 20:45:11 GMT</pubDate>
    <dc:creator>AldoG</dc:creator>
    <dc:date>2025-02-04T20:45:11Z</dc:date>
    <item>
      <title>HardFault When Reading DRAM on i.MX93 Cortex-M33 Core</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HardFault-When-Reading-DRAM-on-i-MX93-Cortex-M33-Core/m-p/2036958#M233540</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm encountering a HardFault when attempting to read a byte from the DRAM memory-mapped regions on the i.MX93's Cortex-M33 core. I'm using MCUXpresso and have written the following code:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;#&lt;SPAN class=""&gt;define&lt;/SPAN&gt; ADDRESS_READ 0xC0000000//(I tried 0xC0000000 0xA0000000 0x80000000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;volatile&lt;/SPAN&gt; &lt;SPAN class=""&gt;uint32_t&lt;/SPAN&gt; *secureMemPtr = (&lt;SPAN class=""&gt;volatile&lt;/SPAN&gt; &lt;SPAN class=""&gt;uint32_t&lt;/SPAN&gt; *) ADDRESS_READ;&lt;/P&gt;&lt;P&gt;secureValue = *secureMemPtr;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When debugging in MCUXpresso, the code consistently jumps to the HardFault_Handler at the line:&lt;/P&gt;&lt;P&gt;ldr r0,=HardFault_Handler&lt;BR /&gt;bx r0&lt;/P&gt;&lt;P&gt;This loop repeats continuously.&lt;/P&gt;&lt;P&gt;Could you please advise on how to correctly read words from the DRAM?&lt;/P&gt;&lt;P&gt;Thank you for your assistance!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-03 004029.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/322147iAF4BCA6465193500/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-02-03 004029.png" alt="Screenshot 2025-02-03 004029.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2025 17:05:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HardFault-When-Reading-DRAM-on-i-MX93-Cortex-M33-Core/m-p/2036958#M233540</guid>
      <dc:creator>RJC1</dc:creator>
      <dc:date>2025-02-02T17:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: HardFault When Reading DRAM on i.MX93 Cortex-M33 Core</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HardFault-When-Reading-DRAM-on-i-MX93-Cortex-M33-Core/m-p/2038011#M233604</link>
      <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Could you share how are you running your test?&lt;BR /&gt;Is it by single boot and then loading trough uboot or by userspace?&lt;BR /&gt;Are you debugging when seeing the hardfault?&lt;BR /&gt;&lt;BR /&gt;Best regards/Saludos,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 20:45:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HardFault-When-Reading-DRAM-on-i-MX93-Cortex-M33-Core/m-p/2038011#M233604</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2025-02-04T20:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: HardFault When Reading DRAM on i.MX93 Cortex-M33 Core</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HardFault-When-Reading-DRAM-on-i-MX93-Cortex-M33-Core/m-p/2038228#M233616</link>
      <description>&lt;P&gt;Thanks for your help, I've figure it out! if I debug when only&amp;nbsp; Cortex M33 running, I can't access the DRAM at all. but if I debug when both Cortex A55 and Cortex M33 running, I can access and modify the DRAM directly through MCUXPresso.&lt;/P&gt;&lt;P&gt;though I don't know the why, but it works and I only need to access DRAM while both Cortex A and Cortex M is running ; )&lt;/P&gt;&lt;P&gt;this is when both A and M running:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-05 130246.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/322441iC347FF2FECF7FC9A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-02-05 130246.png" alt="Screenshot 2025-02-05 130246.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-05 130647.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/322444i10814D02702A82DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-02-05 130647.png" alt="Screenshot 2025-02-05 130647.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-05 130820.png" style="width: 546px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/322445i7E808515EA746D56/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-02-05 130820.png" alt="Screenshot 2025-02-05 130820.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and this is only M is running:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-05 130358.png" style="width: 963px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/322442i0D08BB85DF869CCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-02-05 130358.png" alt="Screenshot 2025-02-05 130358.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;when I pass :&lt;BR /&gt;secureValue = *secureMemPtr;&lt;/P&gt;&lt;P&gt;will jump to this:&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 05:11:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HardFault-When-Reading-DRAM-on-i-MX93-Cortex-M33-Core/m-p/2038228#M233616</guid>
      <dc:creator>RJC1</dc:creator>
      <dc:date>2025-02-05T05:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: HardFault When Reading DRAM on i.MX93 Cortex-M33 Core</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HardFault-When-Reading-DRAM-on-i-MX93-Cortex-M33-Core/m-p/2038232#M233617</link>
      <description>&lt;P&gt;it will jump to this if I pass&amp;nbsp;secureValue = *secureMemPtr; when only debugging with Cortex M running&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-05 130506.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/322447i1AE0306CCDCB73CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-02-05 130506.png" alt="Screenshot 2025-02-05 130506.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 05:13:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HardFault-When-Reading-DRAM-on-i-MX93-Cortex-M33-Core/m-p/2038232#M233617</guid>
      <dc:creator>RJC1</dc:creator>
      <dc:date>2025-02-05T05:13:41Z</dc:date>
    </item>
  </channel>
</rss>

