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.

Cannot read property "base" from undefined

Other Parts Discussed in Thread: 66AK2L06

工程师们好:

          评估板:66AK2L06    CCS8

       

         新建的IPC_messageq工程,编译结果报错  Cannot read property "base" from undefined ;

         这是什么原因导致的,应该怎么改呢?   

涉及到的代码如下:

          

config.bld 中 SR_0 部分:
var SR_0 = {
        name: "SR_0", space: "data", access: "RW",
        base: 0x84800000, len: 0x200000,
        comment: "SR#0 Memory (2 MB)"
    };

ipc.cfg.xs 中 sharedregion 部分:
var SR0Mem = Program.cpu.memoryMap["SR_0"];
SharedRegion.setEntryMeta(0,
    new SharedRegion.Entry({
        name:           "SR_0",
        base:           SR0Mem.base,
        len:            SR0Mem.len,
        ownerProcId:    1,
        isValid:        true,
        cacheEnable:    xdc.global.SR0_cacheEnable
    })