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.

XTCIEVMK2X: In SA SaBasicExample (ARM build version), can we use DDR3 to replace MSMC SRAM in fw_memAllocInit() and fw_memAlloc()?

Hi TI experts,

I am testing SA SaBasicExample (ARM build version). Due to out of MSMC SRAM, I would like to use DDR3 to replace MSMC SRAM in fw_memAllocInit() and fw_memAlloc()? Is it OK? How to do it?

I change MSMC_SRAM_BASE_ADDR to 0xE0000000

if (fw_memAllocInit((uint8_t*)MSMC_SRAM_BASE_ADDR,
                                  MSMC_TEST_PERM_MEM_SZ) == fw_FALSE) {
        printf("ERROR: \"Top Level Test\" fw_memAllocInit failed\n");
        return (-1);
    }

if (fw_memAllocInit((uint8_t*)0xE0000000,
                                  MSMC_TEST_PERM_MEM_SZ) == fw_FALSE) {
        printf("ERROR: \"Top Level Test\" fw_memAllocInit failed\n");
        return (-1);
    }

and set break point in testCommonGetBuffer() in test6.c, then step in the function. Below is the call stack. It still uses MSMC SRAM (addr=0xc040007).

Qmss_internalPhyToVirtDesc (hnd=902, addr=0xc040007) at /home/tony/ti/pdk_keystone2_3_01_01_04/packages/ti/drv/qmss/qmss_mgmt.h:77
77 in /home/tony/ti/pdk_keystone2_3_01_01_04/packages/ti/drv/qmss/qmss_mgmt.h
(gdb) bt
#0  Qmss_internalPhyToVirtDesc (hnd=902, addr=0xc040007) at /home/tony/ti/pdk_keystone2_3_01_01_04/packages/ti/drv/qmss/qmss_mgmt.h:77
#1  0x0000ccac in Qmss_queuePop (hnd=902) at /home/tony/ti/pdk_keystone2_3_01_01_04/packages/ti/drv/qmss/qmss_mgmt.h:379
#2  0x0000d07a in testCommonGetBuffer (tf=0x58440 <tFramework>, size=8)
    at /home/tony/ti/pdk_keystone2_3_01_01_04/packages/ti/drv/sa/example/SaBasicExample/src/common/common.c:70
#3  0x0001500c in saLTETest (arg=0xb5970dd0)

Regards,

Tony