Hi!
We have decided to migrate from IAR v3.42 to CCE v3.1. I am actually using CCE3 build v3.2.4.3.8 on MSP430F5348 compiling with the options to enable the 20bit mode: --silicon_version msp430x, --large_memory_model.
I need to inizialize the HEAP section at runtime, with IAR I used to write:
#pragma segment = "DATA20_HEAP"
unsigned char* heap_start;
unsigned char* heap_end;
unsigned int heap_size;
int main(void)
{ heap_start = __segment_begin("DATA20_HEAP");
heap_end = __segment_end("DATA20_HEAP");
heap_size = heap_end - heap_start;
memset(heap_start, 0x00, heap_size);
}
With CCE I tried to edit the linker .cmd file adding fill = 0x00 at the .sysmem segment
SECTIONS
{ ...
.sysmem : {} > RAM, fill = 0x00 /* DYNAMIC MEMORY ALLOCATION AREA */
...
}
but when I start the debugger I get the error:

and then I can't start the debug session.
Apart this method at compile time, which seems not working, is there any replacement to the IAR functions
__segment_begin() and __segment_end()?
I tried to find a solution reading all the application notes available on TI.com without success.
Thank you in advance.