SWRU467A February   2017  – June 2018 CC3120

 

  1.   CC3120 SimpleLink™ Wi-Fi® Internet-on-a chip™ Solution SDK Getting Started Guide
    1.     Trademarks
    2. 1 Introduction
    3. 2 Prerequisites
      1. 2.1 Hardware
      2. 2.2 Software Installation
    4. 3 Board Configuration
      1. 3.1 Board Setup For Programming
      2. 3.2 Board Setup With An External MCU
    5. 4 Programming the CC3120 BoosterPack™
    6. 5 Getting Started With the MSP-EXP432P401R LaunchPad™
      1. 5.1 Connecting the CC3120BOOST or BOOSTXL-CC3120MOD Board With the MSP-EXP432P401R Board
      2. 5.2 Terminal Setting
      3. 5.3 SDK Installation
      4. 5.4 Setting Up Code Composer Studio™
        1. 5.4.1 CCS™ Installation
        2. 5.4.2 Post Code Composer Studio™ Installation Setup
        3. 5.4.3 Importing network_terminal Example in Code Composer Studio™
        4. 5.4.4 Compiling and Debugging the Project in Code Composer Studio™
      5. 5.5 Setting Up IAR Embedded Workbench® for ARM
        1. 5.5.1 IAR Installation
        2. 5.5.2 Post IAR Installation Setup
        3. 5.5.3 Importing the network_terminal Example in IAR
        4. 5.5.4 Compiling and Debugging the Project in IAR
    7. 6 Getting Started With SimpleLink™ Studio
      1. 6.1 Visual Studio Installation
      2. 6.2 Importing network_terminal Example in Visual Studio
      3. 6.3 Compiling and Debugging the Project in Visual Studio
  2.   Revision History

Importing the network_terminal Example in IAR

Before importing any example to IAR, building the kernel is required.

First, installation paths must be updated. Edit imports.mak on the top-level directory of the MSP432 SDK and adjust the locations of the compiler tools as well as the FreeRTOS and XDCtools installation paths (see Figure 24). XDCTools installation is included in the SimpleLink MSP432 Wi-Fi plug-in.

IAR_update_variables.gifFigure 24. IAR Update Variables

To build the kernel, follow this procedure:

  1. To work with FreeRTOS, copy and replace FreeRTOSConfig.h from the Wi-Fi plug-in <SDK install dir\kernel\freertos\builds\MSP_EXP432P401R\release\FreeRTOSConfig.h> into the <MSP432 SDK install dir\kernel\freertos\builds\MSP_EXP432P401R\release\FreeRTOSConfig.h> (TI recommends saving the original FreeRTOSConfig.h file).
  2. To build all the TI-RTOS and FreeRTOS config projects, open the command shell at <MSP432 SDK install dir\kernel and execute c:/ti/xdctools_3_32_01_22_core/gmake.exe.

To import the network_terminal example into IAR, follow this procedure:

  1. Create a new empty project by browsing to Project → Create New Project, choose the ARM toolchain and an empty project, then click OK (see Figure 25).
  2. IAR_create_new_project.gifFigure 25. IAR Create New Project
  3. Browse to the location where you want to save this project, and type a filename for the project file (*.ewp). Click Save.
  4. Choose Help → IAR Information Center for ARM, choose INTEGRATED SOLUTIONS, and then scroll down and choose Texas Instruments – Example projects (see Figure 26).
  5. IAR_Texas_Instruments_example_project.gifFigure 26. IAR TI Example Project
  6. Click on the example applications link (see Figure 27). This link refers to the EXAMPLE_ROOT link in argvars.
  7. IAR_example_application_link.gifFigure 27. IAR Example Application Link
  8. Click on an example according to the type of device and rtos/nortos flavor (see Figure 28). All project files should be imported to the workspace.
  9. IAR_choose_network_terminal_example.gifFigure 28. IAR Choose network_terminal Example
  10. Save the workspace.
  11. Browse to the location where you want to save this workspace, and type a filename for the workspace file (*.eww). Click Save.
  12. Make your changes and rebuild the project.
  13. To create a binary image in addition to the *.out file (in case the MCU image is required as part of UniFlash image), a post build step is also required. Right-click the project and choose Options.
  14. On the Output Converter tab, select the Generate additional output checkbox, and change the output format to binary (see Figure 29).
  15. IR_generate_binary_output.gifFigure 29. IR Generate Binary Output
  16. Recompile and the binary should reside in Debug/Exe.