<?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>Layerscape中的主题 Re: DDR Read/Write issues using CCS on an embedded LS1046A custom carrier board</title>
    <link>https://community.nxp.com/t5/Layerscape/DDR-Read-Write-issues-using-CCS-on-an-embedded-LS1046A-custom/m-p/2091656#M15694</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52411"&gt;@yipingwang&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I think I have figured out the immediate issue which is the bit flips.&lt;/P&gt;&lt;P&gt;It was due to the target initialization file.&lt;/P&gt;&lt;P&gt;It seems that the tcl target init file I was using inside CCS must have some timing issues because I can induce the same behaviour on an otherwise good board is I use this init file. However, if I first go into CodeWarrior IDE and run the Diagnose Connection, which uses a Python target init file, then I am able to read/write values as expected to both internal and external memory.&lt;/P&gt;&lt;P&gt;While this solves my immediate question, it means that I can now debug the actual issue I started to investigate to begin with which is related to this error message and erratum A009803:&lt;/P&gt;&lt;P&gt;DDRC: Timeout while waiting for DEBUG_2&lt;/P&gt;&lt;P&gt;See attached image .&lt;/P&gt;&lt;P&gt;But let me close this bug ticket and open a new one specific to that other issue.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 05 May 2025 18:58:13 GMT</pubDate>
    <dc:creator>axegar</dc:creator>
    <dc:date>2025-05-05T18:58:13Z</dc:date>
    <item>
      <title>DDR Read/Write issues using CCS on an embedded LS1046A custom carrier board</title>
      <link>https://community.nxp.com/t5/Layerscape/DDR-Read-Write-issues-using-CCS-on-an-embedded-LS1046A-custom/m-p/2087607#M15666</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using an LS1046A on a custom carrier board. We have these boards shipping and running in the field, however there are some lingering manufacturing issues I am looking into.&lt;/P&gt;&lt;P&gt;On one of those boards, I have run into a situation where using CCS to peek/poke at mem address I have found the following interesting observation.&lt;/P&gt;&lt;P&gt;I can read and write at address &lt;FONT face="courier new,courier" color="#000000"&gt;0x82000000&lt;/FONT&gt;&amp;nbsp;without issues or so it seems. However, if I write 0xDEADBEEF to that address and read it back, I consistently get &lt;FONT face="courier new,courier"&gt;0x21ADBEEF&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;These are the specific commands I am using&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;read memory&lt;/FONT&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;ccs::read_mem 33 0 0x82000000 4 0 2&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;write 64 bits&lt;/FONT&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ccs::write_mem 33 0 0x82000000 4 0 {0xDEADBEEF 0xDEADBEEF}&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I can write&amp;nbsp;&lt;FONT face="courier new,courier"&gt;0x00000000&lt;/FONT&gt;,&amp;nbsp;&lt;FONT face="courier new,courier"&gt;0xFFFFFFFF&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;0xDDDDDDDD&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;0xEEEEEEEE&lt;/FONT&gt;,&amp;nbsp;&lt;FONT face="courier new,courier"&gt;0xA5A5A5A5&lt;/FONT&gt;,&amp;nbsp;&lt;FONT face="courier new,courier"&gt;0x5A5A5A5A&lt;/FONT&gt; and they all return the expected values. Only &amp;nbsp;&lt;FONT face="courier new,courier"&gt;0xDEADBEEF&lt;/FONT&gt; seems to return &lt;FONT face="courier new,courier"&gt;0x21ADBEEF&lt;/FONT&gt;, which is unexpected.&lt;/P&gt;&lt;P&gt;I originally thought this was a manufacturing issue, however, after the sequence of test patterns above, I have to rule out that hypothesis.&lt;/P&gt;&lt;P&gt;Does anyone have any intuition or explanation as to what might be causing this? Is this a protection memory address? Is this a bug in CCS/CWTAP? Are there any erratas related to this?&lt;/P&gt;&lt;P&gt;Any suggestions would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Apr 2025 21:51:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/DDR-Read-Write-issues-using-CCS-on-an-embedded-LS1046A-custom/m-p/2087607#M15666</guid>
      <dc:creator>axegar</dc:creator>
      <dc:date>2025-04-26T21:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: DDR Read/Write issues using CCS on an embedded LS1046A custom carrier board</title>
      <link>https://community.nxp.com/t5/Layerscape/DDR-Read-Write-issues-using-CCS-on-an-embedded-LS1046A-custom/m-p/2089231#M15671</link>
      <description>&lt;P&gt;DDR controller configuration section in CodeWarrior initialization file is only suitable for LS1046ARDB demo board, you need to customize this file according to your custom board.&lt;/P&gt;
&lt;P&gt;Please use QCVS DDRv tool to connect to your custom board to do validation to get the optimized DDR controller configuration parameters, then use them in CW initialization file and ATF software.&lt;/P&gt;
&lt;P style="line-height: 115%; margin: 0in 0in 8.0pt 0in;"&gt;&lt;SPAN&gt;Please refer to DDRv user manual&amp;nbsp;&lt;A href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.nxp.com%2Fexternal-link.jspa%3Furl%3Dhttps%253A%252F%252Fwww.nxp.com%252Fdocs%252Fen%252Fuser-guide%252FQCVS_DDR_User_Guide.pdf&amp;amp;data=05%7C02%7Cyiping.wang%40nxp.com%7C94e65665ace4448c2bd108dd75ac7630%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C638796105816073155%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&amp;amp;sdata=Tmco%2B0m7hbMGv5k8IeMe53NxY05pn9zhbVmLT6IYQ%2FE%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;https://www.nxp.com/docs/en/user-guide/QCVS_DDR_User_Guide.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="line-height: 115%; margin: 0in 0in 8.0pt 0in;"&gt;&lt;SPAN&gt;The customer needs to create a DDR QCVS project according to the custom board.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="line-height: 115%; margin: 0in 0in 8.0pt 0in;"&gt;&lt;SPAN&gt;If DIMM is used on the customer’s board, there is SPD on the target, please select “Read SPD” in DDR configuration panel when create QCVS DDR project.( example: &lt;A href="https://community.nxp.com/t5/Qonverge-Knowledge-Base/DDR-Controller-Configuration-on-LS2085-LS2080-Bringing-up/ta-p/1128310" target="_blank"&gt;https://community.nxp.com/t5/Qonverge-Knowledge-Base/DDR-Controller-Configuration-on-LS2085-LS2080-Bringing-up/ta-p/1128310&lt;/A&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="line-height: 115%; margin: 0in 0in 8.0pt 0in;"&gt;&lt;SPAN&gt;If the customer uses Discrete DDR, in DDR configuration panel, please select “Configuration mode” as “Auto configuration” and “Discreate DRAM”, and configure board and DDR controller related settings according to the custom board. Then in the project, please configure DDR related configuration parameters in “properties” panel according to the DDR data sheet.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="line-height: 115%; margin: 0in 0in 12.0pt 0in;"&gt;&lt;SPAN&gt;Then use QCVS DDRv tool to connect to the target board to do further optimization and validation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="line-height: 115%; margin: 0in 0in 8.0pt 0in;"&gt;&lt;SPAN&gt;After successful validation, please click Project-&amp;gt;Generate Processor Expert Code to get the optimized DDR controller configuration parameters in file ddr_init1.c, and use it to modify ATF source code plat/nxp/soc-ls1046a/ls1046ardb/ddr_init.c.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 09:29:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/DDR-Read-Write-issues-using-CCS-on-an-embedded-LS1046A-custom/m-p/2089231#M15671</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2025-04-29T09:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: DDR Read/Write issues using CCS on an embedded LS1046A custom carrier board</title>
      <link>https://community.nxp.com/t5/Layerscape/DDR-Read-Write-issues-using-CCS-on-an-embedded-LS1046A-custom/m-p/2089526#M15675</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206536"&gt;@axegar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;0x21 = b0010_0001, 0xDE = b1101_1110&lt;/LI-CODE&gt;&lt;P&gt;So, the bits in that nibble are flipped for some reason.&amp;nbsp;&lt;BR /&gt;If I were you I would run the "Mem Tester" and "Stress Tests"&amp;nbsp;scenario from the CodeWarrior using CW-TAP.&lt;BR /&gt;If it shows only on one board, then it seems likely an issue only with certain SDRAM chips on this particular board.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 16:43:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/DDR-Read-Write-issues-using-CCS-on-an-embedded-LS1046A-custom/m-p/2089526#M15675</guid>
      <dc:creator>valokuvaaja</dc:creator>
      <dc:date>2025-04-29T16:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: DDR Read/Write issues using CCS on an embedded LS1046A custom carrier board</title>
      <link>https://community.nxp.com/t5/Layerscape/DDR-Read-Write-issues-using-CCS-on-an-embedded-LS1046A-custom/m-p/2089543#M15676</link>
      <description>Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52411"&gt;@yipingwang&lt;/a&gt;,&lt;BR /&gt;Yes we do have a custom init file that has been working fairly well. We have gone through the entire QCVS design and validation process and updated our timing params as needed.&lt;BR /&gt;However, we do see these lingering issues during manufacturing which we had attributed to other causes such as power and eMMC devices, but now, I am starting to think that they are likely mem or processor related.&lt;BR /&gt;&lt;BR /&gt;Is there a good set of registers I can query via CW TAP to establish the sanity of my LS1046A?&lt;BR /&gt;Could you point me to a good resource to look at for this?</description>
      <pubDate>Tue, 29 Apr 2025 17:15:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/DDR-Read-Write-issues-using-CCS-on-an-embedded-LS1046A-custom/m-p/2089543#M15676</guid>
      <dc:creator>axegar</dc:creator>
      <dc:date>2025-04-29T17:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: DDR Read/Write issues using CCS on an embedded LS1046A custom carrier board</title>
      <link>https://community.nxp.com/t5/Layerscape/DDR-Read-Write-issues-using-CCS-on-an-embedded-LS1046A-custom/m-p/2089546#M15677</link>
      <description>Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/243217"&gt;@valokuvaaja&lt;/a&gt;,&lt;BR /&gt;Thanks for the input. Yes, I suspect either a processor or mem related manuf issue.&lt;BR /&gt;My next step is to run the mem validation tests you suggested, but i am running into issues connecting to my TAP controller (only when attempting to run QCVS). Otherwise, I am able to use the TAP controller when programming eMMC or using CCS console.&lt;BR /&gt;Any good resources you can point me to that talk about the process of establishing a QCVS link and how to do that process?</description>
      <pubDate>Tue, 29 Apr 2025 17:17:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/DDR-Read-Write-issues-using-CCS-on-an-embedded-LS1046A-custom/m-p/2089546#M15677</guid>
      <dc:creator>axegar</dc:creator>
      <dc:date>2025-04-29T17:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: DDR Read/Write issues using CCS on an embedded LS1046A custom carrier board</title>
      <link>https://community.nxp.com/t5/Layerscape/DDR-Read-Write-issues-using-CCS-on-an-embedded-LS1046A-custom/m-p/2089940#M15678</link>
      <description>&lt;P&gt;Please create a QCVS DDR project with "reading from target" method.&lt;/P&gt;
&lt;P&gt;If you encounter problem to connect CW to the target board,&lt;/P&gt;
&lt;P style="margin: 0in;"&gt;&lt;SPAN&gt;In CodeWarrior IDE, when connecting to the target board, the CCS console will pop up in the Windows task bar, please open it type "log v", then connect to the target board again, the low level CCS log will be printed, please capture it to me.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 07:19:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/DDR-Read-Write-issues-using-CCS-on-an-embedded-LS1046A-custom/m-p/2089940#M15678</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2025-04-30T07:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: DDR Read/Write issues using CCS on an embedded LS1046A custom carrier board</title>
      <link>https://community.nxp.com/t5/Layerscape/DDR-Read-Write-issues-using-CCS-on-an-embedded-LS1046A-custom/m-p/2091656#M15694</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52411"&gt;@yipingwang&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I think I have figured out the immediate issue which is the bit flips.&lt;/P&gt;&lt;P&gt;It was due to the target initialization file.&lt;/P&gt;&lt;P&gt;It seems that the tcl target init file I was using inside CCS must have some timing issues because I can induce the same behaviour on an otherwise good board is I use this init file. However, if I first go into CodeWarrior IDE and run the Diagnose Connection, which uses a Python target init file, then I am able to read/write values as expected to both internal and external memory.&lt;/P&gt;&lt;P&gt;While this solves my immediate question, it means that I can now debug the actual issue I started to investigate to begin with which is related to this error message and erratum A009803:&lt;/P&gt;&lt;P&gt;DDRC: Timeout while waiting for DEBUG_2&lt;/P&gt;&lt;P&gt;See attached image .&lt;/P&gt;&lt;P&gt;But let me close this bug ticket and open a new one specific to that other issue.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 18:58:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/DDR-Read-Write-issues-using-CCS-on-an-embedded-LS1046A-custom/m-p/2091656#M15694</guid>
      <dc:creator>axegar</dc:creator>
      <dc:date>2025-05-05T18:58:13Z</dc:date>
    </item>
  </channel>
</rss>

