AnsweredAssumed Answered

How to modify the stack location?

Question asked by muis on Oct 19, 2016
Latest reply on Oct 20, 2016 by LPCX support

I'm using the LPC11Uxx and since it has no stack-checking and my main RAM is completely full, I decided to put the stack in the USB RAM bank, to make sure its completely seperated from the heap.

 

I did this by creating a custom linker script, and modifying this line:

 

PROVIDE(_vStackTop = __top_RamUsb2 - ${STACK_OFFSET});

 

I hope this doesn't have any effect on performance (?), and it has always worked perfectly. But the latest LPCXpresso uses a different format for linker scripts (FreeMarker) and the conversion of my old-style template was unsuccesfull. It gives an error about the 'rodata' section, and maybe that is fixable but I really dont want to mess with custom linker scipts anymore.

 

So does anyone have an idea how I can modify the stack location on the LPC11U68? Preferably without using FreeMarker templates?

Outcomes