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.

F2810 stack should only be put into data memory?

Hello,

In the TMS320C28X Optimizing C/C++ Compiler User's Guide (spr514), page 158, it says that the stack should only be put into data memory, in memory Page 1, as shown in the attached picture.  I am wondering why this is, and what would be the possible effect of having it located in program memory, Page 0 instead?  This could have been the source of an issue that we had seen with our F2810 target, and would like to know.

Regards,

Robert

  • I can't answer whether or not those specific sections MUST be on the pages specified.

    I do know that, in general, you can put data/program code anywhere you want, on either page.  This is because it is all the same physical ram, just dual-mapped.  HOWEVER, if you keep data on the data page and code on the program page, you benefit from being able to fetch an instruction, read a data value, and write a data value, all in a single cycle. If you mix it up, you can incur delays.

  • Ok, thanks for the reply and information.

    Robert