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.

DM816x EZSDK 2GB memory map

Hi,

My  DM816x system has 1GB memory map configuration now. I need to make configuration changes to use 2GB memory map to use memory available on the custom board. Any help/advise appreciated?

  • Hello,

    Please refer this wiki page.
    processors.wiki.ti.com/.../EZSDK_Memory_Map
    It will help to understand the memory map in EZSDK.
    You could check the TRM memory map chapter also.
    Here is some useful e2e treads:
    e2e.ti.com/.../1090591
    e2e.ti.com/.../1675468
    e2e.ti.com/.../206884
    You could search in the e2e for more.

    Hope this helps.

    BR
    Margarita
  • I made changes to u-boot to enable 2GB memory. Now, I see the 0x80000000 and 0xc0000000 adress point to same address. Please find the md output

    NETRA#md 0x80000000
    80000000: 21591247 c6fabcc2 f2babfef c67aacf7 G.Y!..........z.
    80000010: ecf9fe33 fffefbfb efb97bae bddbfb7b 3........{..{...
    80000020: f8fb4afe bc7be37d c7ffaf1d d39eeefe .J..}.{.........
    80000030: cc37eff2 9fddee23 be57dee5 be8fdbed ..7.#.....W.....
    80000040: 364e9e2e f3bbd9bf 2bbe3aee f91fd9fb ..N6.....:.+....
    80000050: 97dfafdf 6fbfbffb f68cf5b7 cbff7b7c .......o....|{..
    80000060: 9798ff7f 7baef8cb f2cf3acf 77ddfe6f .......{.:..o..w
    80000070: 6df9efbe feae0ba9 4ab66969 977ffbad ...m....ii.J....
    80000080: 5fbe7fae e9fcab5f 7d9a5bf7 71d5da3d ...__....[.}=..q
    80000090: 8d59c331 78b1ebda bdecefeb 58f6b3db 1.Y....x.......X
    800000a0: 9bcebb36 b4efbae8 8f67bb94 d17baaee 6.........g...{.
    800000b0: b6efbb7a eedbd5fe 37bb951e afe898f7 z..........7....
    800000c0: bfd9fedf 67fbba72 eedba75a 2f7ae7bb ....r..gZ.....z/
    800000d0: 9726fed2 c6f96ef3 b653e6fe e765adc7 ..&..n....S...e.
    800000e0: 25c9fbb9 3cbbfbeb 68dbeee7 bf8afff6 ...%...<...h....
    800000f0: 73eff6ca 4fd9f6ee 77fbffbb dbfff81b ...s...O...w....
    NETRA#md 0xc0000000
    c0000000: 21591247 c6fabcc2 f2babfef c67aacf7 G.Y!..........z.
    c0000010: ecf9fe33 fffefbfb efb97bae bddbfb7b 3........{..{...
    c0000020: f8fb4afe bc7be37d c7ffaf1d d39eeefe .J..}.{.........
    c0000030: cc37eff2 9fddee23 be57dee5 be8fdbed ..7.#.....W.....
    c0000040: 364e9e2e f3bbd9bf 2bbe3aee f91fd9fb ..N6.....:.+....
    c0000050: 97dfafdf 6fbfbffb f68cf5b7 cbff7b7c .......o....|{..
    c0000060: 9798ff7f 7baef8cb f2cf3acf 77ddfe6f .......{.:..o..w
    c0000070: 6df9efbe feae0ba9 4ab66969 977ffbad ...m....ii.J....
    c0000080: 5fbe7fae e9fcab5f 7d9a5bf7 71d5da3d ...__....[.}=..q
    c0000090: 8d59c331 78b1ebda bdecefeb 58f6b3db 1.Y....x.......X
    c00000a0: 9bcebb36 b4efbae8 8f67bb94 d17baaee 6.........g...{.
    c00000b0: b6efbb7a eedbd5fe 37bb951e afe898f7 z..........7....
    c00000c0: bfd9fedf 67fbba72 eedba75a 2f7ae7bb ....r..gZ.....z/
    c00000d0: 9726fed2 c6f96ef3 b653e6fe e765adc7 ..&..n....S...e.
    c00000e0: 25c9fbb9 3cbbfbeb 68dbeee7 bf8afff6 ...%...<...h....
    c00000f0: 73eff6ca 4fd9f6ee 77fbffbb dbfff81b ...s...O...w....

    Changed 0x80000000 to 0x00000000 using mw and get the below result.
    NETRA#mw 0x80000000 0x00000000 0x100
    NETRA#md 0x80000000
    80000000: 00000000 00000000 00000000 00000000 ................
    80000010: 00000000 00000000 00000000 00000000 ................
    80000020: 00000000 00000000 00000000 00000000 ................
    80000030: 00000000 00000000 00000000 00000000 ................
    80000040: 00000000 00000000 00000000 00000000 ................
    80000050: 00000000 00000000 00000000 00000000 ................
    80000060: 00000000 00000000 00000000 00000000 ................
    80000070: 00000000 00000000 00000000 00000000 ................
    80000080: 00000000 00000000 00000000 00000000 ................
    80000090: 00000000 00000000 00000000 00000000 ................
    800000a0: 00000000 00000000 00000000 00000000 ................
    800000b0: 00000000 00000000 00000000 00000000 ................
    800000c0: 00000000 00000000 00000000 00000000 ................
    800000d0: 00000000 00000000 00000000 00000000 ................
    800000e0: 00000000 00000000 00000000 00000000 ................
    800000f0: 00000000 00000000 00000000 00000000 ................
    NETRA#md 0xc0000000
    c0000000: 00000000 00000000 00000000 00000000 ................
    c0000010: 00000000 00000000 00000000 00000000 ................
    c0000020: 00000000 00000000 00000000 00000000 ................
    c0000030: 00000000 00000000 00000000 00000000 ................
    c0000040: 00000000 00000000 00000000 00000000 ................
    c0000050: 00000000 00000000 00000000 00000000 ................
    c0000060: 00000000 00000000 00000000 00000000 ................
    c0000070: 00000000 00000000 00000000 00000000 ................
    c0000080: 00000000 00000000 00000000 00000000 ................
    c0000090: 00000000 00000000 00000000 00000000 ................
    c00000a0: 00000000 00000000 00000000 00000000 ................
    c00000b0: 00000000 00000000 00000000 00000000 ................
    c00000c0: 00000000 00000000 00000000 00000000 ................
    c00000d0: 00000000 00000000 00000000 00000000 ................
    c00000e0: 00000000 00000000 00000000 00000000 ................
    c00000f0: 00000000 00000000 00000000 00000000 ................

    I made the following changes in u-boot for 2GB memory use.

    __raw_writel(0x80640300, DMM_LISA_MAP__2); /* Register 2 maps 0x80000000 to 0x00000000, length 1GB */
    __raw_writel(0xC0640320, DMM_LISA_MAP__3); /* Register 3 maps 0xC0000000 to 0x20000000, length 1GB */

    /**
    * Physical Memory Map
    */
    #define CONFIG_NR_DRAM_BANKS 2 /* we have 2 banks of DRAM */
    #define PHYS_DRAM_1 0x80000000 /* DRAM Bank #1 */
    #define PHYS_DRAM_1_SIZE 0x40000000 /* 1 GB */
    #define PHYS_DRAM_2 0xC0000000 /* DRAM Bank #2 */
    #define PHYS_DRAM_2_SIZE 0x40000000 /* 1 GB */

    What is the possible reason for both 0x80000000 and 0xc0000000 pointing to same address location?