<?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 LPDDR4 problem on customized board in S32G</title>
    <link>https://community.nxp.com/t5/S32G/LPDDR4-problem-on-customized-board/m-p/1398649#M393</link>
    <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I'm trying to bring up my custom board which Samsung LPDDR4 1G and S32G274A embedded.&lt;/P&gt;&lt;P&gt;But I don't know why DDR test is only passed with 800MHz and failed with other clocks(upper 800MHz).&lt;/P&gt;&lt;P&gt;I have several problem like below and I need someone's help.&lt;/P&gt;&lt;P&gt;1) Is the DDR tool in S32DS trustable 100%?&lt;/P&gt;&lt;P&gt;2) When I set the clock 800MHz or 1600MHz, and run read/write test(Operational test) on the tool but the measured clock was just 50MHz. What's the problem?&lt;/P&gt;&lt;P&gt;3) When I generate the C source code after run phy init test on the DDR tool and I add ddr_init(), initialization code, ddr_init() was passed but I cannot read DDR memory with below code and HardFault Exception happened.&lt;/P&gt;&lt;P&gt;/* Disable XRDC */&lt;/P&gt;&lt;P&gt;XRDC_REG_RMW32(XRDC_CR_0_ADDR32, XRDC_CR_GLVD_MASK, XRDC_CR_GLVD_DISABLE);&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; uint32_t value&amp;nbsp;= *(uint32_t *)0x80000000;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; printf("value=0x%x\n", value);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Does anybody know how to read/write on DDR in the M-core?&lt;/P&gt;&lt;P&gt;4) So, I tried to access DDR on u-boot and I can read/write DDR using reference source code on reference board(S32G-VNP-RDB2). But after I copy the DDR codes which were generated by DDR tool to u-boot source tree and build u-boot, then ddr_init was failed.&lt;/P&gt;&lt;P&gt;How can I update DDR source code in u-boot?&lt;/P&gt;&lt;P&gt;If someone succeeded to access DDR on their customized board, then let me know how to do.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Harry&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jan 2022 06:22:13 GMT</pubDate>
    <dc:creator>harry_choi</dc:creator>
    <dc:date>2022-01-13T06:22:13Z</dc:date>
    <item>
      <title>LPDDR4 problem on customized board</title>
      <link>https://community.nxp.com/t5/S32G/LPDDR4-problem-on-customized-board/m-p/1398649#M393</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I'm trying to bring up my custom board which Samsung LPDDR4 1G and S32G274A embedded.&lt;/P&gt;&lt;P&gt;But I don't know why DDR test is only passed with 800MHz and failed with other clocks(upper 800MHz).&lt;/P&gt;&lt;P&gt;I have several problem like below and I need someone's help.&lt;/P&gt;&lt;P&gt;1) Is the DDR tool in S32DS trustable 100%?&lt;/P&gt;&lt;P&gt;2) When I set the clock 800MHz or 1600MHz, and run read/write test(Operational test) on the tool but the measured clock was just 50MHz. What's the problem?&lt;/P&gt;&lt;P&gt;3) When I generate the C source code after run phy init test on the DDR tool and I add ddr_init(), initialization code, ddr_init() was passed but I cannot read DDR memory with below code and HardFault Exception happened.&lt;/P&gt;&lt;P&gt;/* Disable XRDC */&lt;/P&gt;&lt;P&gt;XRDC_REG_RMW32(XRDC_CR_0_ADDR32, XRDC_CR_GLVD_MASK, XRDC_CR_GLVD_DISABLE);&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; uint32_t value&amp;nbsp;= *(uint32_t *)0x80000000;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; printf("value=0x%x\n", value);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Does anybody know how to read/write on DDR in the M-core?&lt;/P&gt;&lt;P&gt;4) So, I tried to access DDR on u-boot and I can read/write DDR using reference source code on reference board(S32G-VNP-RDB2). But after I copy the DDR codes which were generated by DDR tool to u-boot source tree and build u-boot, then ddr_init was failed.&lt;/P&gt;&lt;P&gt;How can I update DDR source code in u-boot?&lt;/P&gt;&lt;P&gt;If someone succeeded to access DDR on their customized board, then let me know how to do.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 06:22:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/LPDDR4-problem-on-customized-board/m-p/1398649#M393</guid>
      <dc:creator>harry_choi</dc:creator>
      <dc:date>2022-01-13T06:22:13Z</dc:date>
    </item>
  </channel>
</rss>

