AnsweredAssumed Answered

Can I extend default memory pool with MRAM?

Question asked by Marcos Di Fazio on Mar 1, 2011
Latest reply on Jul 26, 2012 by Akshaya Mukund Hosalli

Hi

 

(using twrmcf52259 and cw10)

 

I been reading a lot of forum messages, freescale documentation and source code trying to understand this.

 

Our application is low on memory, so we bought a TWR_MEM module to increase system RAM.

 

Until now 2 aproaches was used

 

1) we use _mem_extend() function. We have a modal dialog that show something like "An address outside of the KERNEL DATA area was detected: 0x100002e3, this may mean kernel data corruption". This ocurs because when sram is full, consecutive calls to _mem_alloc() returns memory from MRAM that is outside of KERNEL DATA range defined in the linker command file.

 

2) modify the linker command file, redefining the ram sector to be located in the MRAM address space at 0x10000000 and 0x80000 size. In this case our web server is no longer available( posibly due a poor performance of MRAM).

 

Could anyone help us? Is posible extend the default memory pool with MRAM?

thanks in advance.

 

 

 

Outcomes