Confusion On Memory For Programming?
Posted: Fri Feb 09, 2018 2:37 pm
I looked around and I get confused on what memory is used for what. I've been programming using the Arduino IDE and have programmed the ESP8266 and ESP32 devices. Of course the specs for each development board is a bit different. But assuming the ESP-WROOM-32 specs. It talks about ROM, on-chip SRAM, fast and slow memory, external flash and SRAM.
Other than relying on board selection to assume what memory is on the board I have no idea if it's right or not. I don't know if there is some way to sort this out as to what can be used as Arduino programming space and what can only be used a pure data if there is a difference. Let's just use the ESP-WROOM-32.
I did try to look around to find some code I could run that might tell me how much memory is available. But again I assume all they're doing is taking what the board definitions say it's supposed to have and basically just calculating how much space code and data space is used and subtracting from that.
So, how much space is there on the WROOM-32 for my Arduino code? I know I saw somewhere the specs on how much the bootloader takes up. Is the board definitions good enough to rely on or is there code that could validate how much memory is installed?
I've been looking at this device:
ESP32 Development Board 32 or 12KB Flash
and wondering if all that memory is really available for program space or some portion of it only for like data logging only?
It's not a critical issue but just hoping to find something that might help me keep all the memory types and how they are used straight maybe.
Thanks
Michael
Other than relying on board selection to assume what memory is on the board I have no idea if it's right or not. I don't know if there is some way to sort this out as to what can be used as Arduino programming space and what can only be used a pure data if there is a difference. Let's just use the ESP-WROOM-32.
I did try to look around to find some code I could run that might tell me how much memory is available. But again I assume all they're doing is taking what the board definitions say it's supposed to have and basically just calculating how much space code and data space is used and subtracting from that.
So, how much space is there on the WROOM-32 for my Arduino code? I know I saw somewhere the specs on how much the bootloader takes up. Is the board definitions good enough to rely on or is there code that could validate how much memory is installed?
I've been looking at this device:
ESP32 Development Board 32 or 12KB Flash
and wondering if all that memory is really available for program space or some portion of it only for like data logging only?
It's not a critical issue but just hoping to find something that might help me keep all the memory types and how they are used straight maybe.
Thanks
Michael