Stack&Heap vs IRAM&DRAM
Posted: Thu Mar 22, 2018 11:26 am
Hi ESP-IDF,
I wanna know how to understand these two type of concepts like the title described.
I do know what is stack and heap, and other parts like the following images drawn. But if I read the docu about Heap Memory Allocation, IRAM and DRAM jumped out.
In my understanderation, the difference between them is: Stack&Heap are on the Software Abstraction level and IRAM&DRAM(&RAM) are on the Hardware Abstraction level. That means, the concept in second group are hardware difference. And they are not changeable.
Am I right? If I'd wanna log out IRAM/DRAM usage, is there any API to call?
LG
Gfast2
I wanna know how to understand these two type of concepts like the title described.
I do know what is stack and heap, and other parts like the following images drawn. But if I read the docu about Heap Memory Allocation, IRAM and DRAM jumped out.
In my understanderation, the difference between them is: Stack&Heap are on the Software Abstraction level and IRAM&DRAM(&RAM) are on the Hardware Abstraction level. That means, the concept in second group are hardware difference. And they are not changeable.
Am I right? If I'd wanna log out IRAM/DRAM usage, is there any API to call?
LG
Gfast2