How can I move the heap to SDRAM?

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I move the heap to SDRAM?

967 Views
simonstark
Contributor I

Hello,

 

I'm using a LPC 4357 Board with LPCLink2 and LPCXpresso.

 

I am using big chunks of data, that have to be processed which means that SRAM isn't sufficient anymore. I read some topics here that it is possible to move the heap-array into SDRAM.

 

I tried this by adding these two lines to the linker options:

--defsym=__user_heap_base=0x28000100

--defsym=_pvHeapLimit=0x280FFFFF

 

But when I increase the heap size, I receive a linker-error which refers to RAMLOC32. So my definitions don't seem to work. Has anybody any idea why? Is there anything else that has to be considered?

 

Kind regards,

Simon

Labels (1)
0 Kudos
1 Reply

341 Views
lpcxpresso_supp
NXP Employee
NXP Employee

It would be most helpful to attach/include output from the build console and LPCXpresso IDE version information. For now, here are some pointers.

Heap allocation/checking in Redlib

Linker script templates

Using your own linker scripts

Also, questions regarding LPCXpresso IDE are better posted into the dedicated LPCXpresso forum.

Yours,

LPCXpresso Support

0 Kudos