I ran out of RAM on my MSP430 because I am getting this message;
Error[e16]: Segment DATA16_Z (size: 0x638 align: 0x1) is too long for segment definition. At least 0x44 more bytes needed. The problem occurred while
processing the segment placement command "-Z(DATA)DATA16_I,DATA16_Z,DATA16_N=0200-_SYS_RAM_END", where at the moment of placement
the available memory ranges were "CODE:20b-7ff"
Reserved ranges relevant to this placement:
200-7ff DATA16_I
Error while running Linker
So I found that the problem is due to these static variables within one of my functions;
static float circularBufferTemp[CIRC_BUFF_WIDTH_SCH3] = {0};
static float circularBufferHumi[CIRC_BUFF_WIDTH_SCH3] = {0};
static UCHAR indexMeasTemp = 0;
static UCHAR indexMeasHumi = 0;
Now the question is; How can I avoid this problem considering that I have to save those variables inside that function every time it is called by my application code?
You may consider:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.