SWRU558 June   2020 CC3100 , CC3100MOD , CC3200 , CC3200MOD

 

  1.   SimpleLink Wi-Fi CC3100, CC3200 UniFlash
    1.     Trademarks
    2. Introduction
      1. 1.1 Overview
    3. Installation
      1. 2.1 Linux
        1. 2.1.1 Limitations
        2. 2.1.2 During Installation
        3. 2.1.3 Running UniFlash
        4. 2.1.4 C++ Dependencies
        5. 2.1.5 COM Port
        6. 2.1.6 Porting Between Windows and Linux
    4. Prerequisites
      1. 3.1 Software
      2. 3.2 Hardware
    5. Uniflash Block Diagram
    6. Session Support
      1. 5.1 Overview
      2. 5.2 Session Conversion
      3. 5.3 Creating a Session
        1. 5.3.1 Session Content
        2. 5.3.2 Creation Procedure
        3. 5.3.3 Relative Path Support
      4. 5.4 Saving a Session
      5. 5.5 Loading a Session
    7. Secured File System Support
    8. GUI Interface
      1. 7.1 Main Screen
      2. 7.2 Target Connection
      3. 7.3 Format
      4. 7.4 Get Version
      5. 7.5 File Programming
        1. 7.5.1 General
        2. 7.5.2 Non-Secured File Programming
        3. 7.5.3 Secured File Programming
      6. 7.6 Service Pack Programing
        1. 7.6.1 General
        2. 7.6.2 Procedure
      7. 7.7 Adding a New File to the Device
      8. 7.8 Erasing Existing File From the Device
      9. 7.9 Removing Existing File From the Template
    9. CC3200 Support
      1. 8.1 Overview
      2. 8.2 Configuration and Programing
    10. Command Line Support
      1. 9.1 Overview
      2. 9.2 Programming
        1. 9.2.1 Command Line Syntax
        2. 9.2.2 Help Manual
      3. 9.3 Available Options
        1. 9.3.1 Available Operations
        2. 9.3.2 Legend
        3. 9.3.3 Programming Example
    11. 10 Configuration File Support
      1. 10.1 Overview
      2. 10.2 Configuration Groups – Parameters’ Description
        1. 10.2.1 Device Role
        2. 10.2.2 Station
        3. 10.2.3 Access Point (AP)
        4. 10.2.4 Peer 2 Peer (P2P)
        5. 10.2.5 Profiles
        6. 10.2.6 HTTP Server
        7. 10.2.7 DHCP Server
        8. 10.2.8 mDNS Client
        9. 10.2.9 Smart Config
      3. 10.3 Configuration Groups – GUI Interface
        1. 10.3.1 Device Role
          1. 10.3.1.1 Restore to Default
          2. 10.3.1.2 Programming
          3. 10.3.1.3 Generation of Binary Templates
          4. 10.3.1.4 Configuration
        2. 10.3.2 Station
          1. 10.3.2.1 Restore to Default
          2. 10.3.2.2 Programming
          3. 10.3.2.3 Generation of Binary Templates
          4. 10.3.2.4 Flow
          5. 10.3.2.5 Configuration
        3. 10.3.3 Access Point (AP)
          1. 10.3.3.1 Restore to Default
          2. 10.3.3.2 Programming
          3. 10.3.3.3 Generation of Binary Templates
          4. 10.3.3.4 Flow
          5. 10.3.3.5 Configuration
        4. 10.3.4 Peer 2 Peer (P2P)
          1. 10.3.4.1 Restore to Default
          2. 10.3.4.2 Programming
          3. 10.3.4.3 Generation of Binary Templates
          4. 10.3.4.4 Flow
          5. 10.3.4.5 Configuration
        5. 10.3.5 HTTP Server
          1. 10.3.5.1 Restore to Default
          2. 10.3.5.2 Programming
          3. 10.3.5.3 Generation of Binary Templates
          4. 10.3.5.4 Flow
          5. 10.3.5.5 Configuration
        6. 10.3.6 DHCP Server
          1. 10.3.6.1 Restore to Default
          2. 10.3.6.2 Programming
          3. 10.3.6.3 Generation of Binary Templates
          4. 10.3.6.4 Flow
          5. 10.3.6.5 Configuration
        7. 10.3.7 mDNS Client
          1. 10.3.7.1 Restore to Default
          2. 10.3.7.2 Programming
          3. 10.3.7.3 Generation of Binary Templates
          4. 10.3.7.4 Adding/Deleting a Service
          5. 10.3.7.5 Flow
          6. 10.3.7.6 Configuration
        8. 10.3.8 Profiles
          1. 10.3.8.1 Restore to Default
          2. 10.3.8.2 Programming
          3. 10.3.8.3 Generation of Binary Templates
          4. 10.3.8.4 Adding/Deleting a Profile
          5. 10.3.8.5 Flow
          6. 10.3.8.6 Configuration
        9. 10.3.9 Smart Config
          1. 10.3.9.1 Restore to Default
          2. 10.3.9.2 Programming
          3. 10.3.9.3 Generation of Binary Templates
          4. 10.3.9.4 Flow
          5. 10.3.9.5 Configuration
    12. 11 Image Creation and Programming
      1. 11.1 Overview
      2. 11.2 Basic Concept and Operation
      3. 11.3 Image Creation – Supported Commands
        1. 11.3.1 Overview
        2. 11.3.2 General Settings
        3. 11.3.3 Format Storage Command
        4. 11.3.4 Write Service Pack Command
        5. 11.3.5 Write File Command
        6. 11.3.6 Write Gang Image Command
        7. 11.3.7 Start Logger Command
      4. 11.4 Image Creation – GUI Interface
        1. 11.4.1 Image Programming Summary Window
        2. 11.4.2 Image Programming Buttons
          1. 11.4.2.1 Add
          2. 11.4.2.2 Remove
          3. 11.4.2.3 Move
          4. 11.4.2.4 Program
          5. 11.4.2.5 Export
          6. 11.4.2.6 Settings
      5. 11.5 Image Programming to Target
      6. 11.6 How to Build an Image Guide
      7. 11.7 Serial Flash usage and Design
        1. 11.7.1 Overview
        2. 11.7.2 File System Guidelines
        3. 11.7.3 Memory Usage
          1. 11.7.3.1 Device Generic
          2. 11.7.3.2 Image Specific
      8. 11.8 Image Creation – Troubleshooting
    13. 12 Troubleshoot/Debugging
    14. 13 Limitations
    15. 14 References
  2.   A UART Connection
    1.     A.1 UART Connection

Programming Example

The following code illustrates a common production line operation of format → service pack update → program.

>>uniflashCLI.bat -config "c:\ti\uniflash_3.2\sessions\http_server\httpserver.usf" -setOptions com=5 spPath="C:\ti\CC31xx_CC32xx_ServicePack_1.0.0.10.0\servicepack_1.0.0.10.0.bin" -operations format servicePackUpdate program ***** Texas Instruments Universal Flash Programmer ***** > Configuring UniFlash with the following configuration: c:/ti/uniflash_3.2 /sessions/http_server/html/httpserver.usf > Device: CC31x Flash Devices > Interface: CC31x Flash Connections > Template XML: C:\ti\uniflash_3.2 \sessions\http_server\httpserver_session\templates\CC3xxx_template.xml > Token XML: C:\ti\uniflash_3.2 \sessions\http_server\httpserver_session\templates\CC3xxx_token.xml > User setting [com]: 5 > User setting [spPath]: C:/ti/CC31xx_CC32xx_ServicePack_1.0.0.10.0/servicepack_1.0.0.10.0.bin > Executing operation: format > Relevant settings: Capacity: 1MB INFO: > Executing Operation: Connect INFO: setting break signal INFO: detecting FTDI for device reset INFO: connection succeeded INFO: getting storage list INFO: > Executing Operation: Init INFO: reading version info INFO: DEVICE CC3100 ES1.33 INFO: reading version info Progress (SRAM): 16% Progress (SRAM): 24% Progress (SRAM): 41% Progress (SRAM): 57% Progress (SRAM): 65% Progress (SRAM): 82% Progress (SRAM): 98% Progress (SRAM): 100% INFO: > Executing Operation: Format INFO: Erase storage SFLASH INFO: erase storage succeeded INFO: erase storage completed > Finish Executing operation: format > Executing operation: servicePackUpdate > Relevant settings: Serivce Pack File: C:/ti/CC31xx_CC32xx_ServicePack_1.0.0.10.0/servicepack_1.0.0.10.0.bin INFO: > Executing Operation: ServicePackProgramming INFO: Path to the service pack file: C:/ti/CC31xx_CC32xx_ServicePack_1.0.0.10.0/servicepack_1.0.0.10.0.bin INFO: reading version info INFO: CC3100R Device detected. INFO: NWP/MAC/PHY Version from Service Pack: INFO: NWP Patch version: 2.4.0.2 INFO: MAC Patch version: 1.3.0.1 INFO: PHY Patch version: 1.0.3.34 INFO: Downloading file "/sys/servicepack.ucf" with size 10100 Progress (/sys/servicepack.ucf): 40% Progress (/sys/servicepack.ucf): 81% Progress (/sys/servicepack.ucf): 100% INFO: New Token is 0x2B4874A0 INFO: Download complete > Finish Executing operation: servicePackProgramming > Executing operation: program INFO: > Executing Operation: Program INFO: > File name: /sys/mcuimg.bin, Update: true, Erase: true INFO: > Erase File: /sys/mcuimg.bin INFO: erasing file "/sys/mcuimg.bin" INFO: deleting file "/sys/mcuimg.bin" INFO: erase file completed INFO: > Size of file = 37020 INFO: > Update File: /sys/mcuimg.bin INFO: Downloading file "/sys/mcuimg.bin" with size 37020 Progress (/sys/mcuimg.bin): 11% Progress (/sys/mcuimg.bin): 22% Progress (/sys/mcuimg.bin): 33% Progress (/sys/mcuimg.bin): 44% Progress (/sys/mcuimg.bin): 55% Progress (/sys/mcuimg.bin): 66% Progress (/sys/mcuimg.bin): 77% Progress (/sys/mcuimg.bin): 88% Progress (/sys/mcuimg.bin): 99% Progress (/sys/mcuimg.bin): 100% INFO: New Token is 0x0 INFO: Download complete INFO: Verifying Data... INFO: get file Progress (/sys/mcuimg.bin): 11% Progress (/sys/mcuimg.bin): 22% Progress (/sys/mcuimg.bin): 33% Progress (/sys/mcuimg.bin): 44% Progress (/sys/mcuimg.bin): 55% Progress (/sys/mcuimg.bin): 66% Progress (/sys/mcuimg.bin): 77% Progress (/sys/mcuimg.bin): 88% Progress (/sys/mcuimg.bin): 99% Progress (/sys/mcuimg.bin): 100% INFO: Done. Reading 37020 bytes INFO: Verification OK INFO: > Updated Token value: 0x0 INFO: > File name: /cert/ca.pem, Update: false, Erase: false INFO: > File name: /cert/client.pem, Update: false, Erase: false INFO: > File name: /cert/private.key, Update: false, Erase: false INFO: > File name: /sys/macadd.bin, Update: true, Erase: false INFO: > Size of file = 6 INFO: > Update File: /sys/macadd.bin INFO: Downloading file "/sys/macadd.bin" with size 6 Progress (/sys/macadd.bin): 100% INFO: New Token is 0x0 INFO: Download complete INFO: Verifying Data... INFO: get file Progress (/sys/macadd.bin): 100% INFO: Done. Reading 6 bytes INFO: Verification OK INFO: > Updated Token value: 0x0 INFO: > File name: /sys/mode.cfg, Update: true, Erase: false INFO: > Size of file = 80 INFO: > Update File: /sys/mode.cfg INFO: Downloading file "/sys/mode.cfg" with size 80 Progress (/sys/mode.cfg): 100% INFO: New Token is 0x0 INFO: Download complete INFO: Verifying Data... INFO: get file Progress (/sys/mode.cfg): 100% INFO: Done. Reading 80 bytes INFO: Verification OK INFO: > Updated Token value: 0x0 INFO: > File name: /sys/ipcfg.ini, Update: true, Erase: false INFO: > Size of file = 200 INFO: > Update File: /sys/ipcfg.ini INFO: Downloading file "/sys/ipcfg.ini" with size 200 Progress (/sys/ipcfg.ini): 100% INFO: New Token is 0x0 INFO: Download complete INFO: Verifying Data... INFO: get file Progress (/sys/ipcfg.ini): 100% INFO: Done. Reading 200 bytes INFO: Verification OK INFO: > Updated Token value: 0x0 INFO: > File name: /sys/ap.cfg, Update: false, Erase: false INFO: > File name: /sys/devname.cfg, Update: false, Erase: false INFO: > File name: /sys/mdns.cfg, Update: false, Erase: false INFO: > File name: /sys/dhcpsrv.cfg, Update: false, Erase: false INFO: > File name: /sys/httpsrv.cfg, Update: false, Erase: false INFO: > File name: /sys/pref.net, Update: false, Erase: false INFO: > File name: /sys/smartconfigkeys.cfg, Update: false, Erase: false INFO: > File name: /sys/stacfg.ini, Update: true, Erase: false INFO: > Size of file = 104 INFO: > Update File: /sys/stacfg.ini INFO: Downloading file "/sys/stacfg.ini" with size 104 Progress (/sys/stacfg.ini): 100% INFO: New Token is 0x0 INFO: Download complete INFO: Verifying Data... INFO: get file Progress (/sys/stacfg.ini): 100% INFO: Done. Reading 104 bytes INFO: Verification OK INFO: > Updated Token value: 0x0 INFO: > File name: /sys/p2p.cfg, Update: false, Erase: false INFO: > File name: /sys/pmcfg.ini, Update: true, Erase: false INFO: > Size of file = 10 INFO: > Update File: /sys/pmcfg.ini INFO: Downloading file "/sys/pmcfg.ini" with size 10 Progress (/sys/pmcfg.ini): 100% INFO: New Token is 0x0 INFO: Download complete INFO: Verifying Data... INFO: get file Progress (/sys/pmcfg.ini): 100% INFO: Done. Reading 10 bytes INFO: Verification OK INFO: > Updated Token value: 0x0 INFO: > File name: www/main.html, Update: true, Erase: true INFO: > Erase File: www/main.html INFO: erasing file "www/main.html" INFO: deleting file "www/main.html" INFO: erase file completed INFO: > Size of file = 2714 INFO: > Update File: www/main.html INFO: Downloading file "www/main.html" with size 2714 Progress (www/main.html): 100% INFO: New Token is 0x0 INFO: Download complete INFO: Verifying Data... INFO: get file Progress (www/main.html): 100% INFO: Done. Reading 2714 bytes INFO: Verification OK INFO: > Updated Token value: 0x0 INFO: > File name: www/led_demo.html, Update: true, Erase: true INFO: > Erase File: www/led_demo.html INFO: erasing file "www/led_demo.html" INFO: deleting file "www/led_demo.html" INFO: erase file completed INFO: > Size of file = 2573 INFO: > Update File: www/led_demo.html INFO: Downloading file "www/led_demo.html" with size 2573 Progress (www/led_demo.html): 100% INFO: New Token is 0x0 INFO: Download complete INFO: Verifying Data... INFO: get file Progress (www/led_demo.html): 100% INFO: Done. Reading 2573 bytes INFO: Verification OK INFO: > Updated Token value: 0x0 INFO: > File name: www/images/demo-lightswitch.jpg, Update: true, Erase: true INFO: > Erase File: www/images/demo-lightswitch.jpg INFO: erasing file "www/images/demo-lightswitch.jpg" INFO: deleting file "www/images/demo-lightswitch.jpg" INFO: erase file completed INFO: > Size of file = 2404 INFO: > Update File: www/images/demo-lightswitch.jpg INFO: Downloading file "www/images/demo-lightswitch.jpg" with size 2404 Progress (www/images/demo-lightswitch.jpg): 100% INFO: New Token is 0x0 INFO: Download complete INFO: Verifying Data... INFO: get file Progress (www/images/demo-lightswitch.jpg): 100% INFO: Done. Reading 2404 bytes INFO: Verification OK INFO: > Updated Token value: 0x0 > Finish Executing operation: program INFO: > Executing Operation: Disconnect <End of command>