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.

A question about the SARAM of TMS320F28027

Other Parts Discussed in Thread: TMS320F28027

Hello:

        I'm programing with  TMS320F28027 but my program seems too large ,  when I build it ,the debug window remind me with:

        can't allocate .text, size 0000099a (page 0) in PRAML0 (avail: 00000999) 

       the definition in .cmd file is like this:

      PRAML0      : origin = 0x008000, length = 0x00999

     .text           : > PRAML0,       PAGE = 0;

       I have checked the datasheet of 28027, it writes that there are two  L0 SARAM areas in the Memory Map, one starts from  0x00 8000 and ends at 0x00 9000 and the other starts from 0x3F 8000 and ends at 0x3F 9000.

       My question is , if one area is not enough for my program, can I use them both? And how can I modify the .cmd file  to meet the change?

      Thank you very much.

  • Yini,

     

    F28027 device has 4K x 16 words of SARAM space which is from 0x8000 to 0x8FFF.

    You have mentioned the length as 0x999 (in hex) , this can be increased to 0x1000 which is the max size for L0RAM.

    Please change the RAM size to 0x1000 in the .cmd file as below. This should solve the problem.

    PRAML0      : origin = 0x008000, length = 0x1000

    The address locations from 0x3F8000 to 0x3F9000 is a dual mapped zone to the same RAM space (0x8000-0x9000) hence it cannot be used twice.

     

    -Vaish

     

  • Thank you very much,Vaish:

      My program is a bit large so I think even the entire SARAM is not enough for it.

      I maybe have to load it into the flash directly.

     

    Yini

  • Yini,

    From your first post, the error message below indicates that the size of code is 0x99A which should fit in the SARAM.

    can't allocate .text, size 0000099a (page 0) in PRAML0 (avail: 00000999) 

    Is the size of your code larger than 4K X 16 bits size?

     

    -Vaish

    PS: Please click the "Verify Answer" button, if your question has been answered

  • Hi, Vaish:

         I've made a mistake about the size of SARAM. Now I have extend the size of PRAML0 to 0x000BFF.   

        I think it will be enough this time.

        Thank you very much for your help.

     

      Yini