SWRU473A February   2017  – August 2018 CC3120MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF

 

  1.   SimpleLinkrep%#8482; Wi-Fi® CC3220 Out-of-Box Application
    1.     Trademarks
    2. 1 Introduction
    3. 2 Download and Installation
    4. 3 Installation for Basic Users
      1. 3.1 UniFlash
      2. 3.2 SimpleLink™ Wi-Fi® Starter Pro Mobile Application
      3. 3.3 Serial Terminal
      4. 3.4 XDS110 Driver Installation
    5. 4 Building the Setup
    6. 5 Flashing the Out-of-Box Project
    7. 6 Getting Started With the OOB Demonstration
      1. 6.1 Connecting to the CC3220
        1. 6.1.1 CC3220 Provisioning
        2. 6.1.2 CC3220 as AP
      2. 6.2 Browse Onboard Website
        1. 6.2.1 Local Network Demo
        2. 6.2.2 OTA Update
        3. 6.2.3 Advanced Settings
      3. 6.3 Using the Mobile Application
        1. 6.3.1 Connect to the CC3220
        2. 6.3.2 Local Network Demo
        3. 6.3.3 OTA Update
          1. 6.3.3.1 Local OTA When CC3220 is in AP Mode
      4. 6.4 Returning to Factory Image
    8. 7 Troubleshooting
      1. 7.1 Red LED Legend
      2. 7.2 Extra Debugging
      3. 7.3 Terminal Messages
    9. 8 Limitations and Known Issues
    10. 9 Out-of-Box for Advance Users
      1. 9.1 Installations for Advance Users
        1. 9.1.1 CC3220 Software Development Kit (SDK)
        2. 9.1.2 Service Pack
        3. 9.1.3 CCS IDE
          1. 9.1.3.1 Add CCS Support for FreeRTOSv9
          2. 9.1.3.2 Product Settings Verification
      2. 9.2 Source Files Briefly Explained
      3. 9.3 Building the OOB Project Using CCS
        1. 9.3.1 Executing in Debug Mode
        2. 9.3.2 Program a User Modified OOB Binary
  2.   Revision History

Flashing the Out-of-Box Project

The CC3220 LaunchPad comes with all the required content flashed to run the application. If the device has never been used and just came out of the box, the following steps are not necessary. If users have already flashed other SDK applications and need to reprogram the OOB content.

Because the OOB project is set in development mode (not production mode), the project matches a specific device MAC address. The image can be set to a new device MAC address through the GUI or through the command line (CLI). If users try to flash the image as is, the error shown in Figure 11 will appear.

CC3220_uniflash_mac_error_SWRU473.pngFigure 11. UniFlash MAC Address Error

Using the GUI, perform the following steps.

  1. Ensure the setup is built according to Section 4. Jumpers setting must be positioned as in Figure 9.
  2. Ensure no other utility uses the XDS110 COM port(1). (1)
  3. Open the UniFlash utility to program the OOB image.
  4. Choose the CC3120/CC3220 device and then click the Start Image Creator button (see Figure 12).
  5. Uniflash_choose_CC3120_CC3220_device.pngFigure 12. UniFlash – Choose CC3120 / CC3220 Device
  6. Click the Manage Projects button and then click the Import project from ZIP file button. Locate the OOB image according to the connected CC3220 and the desired OS (freertos or tirtos). Already imported projects shall appear on the list of available projects.
  7. For CC3220S secured device:

    • <SDK install dir> \examples\rtos\CC3220S_LAUNCHXL\demos\out_of_box\uniflash\OOB_RS_tirtos.zip
    • <SDK install dir> \examples\rtos\CC3220S_LAUNCHXL\demos\out_of_box\uniflash\OOB_RS_freertos.zip

    For CC3220SF secured device:

    • <SDK install dir> \examples\rtos\CC3220SF_LAUNCHXL\demos\out_of_box\uniflash\OOB_SF_tirtos.zip
    • <SDK install dir> \examples\rtos\CC3220SF_LAUNCHXL\demos\out_of_box\uniflash\OOB_SF_freertos.zip

  8. Navigate to General → Settings (see Figure 13) by using the left-side navigation panel and ensure that the image mode is set to Development.
  9. Ensure the CC3220 LaunchPad is connected and click the Connect button. Users can see the device information of the connected device by using the MAC address; this is important because the development mode is matched to the MAC address of the device.
  10. uniflash_general_settings_SWRU472.pngFigure 13. UniFlash General → Settings
  11. Ensure the Use device MAC address option is selected (see Figure 13) and that the MAC address appear on the top.
  12. Save the project and click on the Generate Image icon (see Figure 14).
  13. Click the Program Image button (see Figure 14). The image is now programmed to the device.
  14. Uniflash_generate_program_image.pngFigure 14. Program Image and Generate Image

If using the CLI, perform the following steps.

  1. Import the OOB project (detailed in the previous steps 1 through 5). This step is required at least once so the project is imported into the UniFlash workspace.
  2. Open a Windows command prompt and navigate to the UniFlash command line directory (UniFlash install directory where dslite.bat is located).
  3. Invoke the following command.
  4. For the CC3220SF device:

    • dslite.bat --mode cc3220 project program --name OOB_SF --port com5 –dev

    For the CC3220R and CC3220S devices:

    1. dslite.bat --mode cc3220 project program --name OOB_RS --port com5 –dev

    NOTE

    com5 is an example. Users must modify the COM port according to the assigned COM port.

    Programming is considered successful is all progress bars indicate 100% and the command returns without errors. Users must reset the board at the end so the programmed image is executed.

(1) Code Composer Studio (CCS) can create a conflict in the serial port preventing the communication with Image Creator. In this case, CCS should be closed.