Hi,
> MY QUESTION IS:
> Where is the ___SP_INIT value configured on my code????
Is it in your .lcf file, under Linker Files?
Or maybe you're asking something else...
-- Rich
.custom : { ___HEAP_START = .; ___heap_addr = ___HEAP_START; ___HEAP_END = ___HEAP_START + ___heap_size; ___SP_END = ___HEAP_END; ___SP_INIT = ___SP_END + ___stack_size; . = ALIGN (0x4); } >> userram
.custom : { . = ALIGN(0x40); ___HEAP_START = .; ___HEAP_END = ___SRAM + ___SRAM_SIZE - ___SP_SIZE; ___SP_END = ___HEAP_END; ___SP_INIT = ___SP_END + ___SP_SIZE; ___heap_addr = ___HEAP_START; ___heap_size = ___HEAP_END - ___HEAP_START ; __SP_INIT = ___SP_INIT; . = ALIGN (0x40); } >> RAM_ProgSector