How do I allocate more memory to ram space. I need a 2d array of [35][16] but am running into ram problems. Memory map shows
Ram Unused : 348
Fram Unused: 12138
without the array, but with the array I get insufficient memory.
Thanks
Carl
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.
How do I allocate more memory to ram space. I need a 2d array of [35][16] but am running into ram problems. Memory map shows
Ram Unused : 348
Fram Unused: 12138
without the array, but with the array I get insufficient memory.
Thanks
Carl
Hi,
which compiler are you using? this question is basically compiler specific. You need to adapt the linker configuration file (IAR) or the linker command file (CCS) to provide some portion of the FRAM memory for the big variable. Search e.g. for "pragma DATA_SECTION" or "pragma location" in this forum.
Hi,
i think this should be able to help you:
http://processors.wiki.ti.com/index.php/Creating_MSP430_FRAM_Variables_Using_CCS
old_cow_yellow said:I am very confused.
If the chip has only 1KB of RAM and you want more, you have to use a different chip with more RAM.
Telling the linker to "Allocate" more RAM can only fool the linker. It does not solve the problem.
Well,
i guess the OP meant "data memory" as "RAM".
Sorry about the confusion. What I meant was to put data variable on fram instead of sram, as in a large array.
**Attention** This is a public forum