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.

Question about section configuration

Hi,

My project needs a larger stack and heap. When both of them are set to 0x8000 in C6678, the project runs as expected with the default .cmd file although I do not see it at the project folder. When they are targeted with C6747, I find that I have to configure the C6747.cmd example file to:

.stack         >  DSPL2RAM

.bss           >  SHRAM

.cio           >  SHRAM

.const         >  SHRAM

.data          >  SHRAM

.switch        >  SHRAM

sysmem        >  DSPL2RAM

Both DSPL2RAM and SHDSPL2RAM are 256 KB. Once I carelessly change ".stack         >  DSPL2RAM" to

.stack         >  SHDSPL2RAM

The project does not work anymore. The error messages show that C674x or EDMA read 0x00xxxxxx. 

Although the stack and heap are set to 0x8000, I have to decrease the memory allocation to 2/3 in the program. I am puzzled about this problem. The stack and heap separately request memory. Both DSPL2RAM and SHDSPL2RAM are 256 KB. Why does it not work under such configurations? It needs special keyword (near, far?) to make it work? Which doc talks about this problem?

Regards,

6607.C6747.zip