NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

LAUNCHXL2 RM46: CC3100 Wi-Fi Demo

From Texas Instruments Wiki
Jump to: navigation, search
LAUNCHXL2-RM46 return home.png

This demo is designed to let you add Wi-FI connectivity to the Hercules MCU LaunchPad using the Simplelink CC3100 Wi-Fi boosterpack. The demo provides an example code that users can program on the Hercules RM46 LaunchPad and CC3100 boosterpack. It includes options for two operating modes : 1) Access Point Mode: CC3100 generates a pre-defined SSID that other Wi-Fi devices can connect with. 2) Station Mode: CC3100 is configured to connect to a (pre-defined) SSID.

At this time, the steps below are needed to add support for the RM46 Launchpad to the cc3100 SDK.
In the future the RM46 will be included in the CC3100 SDK.

Introduction[edit]

This demo requires tools to program the flash contents on the RM46 Launchpad and the CC3100 boosterpack, such as Uniflash and Code Composer Studio.
Uniflash 3.3 and up support both devices, Code Composer Studio (CCS) supports only the RM46 Launchpad.

  Note your installation folder (default is c:\ti\CC3100SDK_x.y.z\cc3100-sdk), we will call this '<install_dir>' in the following steps.

Install CC3100 SDK RM46 Patch[edit]

  1. Download CC3100 SDK RM46 Support Patch, requires CC3100 SDK
  2. Extract the .zip to '<install_dir>\platform\', this will create the rm46-launchpad folder.
    This includes the HalCoGen project, the CC3100 SDK Wi-Fi demo source, and .out files (so building the project is not required).

Programming the CC3100 Boosterpack[edit]

  1. Connect the CC3100 Boosterpack to the CC3100 Booster EMU board.
  2. Plug in your Booster EMU board's USB cable to the SPI/GPIO/UART/NWP port.
  3. CC31xxEMUBoost Step1.png

  4. Load your web content onto the boosterpack sFlash.
    Use the uniFlash configuration at this location <install_dir>\platform\rm46-launchpad\example_project_ccs\http_server_WIFI_demo_station\uniflash_template\http_server_WIFI_demo.usf.
    Visit the CC31xx UniFlash Quick Start Guide wiki for step-by-step instructions.
  5. If you are missing web content files, the Launchpad will report them on the serial console.

Programming the RM46 Launchpad[edit]

  1. Connect the CC3100 Boosterpack to the Launchpad Boosterpack site #1.
  2. Plug in your LaunchPad's USB cable.
  3. Load your project onto the Launchpad and test it out!
    Select the Access Point (AP) version if you want to connect to it using SSID '"<ap_mode_ssid>" or
    Select the Station version if you want it to connect to the default SSID "<ap_name>" with no security (such as a smart phone with tethering).
  4. Use the uniFlash and the .out file at <install_dir>\platform\rm46-launchpad\example_project_ccs\http_server_WIFI_demo_station\RM\http_server_WIFI_demo_ap.out or http_server_WIFI_demo_station.out.

Running the RM46 Launchpad Wi-Fi Demo[edit]

This demo is based on the HTTP Server Sample Application with documentation available at <install_dir>\docs\examples\http_server.pdf.

  • Optionally connect to the console with a terminal program to see debug information and the client IP address.

  Connect the provided micro USB cable to the XDS110 port on the RM46 Launchpad.
Med launchxl2-rm46 jmi 0002 sm.jpg
  Configure the terminal for a baudrate: 115200, Data bits: 8, Stop bits; 1, Parity: None, Flow Control: None, Putty Terminal Setup Example.

  • If in AP mode connect a client to the CC3100 using its SSID name

  The default SSID "<ap_mode_ssid>".

  • If in Station mode it will connect the specified SSID

  The default SSID "<ap_name>".

  1. Open a web browser on the client and enter the IP of CC3100 in the client's address bar.
  2.   Alternatively, 'mysimplelink.net' can also be entered for accessing the web page

  3. Click the RM46 demo button to load the RM46 specific pages we loaded earlier.
  4. Click on the I/O control demo tab to load the RM46 Launchpad I/O Control Demo page shown below.
    • LED Control: On - will turn USER LEDB (GIOB_2) on solid
    • LED Toggle: On - will toggle USER LEDB (GIOB_2) at the speed shown in Toggling Speed
    • Button Counts: will get and clear the number of time USER SWITCHES A and B are pressed.
    • Analog Input will update based on the state of the Q1 light sensor.

RM46 IO Control Demo

References[edit]

  1. CC31xx & CC32xx Wiki
  2. CC31xx SDK Sample Applications Wiki
  3. http://processors.wiki.ti.com/index.php/CC31xx_HTTP_Server
E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article LAUNCHXL2 RM46: CC3100 Wi-Fi Demo here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article LAUNCHXL2 RM46: CC3100 Wi-Fi Demo here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article LAUNCHXL2 RM46: CC3100 Wi-Fi Demo here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article LAUNCHXL2 RM46: CC3100 Wi-Fi Demo here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article LAUNCHXL2 RM46: CC3100 Wi-Fi Demo here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article LAUNCHXL2 RM46: CC3100 Wi-Fi Demo here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article LAUNCHXL2 RM46: CC3100 Wi-Fi Demo here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article LAUNCHXL2 RM46: CC3100 Wi-Fi Demo here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article LAUNCHXL2 RM46: CC3100 Wi-Fi Demo here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity