In MSP430F6659, SRAM is divided in 4 sectors of 16KB each. We found only 48KB out of 64KB is usable for application. Sector 0 is not available for the application.
I created one blank project in IAR for MSP430F6659 and declared an array of static variable of 48KB(array length is 49152 of uint8). I used this array in while(1).
Below error appeared after build.
Error[e16]: Segment DATA20_Z (size: 0xdc00 align: 0x1) is too long for segment definition. At least 0x1c00 more bytes needed. The problem occurred while processing the segment placement command
"-Z(DATA)DATA20_I,DATA20_Z,DATA20_N,DATA20_HEAP+_DATA20_HEAP_SIZE=2400-63FF,F0000-FBFFF", where at the moment of placement the available memory ranges were "CODE:2400-5bff,CODE:f0000-fbfff"
Reserved ranges relevant to this placement:
Build results are,
56 bytes of CODE memory
49 152 bytes of DATA memory (+ 10 bytes shared)
In IAR settings I kept stack size to 2048 and memory model is large.
How do I use Sector 0 RAM for the application?