Heap __top_RamAHB32

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Heap __top_RamAHB32

158 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nkarakotas on Tue Jun 05 22:58:05 MST 2012
Hi,

I tried the following as provided on the link:
     PROVIDE(${heap_symbol} = ADDR(.data_RAM2));
        PROVIDE(_vStackTop = __top_RamAHB32 - ${STACK_OFFSET});

http://support.code-red-tech.com/CodeRedWiki/EnhancedManagedLinkScripts

But it gives me a linker script syntx error.
Where is the STACK_OFFSET defined? If I put it as zero will be ok?
0 Kudos
1 Reply

143 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Wed Jun 06 00:04:28 MST 2012
STACK_OFFSET is defined in the MCU Linker/Target settings and it appears the default is zero.

Of course, this only works if you are using the Managed Linker Script. If you are providing your own linker scripts, then you do not have any of these macros available
0 Kudos