Page 1 of 1
How do I configure the memory map?
Posted: Sun Nov 07, 2021 3:52 pm
by hjalfi
I would like to tell ESP-IDF to completely ignore certain memory areas --- SRAM0 and 2, mostly. This will be used by custom non-FreeRTOS code. Is there a way to tell the configuration tool to do this?
Re: How do I configure the memory map?
Posted: Mon Nov 08, 2021 4:40 am
by ESP_Sprite
I think that should be possible by calling the SOC_RESERVE_MEMORY_REGION in your C file. That macro uses Deeper Linker Shenanigans, so I *think* it should keep both the runtime allocator as well as the linked static memories out of that region, but I'm not 100% sure about the latter.
Re: How do I configure the memory map?
Posted: Sun Nov 14, 2021 1:00 pm
by hjalfi
(Sorry, never got a notification from the forum software...)
It looks like SOC_RESERVE_MEMORY_REGION only configures heap allocation, and doesn't actually modify the linker script --- I still get code mapped to the bits of SRAM0 that I need even if I reserve it all. I have a nasty feeling that I may simply not be able to do what I want with esp-idf (which is to leave the two MMU areas untouched so that I can do my own memory management there).