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.

a question about serial flash space with cc3200

Other Parts Discussed in Thread: UNIFLASH, CC3200

Hi,

    Can you tell me how can i get the information about serial flash .I want to know how much space can i use ,how much space has been used?

  • The file system of the serial flash does not have the capability of telling you how much space remains. You will need to carefully plan all this by looking at the size of all the files you have installed, including the service pack.

    Additional information can be found by searching this forum, as this and other important aspects of the serial flash have been discussed in depth.

    You can also find out more here - www.ti.com/.../detailed_description

    Glenn.
  • Hi,

        I have look at the file.There is a form.

        

    1. If i use uniflash program the flash. I am not  select Mode-Secured , the typical is fail-safe or Nonfail-save?

    2. "File system" "service pack" "system and configuration file" "mcu code" are must be exist.

    3. I have looked at the service pack (servicepack_1.0.0.1.1) and it is 1078KB. In flash it is only 112KB?

  • 1. Secure is fail-safe.
    2. Yes. Though you may not have system and configuration file.
    3. No. This was for previous service pack or just an example.

    You need to look at this table as an example on how you would do things with your setup. This table and its sizes are not correct for all setups.

    Glenn.
  • hello Glenn,
    I have used 3200 for my production.I used 1M flash.
    Now I set the maxsize 256KB of mcuimg.bin.
    And there are 140KB flash for html file,
    And use servicepack_1.0.0.1.1.bin(1078KB).
    The mode of all these is not secured.

    I want to know how much space are remained ? And how much space can i use for other things.
  • I see your point, the service pack could not be 1078kb when installed on the serial flash, as it would take up all space. So it must be compressed during the installation process.

    I am not in a position to test right now, but try installing the service pack with UniFlash, I believe it shows you the size of the file during this process.

    Glenn.
  • Downloading file "/sys/servicepack.ucf" with size 6100 ?

    it is mean what?

  • Not sure, it could not mean KB....so may mean bytes. But this may not be for the entire service pack.

    Perhaps someone from TI can help explain the situation in greater detail.

    Till then, I recommend you search this forum, as I believe this has been discussed previously.

    Glenn.
  • Hi,

    Let me clarify all your doubts.

    6100 is the size in bytes. The ServicePack is ~1MB since it includes firmware for both, production and pre-production devices.

    Since you are using a production device, the ServicePack is just a collection of patches. Relatively small in size.

    However, since the allocated size of a file is configured only upon creation, you want to allocate the maximum size the file may occupy.

    For ServicePack, it is 256KB (128KB * 2 for the fail-safe).

    To summarize, ServicePack would consume 256KB of your flash.

    Additionally, "system and configuration file" and also "mcu code" for CC3200 are must. The MCU image is for sure must as you would not be able to execute anything if you don't have it. Regarding configuration files, these may be created during device operation depanding on the use case and setup. For example, if you are adding profiles, setting the IP address as static, create mDNS services, etc, all these are part of the system files that would consume space on the flash.

    Lastly, please note that the minimum memory granularity is a block, i.e. 4KB. So every file, even if it is few bytes long would consume at least 4KB. So when calculating the memory capacity please take it into account.

    Regards,

    Shlomi

  • Hi,

    Did the above post answer your query? please verify the answer.

    Shlomi

  • Sorry to append to this thread...but seemed appropriate at the moment.

    Is there any way to determine how much sFLASH is consumed by say:

    1) Setting a profile (or multiple profiles)

    2) Storing a certificate (I can read the output of Uniflash but is that accurate in terms of blocks???)

    3) sl_ commands that write to a file??

    I have on at least one occassion seen an error code suggesting that I ran out of sFLASH during an sl write to file. 

    I'm assuming all of the above are consuming the system and configuration allocation...

    What method or forumla would you suggest to monitor my flash utilization in real-time?

    Thanks,

    Dave 

  • David,

    There is no way to determine the free/occupied space.

    However, you can follow the rules below if you would like to try monitoring it:

    1. Configuration files: these would apply to profiles as well as to all other configuration files such as IP address, mDNS, HTTP server, P2P, AP, etc.The rule of thumb for these would be as follows:
      1. most of the configuration files consume 1 block (i.e. 4KB)
      2. Smart Config keys consume 2 blocks (as it is secured, thus with rollback option)
      3. Profiles consume 4 blocks (as it is secured, thus with rollback option)
    2. Certificate or any use file: just divide it by 4KB to determine the number of blocks. Any residue would consume one additional block. It you have the rollback option, you need to multiply everything by 2.

    Shlomi

  • Hi,

    I am closing the original thread, if issue still exist please open a new thread and add a link to this one for reference.

    David, if it doesn't answer your post, please open a new thread for better tracking.

    Regards,

    Shlomi

  • Hi Shlomi,
    Is this error mean SL_FS_ERR_NO_AVAILABLE_BLOCKS (-30), there is no space available in SFLASH ?

    Thanks,

    Thanga Raj

  • Exactly Raj, you are out of space on the serial flash.

    Shlomi

  • Hi Shomly,
    Thanks for your Confirmation..