AnsweredAssumed Answered

How to use SDRAM with separate heap?

Question asked by Jack King on Apr 19, 2020
Latest reply on Apr 19, 2020 by jeremyzhou

What is the best way to use the IMXRT SDRAM for dynamic memory allocation?  I want to dynamically place certain object types into SDRAM, while also keeping a heap on DTCM. 

So far I have looked at using a custom malloc for the SDRAM heap (umm_malloc), but it seems like this is an overly complicated solution.  It requires custom allocators to use std containers, etc.  Using a linked list allocator for 32 bit addresses is also quite wasteful.

 

I would think this is a fairly common issue with multiple RAM types, but I haven’t found very many useful resources on the topic, so I must be missing something.

 

Hopefully someone here has some ideas.

Outcomes