SWRA657 June   2020 CC3100 , CC3200

 

  1.   SimpleLink Wi-Fi CC3100, CC3200 Serial Flash
    1.     Trademarks
    2. Introduction
    3. How File System Content Gets to the Serial Flash
    4. File System Guidelines
    5. User File Mathematics
    6. System and Configuration Files
      1. 5.1 Description
      2. 5.2 Memory Consumption
        1. 5.2.1 CC3200 Use Case
        2. 5.2.2 Host Driver Mapping
        3. 5.2.3 Minimum Flash Size
    7. Implementing File System Features From Host Processor
      1. 6.1 Overview
      2. 6.2 File Listing
        1. 6.2.1 Requirements
        2. 6.2.2 Procedure
      3. 6.3 Free/Occupied Space
        1. 6.3.1 Requirements
        2. 6.3.2 Procedure
      4. 6.4 File Appending
        1. 6.4.1 Requirements
        2. 6.4.2 Procedure
    8. Factors to Consider in Designing With Serial Flash
      1. 7.1 Serial Flash Vendor and Part Number Selection
      2. 7.2 Supported Flash Types
      3. 7.3 Frequent Write Operations
        1. 7.3.1 Serial Flash Access by the Wi-Fi System"
        2. 7.3.2 Seral Flash Access by the WiFi System
          1. 7.3.2.1 System Files
          2. 7.3.2.2 User Files
      4. 7.4 Sudden Power Off (power removal during a write/erase phase)
        1. 7.4.1 Battery Powered Systems
        2. 7.4.2 Line Powered Systems
    9. Design Recommendations for Ensuring the Integrity of the Power Supply to the Serial Flash
      1. 8.1 Overview
      2. 8.2 Key Points
      3. 8.3 Brown-Out Mitigation Techniques for New Self-Hosted CC3200 Designs
    10. Recommended Best Practices
    11. 10 Implications of Data Integrity Compromise to CC3100/CC3200
      1. 10.1 Recovery
    12. 11 References

Host Driver Mapping

As described earlier, some files are created internally and some can also be created implicitly by invoking host driver APIs.

It is mandatory to understand the mapping so you are able to design your memory budget such that enough space is preserved for all required system/configuration components.

Table 6. Host Driver File Mapping

Filename/Artifact Created by API() When Exiting Write Period No
Blocks
FAT N/A When Exit Reset
When Exit HIB
At format After every file write or deletion
Every Added/Remove File
3
Reserved blocks N/A N/A N/A 2
/sys/mcuimg.bin Refer to OTA When Exit Reset
When Exit HIB
When updating APP OTA dependent
/sys/servicepack.ucf Refer to OTA. sl_FsOpen(),sl_FsWrite() and sl_FsClose() When Exit Reset
When Exit HIB
User Initiated 66
/tmp/phy.cal N/A When Exit Reset
When Exit HIB
At least once, Upon temperature change when coming out of hibernate or upon power cycle 10
/tmp/fcon.frm sl_WlanConnect() Upon successful AP connection When AP changes 2
sl_WlanProfileAdd()
sl_WlanSmartConfigStart()
/tmp/fcon.ssid sl_WlanConnect() Upon successful AP connection When AP changes 2
sl_WlanProfileAdd()
sl_WlanSmartConfigStart()
/tmp/table.arp N/A Upon successful AP connection ARP response to the device IP address 2
/sys/date_time.cfg sl_DevSet(SL_DEVICE_GENERAL_CONFIGURATION, SL_DEVICE_GENERAL_CONFIGURATION_DATE_TIME, …) When Exit Reset
When Exit HIB
User Initiated
User Initiated 2
/sys/rxfltr.ini sl_WlanRxFilterAdd() with sl_WlanRxFilterSet(SL_ENABLE_DISABLE_RX_FILTER,…) When Exit Reset
When Exit HIB
User Initiated
User Initiated 2
/sys/infoele.cfg sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID,WLAN_GENERAL_PARAM_OPT_INFO_ELEMENT,…) When Exit Reset
When Exit HIB
User Initiated
User Initiated 2
/sys/macadd.bin sl_NetCfgSet(SL_MAC_ADDRESS_SET,…) When Exit Reset
When Exit HIB
User Initiated
User Initiated 2
/sys/stacfg.ini sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID, WLAN_GENERAL_PARAM_OPT_SCAN_PARAMS,…) When Exit Reset
When Exit HIB
User Initiated
User Initiated 2
sl_WlanPolicySet(SL_POLICY_CONNECTION, SL_CONNECTION_POLICY(),…)
sl_WlanPolicySet(SL_POLICY_P2P, SL_P2P_POLICY(),…)
sl_WlanPolicySet(SL_POLICY_SCAN,SL_SCAN_ENABLE,…)
/sys/ap.cfg sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_SSID,… When Exit Reset
When Exit HIB
User Initiated
User Initiated 2
sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_CHANNEL,…)
sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_HIDDEN_SSID,…)
sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_SECURITY_TYPE,…)
sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_PASSWORD,…)
/sys/p2p.cfg sl_WlanSet(SL_WLAN_CFG_P2P_PARAM_ID, WLAN_P2P_OPT_DEV_TYPE,…) When Exit Reset
When Exit HIB
User Initiated
User Initiated 2
sl_WlanSet(SL_WLAN_CFG_P2P_PARAM_ID, WLAN_P2P_OPT_CHANNEL_N_REGS,…)
/sys/mode.cfg sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID, WLAN_GENERAL_PARAM_OPT_STA_TX_POWER,…) When Exit Reset
When Exit HIB
User Initiated
User Initiated 2
sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID, WLAN_GENERAL_PARAM_OPT_AP_TX_POWER,…)
sl_WlanSetMode()
sl_EventMaskSet()
sl_NetAppStart()
sl_NetAppStop()
/sys/pref.net sl_WlanProfileAdd() When Exit Reset
When Exit HIB
User Initiated
User Initiated 2
sl_WlanProfileDel()
/sys/pmcfg.ini sl_WlanPolicySet(SL_POLICY_PM,…) When Exit Reset
When Exit HIB
User Initiated
User Initiated 4
/sys/ipcfg.ini sl_NetCfgSet(SL_IPV4_STA_P2P_CL_STATIC_ENABLE,IPCONFIG_MODE_ENABLE_IPV4,…) When Exit Reset
When Exit HIB
User Initiated
User Initiated 2
sl_NetCfgSet(SL_IPV4_STA_P2P_CL_DHCP_ENABLE,IPCONFIG_MODE_ENABLE_IPV4,…)
sl_NetCfgSet(SL_IPV4_AP_P2P_GO_STATIC_ENABLE,IPCONFIG_MODE_ENABLE_IPV4,…)
/sys/devname.cfg sl_NetAppSet (SL_NET_APP_DEVICE_CONFIG_ID,…) When Exit Reset
When Exit HIB
User Initiated
User Initiated 2
/sys/dhcpsrv.cfg sl_NetAppSet(SL_NET_APP_DHCP_SERVER_ID,…) When Exit Reset
When Exit HIB
User Initiated
User Initiated 2
/sys/httpsrv.cfg sl_NetAppSet(SL_NET_APP_HTTP_SERVER_ID,…) When Exit Reset
When Exit HIB
User Initiated
User Initiated 2
/sys/mdns.cfg sl_NetAppSet(SL_NET_APP_MDNS_ID,…) When Exit Reset
When Exit HIB
User Initiated
User Initiated 2
sl_NetAppMDNSRegisterService()
sl_NetAppMDNSUnRegisterService()
/sys/smartconfigkeys.cfg Creation via Uniflash only When Exit Reset
When Exit HIB
User Initiated
User Initiated 2
Invocation via sl_WlanSmartConfigStart()