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.

Memory map / linker / shared memory issue

Other Parts Discussed in Thread: TMS320C6657

Recently, I updated my projects to use the latest packages from TI.  After doing so, my projects won't link.  The linker complains that a section named .srioSharedMem won't fit in the shared memory region (known as "MSMCSRAM" to the linker).

I did a lot of digging and I found that:

  • The section .srioSharedMem is 1 MB, and is directed to reside in the MSMCSRAM region.
  • Several other sections are directed to reside in the MSMCSRAM region.
  • The MSMCSRAM region was 2 MB in the previous version of whatever package defines it.
  • The MSMCSRAM region is 1 MB in the latest version of that package.

Since the size of the sections that need to reside in MSMCSRAM is greater than 1 MB, the link fails.

I looked at the C6657 data manual to learn the size of the shared-memory region.  The answer is "I don't know".  In table 2-2, it says that the region begins at 0C000000 and ends at 0C1FFFFF - that's 2 MB.  In the "Bytes" column, it says that the region is 1 MB.  Which one is correct?

Regardless of which one is correct, I don't need 1 MB of shared memory, so the easiest fix would be to modify the amount of memory allocated for .srioSharedMem.  I can't figure out where to make that happen.  If someone can tell me that, I'll fix it and be on my way.

jw