none
Wince Storage and Program Memory contains which section of reservation from config.bib file? RRS feed

  • Question

  • Hello friends,

    I am clear about the concept of Storage and Program memory from theoratical point of view but I have a doubt from the practical point of view. In wince I can see RAM memory as -

    RAM Size - (Reserved Memoery + Nk SIZE + DISPLAY MEMORY)  + unsed memory of NK

    Eg my configuration is 

    RAM SIZE - 256 MB

    RESERVED MEMORY - 26 MB

    NK SIZE IS  - 66MB

    DISPLAY MEMORY - 40 MB

    UNUSED MEMORY OF NK - 10MB

    And RAM Size I am getting as 256 - (26+66+40) + 10 = 114MB (Program + Storage memory)

    Which things belong to Storage Memory and which things belongs to Storage Memoery?????????????????????

    Wednesday, September 3, 2014 11:42 AM

All replies

  • Check for FSRAMPERCENT in config.bib.  It will indicate the percentage of RAM allocated for Storage (i.e. RAM filesystem).

    FSRAMPERCENT =  A 4-byte hexadecimal number.

        Each byte represents the number of 4-KB blocks per MB allocated for the file system, as follows:

        byte 0 = # of 4-KB blocks per MB in the first two MB

        byte 1 = # of 4-KB blocks per MB in the second two MB

        byte 2 = # of 4-KB blocks per MB in the third two MB

        byte 3 = # of 4-KB blocks per MB in the remaining memory

    For example, FSRAMPERCENT=0x80808080 specifies 50 percent of RAM allocated to the file system.



    Wednesday, September 3, 2014 12:17 PM
  • Yes I have seen this thing in config.bib as -

    FSRAMPERCENT=0x0A0A0A0A

    Can you elborate the concept with above value and my below configurations as shown below-

    RAM_DISK_SIZE - 5 MB

    DRIVERS RESERVED MEMORY - 16 MB

    NK SIZE IS  - 44MB

    DISPLAY MEMORY - 20 MB

    UNUSED MEMORY OF NK - 3MB

    Now, I am getting 34 MB of visible RAM in my WINCE Device. Can you explain the concept with above parameter so that at last I can get 34 MB...??????????

    Wednesday, September 3, 2014 12:30 PM
  • It should be easier for me to figure it out if you sent the actual config.bib

    I will guess from the incomplete info you send...

    RAM size should be 256 MB - 44MB - 29MB - 16MB = 167 MB

    FSRAMPERCENT=0x0A0A0A0A

    10 x 4 KB x 2 = 80 KB in first two MB

    10 x 4 KB x 2 = 80 KB in second two MB

    10 x 4 KB x 2 = 80KB in third two MB

    10 x 4 KB x 161 = 6440 KB in remaining memory.

    You should see 6.5 MB of storage.  The remaining should be RAM.


    Wednesday, September 3, 2014 12:57 PM
  • Sorry boss, the calculation is wrong from your side..

    Please use this value 

    128 - (44+20+16+3(unused space for NK)) = 45 MB

    and 

    FSRAMPERCENT=0x0A0A0A0A

    But I can see 17MB(approx) of storage and

    17 MB(approx) of program memory

    and total memory on device what I can see is 34 MB

    Wednesday, September 3, 2014 1:05 PM
  • Are you sure that FSRAMPERCENT is actually defined ?  If not, the default percentage is 50% allocated to the file system, which seems roughly to be the case here...

    Check ce.bib in your Release directory to see if FSRAMPERCENT is defined.

    Wednesday, September 3, 2014 1:10 PM
  • Yes, it is correctly defined in the config .bib file and all items are shown below -

    #define IMAGE_WINCE_RAM_DISK_SIZE_HEX     500000   //5 MB 10 MB
    #define IMAGE_WINCE_CODE_SIZE           0x2C00000 // 44 MB //0x2800000  //40 MB
    #define IMAGE_WINCE_RAM_SIZE            0x2B00000  //43 MB  40 MB
    #define IMAGE_WINCE_DISPLAY_TOTAL_SIZE  0x1400000 //20 MB //0x1000000  //16 MB + 16 MB (Reserved) TOTAL = 128 MB

    FSRAMPERCENT=0x0A0A0A0A

     AUTOSIZE=ON


    Wednesday, September 3, 2014 1:14 PM
  • Can you post the entire content of config.bib?


    Wednesday, September 3, 2014 1:15 PM