Gecko OS App Memory Sections
There are various memory sections of which a programmer must be aware when writing an App.
At the highest level there are three memory types:
MCU Internal Flash
- This is where the app executable and read-only code resides
- Gecko OS also executes from this memory
MCU RAM
- This is where the application thread's stack and global data structures reside
- Gecko OS also uses this for global data structures
- An App may dynamically allocate additional RAM using malloc()
Extended Flash
- This is where the App bundles files (e.g. webpages, log files, etc) reside
- Gecko OS also uses this for sys/wifi_fw.bin and sys/safemode.bin needed for Wi-Fi functionality and fault recovery
The following diagram shows memory layout: