This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3235MODSF: How to get the real available sFlash size

Part Number: CC3235MODSF
Other Parts Discussed in Thread: UNIFLASH

Dear Champs,

When using UniFlash, we could see below device status.

When we used sl_FsGetFileList() to get the file list and then summarized the used size, we also got the result of unused size. 

But both results always do not match.

Does any one know the reason? Which value is the real used and available sFlash size?

If you have any suggestions, please feel free to let me know.

Thanks a lot.

  • Hi Janet,

    For get current value at runtime you should use sl_ API call. Uniflash shows available space according some estimated for reserved files and uploaded user files. For detail information about used free blocks at initial .UCF image you can get from Uniflash CLI, e.g.:

    Block size is 4096 bytes.
    Configured Storage size is 1024 blocks.
    
    
    Total size of image( 218 blocks )
            Total size of user files after extraction( 428 blocks )
            Total size of FileSystem( 5 blocks )
    
            Total System files after extraction(includes reserved space for system files)( 366 blocks )
                    Total reserved for system files ( 366 blocks )
                            Service pack after extraction size ( 66 blocks )
                            Application code  after extraction size ( 258 blocks )
                            Kept for system files ( 32 blocks )
                            Kept for calibration ( 8 blocks )
                    System files after extraction size (includes the service-pack) ( 342 blocks )
            Reserved size for the Image (includes image protecting) ( 0 blocks )
             ==> After the extraction the set will require total size of 799 blocks.<==
             ==> During the extraction process the set will require total size of 1017 blocks.<==

    How Uniflash calculate used space you can get from Python code of Uniflash.

    Jan

  • Some block are reserved as Jan put it. To add to what Jan said, sl_FsCtl API will also tell you more details like reserved blocks (for user and system files) etc...

    Jesu

  • Dear Jan,

    Thanks for your  suggestions.

    I tried to use UniFlash CLI to list the information like you show but have no idea to implement.

    There are my testing steps:

    1. uniflash_6.1.0\dslite.bat

    2. dslite --mode memory -o --config=ccxml-file --range=address,length --output=output-file

    Because I am not familiar with CLI, could you kindly share more detail about the CLI command?

    Thanks a lot.

  • Hi Janet ,

    Output above is from Uniflash CLI when *.ucf fie (file for embedded programming) is created. But same results you can get from Unfilash GUI when you execute file \simplelink\imagecreator\SLImageCreator.exe.

    Jan