Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2431: where is the ecc area in DDR

Part Number: AM2431

Hello Support Team,
We are currently using a 64 MB DDR memory and have enabled the DDR Inline ECC feature.

Within the DDR address space, both ECC‑checked regions and non‑ECC‑checked regions are configured.
The ECC check range is set as follows:

  • StartAddress: 0x80000000
  • EndAddress: 0x83700000
According to the Technical Reference Manual (TRM), the following description applies to Inline ECC:
For every 512‑byte data block, 64 bytes of ECC are stored inline. Thus, 1/9 of the total SDRAM space is used for ECC storage, and the remaining 8/9 is available for system use. From the system point of view, those 8/9 of the SDRAM data space are seen as consecutive byte addresses. Even if there are non‑ECC‑protected regions, the previously described 1/9–8/9 rule still applies, and consecutive byte addresses are seen from the system point of view. Note that 8/9 of the total SDRAM space is available for system use regardless of the size of the ECC region(s). In other words, only 8/9 of the memory is available even in non‑ECC regions when ECC is enabled.

Based on this description, we would like to confirm the following:

From a user’s perspective, should the ECC management (ECC storage) area be organized as shown in Figure  below?
If access to the non‑ECC regions is required, should the effective starting address be 0x83700000?
image.png

Thank you for your support.

Best regards,

  • No, the ECC data is mixed with the data as shown below

    Based on your definition, the non-ECC region will start at 0x83700000.

    Regards,

    James

  • Thank you for your reply.

    Q1: I would like to further clarify my understanding of the physical address layout for non‑ECC regions.
    My understanding is that once DDR ECC is enabled, the physical address layout follows the same data‑and‑ECC interleaving scheme shown in the figure below, even for regions that are configured as non‑ECC in the system address space.
    Is this correct?
    For example, non‑ECC region starts at system address 0x03700000

    Q2: In addition, since ECC is enabled, only 8/9 of the DDR capacity is usable as system address space.
    With 64 MB DDR, the last accessible system address should be 0x038E37FF based on this rule.

    Based on this understanding, I would expect that read or write accesses beyond this address should not be allowed.
    However, in practice it appears that read and write operations beyond this address are still working correctly.

    Could you please help explain why accesses beyond 0x038E37FF are still possible.

    Thank you.
    Best regards,

  • Q1 Yes, this is correct.  Non-ECC regions will be partitioned the same, just ignoring the ECC data when accessed.

    Q2  You might be experiencing memory aliasing, where it looks like the memory is accessible in the upper addresses, but you are actually looking at the lower addresses.  Run a test which writes the same value to the entire memory, then write a different pattern above 0x038E37FF, and see if any of the lower addresses also show the different pattern.

    Regards,

    James