After the image is copied to the RAM, the remaining memory is divided into storage and program memory. The division ratio can be temporarily changed in the system properties (start->settings->control panel->system properties->memory).
The default Windows CE implementation doesn't save this configuration, this means it is lost after a reboot. However, the Toradex BSP supports to set the memory division at boot time.
The minimum size for the object store is 32 KB and the maximum size is 128 MB.
The launcher tool which is part of the Toradex BSP is able to set a predefined memory division ratio. You can set the memory division in the registry. This feature is available in Colibri PXA BSP V3.6 beta1 and onwards and in all Colibri Txx and Apalis Txx BSP versions.
[HKLM\SOFTWARE\Toradex\Launcher] "StorageMemory" =DWORD:32 ;Sets the percentage of memory used as Object Store.
If you need to change this settings permanently, you can change memory ratio directly in your end user application or write a small application and place it in the AutoRun folder. You can also use this approach if using the Colibri PXA BSP prior to V3.6 beta1.
DWORD dwStoragePages,dwRamPages,dwPageSize; GetSystemMemoryDivision(&dwStoragePages, &dwRamPages, &dwPageSize); SetSystemMemoryDivision(dwStoragePages);
You can find more information about this functions in Microsoft's Win CE help.