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.

TMS320F280049: 关于CLA与CPU共享内存LSx RAM的配置与数据读写操作

Part Number: TMS320F280049

程序配置

MemCfgRegs.LSxMSEL.bit.MSEL_LS7 = 1;
MemCfgRegs.LSxCLAPGM.bit.CLAPGM_LS7 = 0;

//变量定义与声明

typedef union
{
Uint32 llDW[56];
struct
{
float32 fLLCNotchCnt;
}PrimToScd;

}SHRLoopParaTag;

//ClaCpuSharedRam为在CMD文件中LS7所对应的section命名

#pragma DATA_SECTION(unLLCLoopPara, "ClaCpuSharedRam");

SHRLoopParaTag unLLCLoopPara;

//然后分别在CPU跟CLA程序中对unLLCLoopPara.PrimToScd.fLLCNotchCnt变量的值进行更改,并通过CCS仿真监控

//cpu

unLLCLoopPara.PrimToScd.fLLCNotchCnt = 3;

//cla

if(unLLCLoopPara.PrimToScd.fLLCNotchCnt >= 3)
{
unLLCLoopPara.PrimToScd.fLLCNotchCnt = 6;
}
else
{
unLLCLoopPara.PrimToScd.fLLCNotchCnt = 0;
}

发现CPU共享内存内的变量可以进行更改,CLA则不行,请问我是哪里没有配置好吗

x 出现错误。请重试或与管理员联系。