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.

Linux/AM5749: How to change RAM size

Other Parts Discussed in Thread: AM5748

Hello support!!!

I use ti-processor-sdk-linux-am57xx-evm-06.03.00.106 on am5749 (custom board).

In my custom bord, I have only 4 chip's (MT41K256M16TW-107)  2 chips located on ddr1 bus  and another 2 on ddr2 bus.

But I cant understand... The stock dev kit have 2gb RAM how I saw in datasheet and 5 chip's...how did we get this volume?

I mean if the 1 chip is 512mb what in a total 2,5 Gb....where is another 512Mb ?

As a result I have many errors when I try to run opencl examples : 

e2e.ti.com/.../3424201

https://e2e.ti.com/support/processors/f/791/p/926014/3425427#3425427

I would like to know : how and where I should configure RAM size right.

  • Hi Oleg,

    The DDR configurations are done in u-boot - board/ti/am57xx/board.c.
    This app note also provides information on DDR configuration -- https://www.ti.com/lit/an/sprac36e/sprac36e.pdf

    Regards,
    Vishal

  • Hello Vishal,

    EMIF_RegisterConfig doesn't work with Libre Office, and Microsoft office 2007 too...

    I cant open it...but any way thanks!!

    Regards,
    Oleg

  • Hi Oleg,

    Works on Microsoft office 2010 that I have on my PC.


    Regards,
    Vishal

  • Hi Oleg,

    Do you have anymore questions on this?

    Regards,
    Vishal

  • Hi Vishal,

    I will try to reconfigurate RAM if I will have a some qustions.. I will ask! Thanks for a help!

    I can close the topic if you need it but acctually I'm not ready (not sure) maybe after a week I will have a new questions.

    Regards,

    Oleg

  • Hi Oleg,

    You can open a new e2e question when you are ready.

    Regards,
    Vishal

  • Hi Vishal,

    I still try to uderstand and resolve this probleb with EMIF config and I little surprised how it is mechanism is work. I mean the Idea to do configurator in excel file is good. But acctualy for a newcomers it is awful ... You get some couples of code which you should integrate in some diferent place...where you can make a many mistakes. It sould work automaticly like a normal configurator or you should get some patch like a result of work this configurator. Something like this...

    Regards,
    Oleg

  • Hi Oleg,

    Thanks for the feedback. Yes, unfortunately the conversion from XLS to u-boot was not very streamlined for this SOC. The tool does output the same type of structures, but it is not a simple copy and paste. We have made improvements to this process on future SOCs.

    Regarding your questions related to why the AM574x development kit has 5 memories, there are two 16-bit memories (4Gb) for each EMIF data bus, plus one memory for ECC on EMIF1. ECC does not contribute to the total available memory size, thus the development kit has 2GB total memory across the two EMIF controllers. This is also documented in the AM574x development kit user guide, as shown below. 

    5.1 DDR3L SDRAM The AM574x IDK EVM design supports two banks of DDR3L SDRAM where each is attached to a separate EMIF on the AM5748 processor. Each EMIF can support up to 2GB at speeds up to 1066MT/s. Each EMIF on the IDK EVM contains two 4Gbit (256M × 16) SDRAMs for a total of 1GB of DDR3L SDRAM memory on each EMIF. The part number for the DDR3L SDRAM memory used is MT41K256M16HA-125 that contains timing for 1600MT/s operation. The package used is the 96-ball TFBGA package. See the AM574x Technical Reference Manual (SPRUIH8) for memory locations for this memory. The first EMIF also contains an SDRAM attached to the ECC byte lane 

    The memories you are using appear to be very similar to what is populated on the development kit. Although the development kit has an SDRAM populated on the ECC bus, my understanding is that the SDK default configuration should not enable ECC; thus, the default settings should work as-is on your custom board under nominal conditions. 

    Regarding your other E2E posts, I do not understand why you mention you only have 1.5 GB of memory, where in this thread the configuration you have provided would total 2GB.

  • Hello Kevin,

    Pardon me I was wrong I understood a srtructure  and I really have 2Gb and I haven't ECC chip.... it is explaine all...

    It is a really a litlle bit  difficult for a newcomers. I will try to configure it ...

    BR

    Oleg

  • Hello!!!

    Somebody help me with it: e2e.ti.com/.../933502

    BR,

    Oleg