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.

CCS/DM3730: Cache enabled -> Global variables=0 ??

Guru 20755 points
Part Number: DM3730

Tool/software: Code Composer Studio

Hello,

I have issue that if cache is enabled, then all global variables are read as zeros, instead of the correct value.

When cache is disabled, then everything works fine.

We've notice this issue when we tried to download image with d-cache (or i-cache) enabled. This resulted in wrong execution of application (because the global variables are read as zeros).

Regards,

Ran

  • Hi Ran,
    What kind of error or message do you get when try to download with cache enabled?

    Thanks
    ki
  • Hi Ki,

    Thank you for the reply.
    There is no error, I do the download, set the pc to start application (0x800000000), and presss go.
    But then I see that nothing happens as expected.
    On the other hand, if chache is not enabled, the application behaves normally.

    I tried to step and see if memory is the same in both cases, and remember that at least in first ~5-6 steps the memory contens seems to be the same.

    The only difference is if I run cache enable routine before downloading the application or not.

    Regards,
    Ran
  • I see. This is not really a download issue then. I am going to move this thread to the device forum. The experts there can help you best debug the behavior you see.

    Thanks
    ki
  • Hello Ki,

    I see that the root cause of failure is that the static variables are all zeros (although some should have non-zero values) , and it happens only if cache is enabled.

    Thank you for any ideas.

    Ran

  • [Edited and deleted]