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 Allocation Guidelines? (dupe post)

Guru 15580 points

Pardon the duplicate post from the C55xx forum, but it's very quiet over there.....:(

======================================================

Are there published guidelines for where to allocate the various memory sections of the C5515? I am struggling to squeeze all of my code into available memory and specifically wonder if it is OK to put .const and .bss into SARAM? When I do this, things start getting a bit squirrely.

Below is the allocation that worked until my code got too large to fit.

.bss : > DARAM
vectors : > VEC ALIGN = 256
.stack : > DARAM 
.sysstack : > DARAM
.sysmem : > DARAM
.text : > SARAM
.data : > DARAM 
.cinit : > SARAM
.const : > DARAM
.cio : > SARAM
.switch : > DARAM

  • The relevant section of the compiler manual is titled Specifying Where to Allocate Sections in Memory.  But I don't think it will help much in this situation.  The compiler doesn't care about the distinction between DARAM and SARAM.  Both kinds of memory can support read and write access.  I suspect that whatever is wrong is related to the hardware, and not the compiler.

    Thanks and regards,

    -George

  • Thanks George. Turns out an errant interrupt was crashing things.