<?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 Issues configuring DDR controller in Baremetal project. in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/Issues-configuring-DDR-controller-in-Baremetal-project/m-p/1667699#M12652</link>
    <description>&lt;P&gt;I have been attempting to configure the DDR controller on a LS1028A dev board made by MYIR. This dev board is based on the NXP LS1028ARDB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the end product is an avionics product, I cannot simply use uboot. I need to prune away code that may not be certifiable with the FAA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using uboot as a reference I have initialize the SMMU, TZPC, and CCI400. In addition, I keep the processor at EL3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read the DDR controller registers using uboot. Using the QoriQ DDR configuration tool for the LS series, I imported those registers values. I have generated the bare metal C source code file, &amp;nbsp;InitDdrRegisters_1.c.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I seem to be able to write to the memory, but reading causes the processor to throw and exception.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if anyone may have any idea of what might be missing in the initialization.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 20:24:12 GMT</pubDate>
    <dc:creator>rhaas</dc:creator>
    <dc:date>2023-06-13T20:24:12Z</dc:date>
    <item>
      <title>Issues configuring DDR controller in Baremetal project.</title>
      <link>https://community.nxp.com/t5/Layerscape/Issues-configuring-DDR-controller-in-Baremetal-project/m-p/1667699#M12652</link>
      <description>&lt;P&gt;I have been attempting to configure the DDR controller on a LS1028A dev board made by MYIR. This dev board is based on the NXP LS1028ARDB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the end product is an avionics product, I cannot simply use uboot. I need to prune away code that may not be certifiable with the FAA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using uboot as a reference I have initialize the SMMU, TZPC, and CCI400. In addition, I keep the processor at EL3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read the DDR controller registers using uboot. Using the QoriQ DDR configuration tool for the LS series, I imported those registers values. I have generated the bare metal C source code file, &amp;nbsp;InitDdrRegisters_1.c.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I seem to be able to write to the memory, but reading causes the processor to throw and exception.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if anyone may have any idea of what might be missing in the initialization.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 20:24:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Issues-configuring-DDR-controller-in-Baremetal-project/m-p/1667699#M12652</guid>
      <dc:creator>rhaas</dc:creator>
      <dc:date>2023-06-13T20:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issues configuring DDR controller in Baremetal project.</title>
      <link>https://community.nxp.com/t5/Layerscape/Issues-configuring-DDR-controller-in-Baremetal-project/m-p/1668682#M12659</link>
      <description>&lt;P&gt;I just figured out my issue. It turns out that the NXP QorIQ DDR Tool, generates code for baremetal designs does an endian swap on the registers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn’t feel this was odd because the old LS1021A processor that I used before required the endian swap. However the LS1028A processor’s DDR controller is little-endian.&lt;/P&gt;&lt;P&gt;Perhaps, the tool should be changed to not do the endian swap in the InitDdrRegisters_1.c file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ray Haas&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 23:58:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Issues-configuring-DDR-controller-in-Baremetal-project/m-p/1668682#M12659</guid>
      <dc:creator>rhaas</dc:creator>
      <dc:date>2023-06-13T23:58:35Z</dc:date>
    </item>
  </channel>
</rss>

