Hi
I am trying to use a shared data buffer in my program. This buffer will be updated by DSP0 and all others should be able to see its updates.
I am using EVMK2H with linux on ARM and sysbios on DSPs. I am using #pargam section to define shared buffer. In code I update the buffer in DSP0 and when I try to read the values of buffer on other DSPs i.e. DSP1 I don't see updated values. I am using mpmcl utitlity and run dsp1 after 3-5 seconds of DSP0.
in My CFG file I do like this
Program.sectMap[".myMSMC"] = "MSMCSRAM";
while In c file
#pragma DATA_SECTION(buf, "myMSMC");
int buf[72*1024]; // I also defines it above the #pragma line but same results
int i=0;
switch(coreID)
{
case 1:
Cache_inv(buf, 72*4096, Cache_Type_ALL, TRUE );
for(i = 0; i < 72*1024; i++)
{
buf[i]=72*1024-i;
System_printf("%d,", buf[i]);
}
Cache_wbInv(buf, 72*4096, Cache_Type_ALL, TRUE );
break;
default:
Cache_inv(buf, 72*4096, Cache_Type_ALL, TRUE );
for(i = 0; i < 72*1024; i++)
{
System_printf("%d,", buf[i]);
}
Cache_wbInv(buf, 72*4096, Cache_Type_ALL, TRUE );