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.
Tool/software: Code Composer Studio
In my cmd file I'm setting LS1 to LS5 as CLA program memory.And in my program, I check whether this space is normal by writing and rereading.The code as shown below,
void RamCheck(void)
{
Uint16 *addr;
Uint32 i;
int iRamCheckErr=0;
addr = (Uint16 *) 0x008000;
for (i = 0x000000; i < 0x003000; i++)
{
*(addr + i) = 0x5555;
if (*(addr + i) != 0x5555)
{
iRamCheckErr=1;
}
*(addr + i) = 0xaaaa;
if (*(addr + i) != 0xaaaa)
{
iRamCheckErr=1;
}
*(addr + i) = 0x0000;
}
addr = (Uint16 *) 0x00C000;
for (i = 0x000000; i < 0x010000; i++)
{
*(addr + i) = 0x5555;
if (*(addr + i) != 0x5555)
{
iRamCheckErr=1;
}
*(addr + i) = 0xaaaa;
if (*(addr + i) != 0xaaaa)
{
iRamCheckErr=1;
}
*(addr + i) = 0x0000;
}
if (iRamCheckErr==1)
{
while(1)
{
;
}
}
}
At present, in the process of testing the main program jumping to the boot program, I found that the space between LS1 and ls5 could not be written. As a result, the read value did not match the write value, and the program stopped.
So, I would like to know about the situation that this RAM space cannot be written.
Thanks.
Hi,
If you have already allocated the memory to CLA program memory, the RAM will not be accessible to CPU. Are you running this function before configuring the CLA Memory and initializing the CLA?
Regards,
Praveen
Hi Praveen,
Yes, this function can run correctly before CLA configuration.The main program and the boot program will finish a ram check in the system initialization. Does it mean that if the main program has allocated the cla memory, the boot program needs to release the memory before using this function to check?
Thanks.
Yes that is correct . If you want to use it from cpu, the memory has to be released from cla side