WL18xx First Time Getting Started Guide

From Texas Instruments Wiki
Jump to: navigation, search

Objective

This WL18xx First Time Getting Started Guide helps you to get connected wirelessly using Wi-Fi and Bluetooth. In this demo we give a step-by-step walkthrough on how to setup your WL18xx with the AM335x Evaluation Module to connect to the internet and pair with Bluetooth devices.

Prerequisites

The hardware and software prerequisites needed to run the getting started demo are listed below.

Linux Machine or Linux Virtual Machine

Please make sure you have either a Linux PC or a Linux Virtual Machine on your PC. You need it in order to flash the images onto a SD card.

Hardware



Software

Preparing SD Cards

Linux SD Card

  • Make sure you have the correct [Linux Demo Image] (see software prerequisites above).
  • Prepare the SD card (at least 2GB):
  1. Insert the SD card into your host Linux computer.
  2. Verify that the root filesystem tarball, sd-script.sh, MLO, u-boot.img, and uImage files are within an accessible directory in Linux.
  3. Make sure the sd-script.sh script is executable by running
    sudo chmod +x sd-script.sh
  4. Run the sd-script.sh using
    sudo ./sd-script.sh <sd-card location>
Where <sd-card location> may be something similar to /dev/sdb. Use "sudo fdisk -l" to check where the disk has been set in Ubuntu.
  • You should be seeing two partitions created: boot & rootfs
  • Mount the boot and rootfs partitions.
sudo mkdir /media/boot
sudo mkdir /media/rootfs

sudo mount /dev/sdc1 /media/boot
sudo mount /dev/sdc2 /media/rootfs
  • Finally, extract your files into corresponding partitions. In this example, we have both boot.tar.gz and rootfs.tar.gz files.
tar -zxvf boot.tar.gz -C /media/boot
sudo tar -zxvf rootfs.tar.gz -C /media/rootfs


Android SD Card

  • Make sure you have the correct Android Demo Images (see software prerequisites above).
  • Prepare the SD card (at least 2GB):
  1. Insert the SD card into your host Linux computer.
  2. Make sure the sd-script.sh script is executable by running
    sudo chmod +x mkmmc-android.sh
  3. Run the sd-script.sh using
    $ sudo ./mkmmc-android.sh <sd-card location>
Where <sd-card location> may be something similar to /dev/sdb. Use "sudo fdisk -l" to check where the disk has been set in Ubuntu.
  • You should be seeing four partitions created: boot, rootfs, userdata, and data.
  • Mount the boot, rootfs, and data partitions.
sudo mkdir /media/boot
sudo mkdir /media/rootfs
sudo mkdir /media/data

sudo mount /dev/sdc1 /media/boot
sudo mount /dev/sdc2 /media/rootfs
sudo mount /dev/sdc3 /media/data
  • Finally, extract your files into corresponding partitions. In this example, we have boot.tar.gz, rootfs.tar.gz, and data.tar.gz files.
tar -zxvf boot.tar.gz -C /media/boot
sudo tar -zxvf rootfs.tar.gz -C /media/rootfs
tar -zxvf data.tar.gz -C /media/data

Setup your AM335x EVM

This section will walk you through setting-up your AM335x EVM for use with the Wilink8 Demos.

  1. Verify that the SW3/SW4 DIP Switches are set as shown below.
    DIP SWITCHES.jpg
  2. Verify that the SW6 DIP switch is set as shown below (OFF). SW6 is located on the AM335x EVM daughtercard (just below the LCD board).
    SW6.PNG
  3. Use the supplied serial DB-9 cable to connect the UART connector (J12) on the AM335x EVM to your Host PC. You may need to make use of a serial-to-USB converter.
  4. Connect the power cable to the power jack on the baseboard. for your reference, the power switch is located next to power jack.
  5. Connect the Wilink8 COM module in the COM connector on the bottom of the AM335x EVM. The connector is located near the SD card slot.
  6. Insert the SD card flashed with the latest WL18xx Demo Images into the AM335x EVM.

TI WL1835MODCOM8B Board

WL1835MODCOM8 front.jpg

TI WL1837MODCOM8I Board

WL1837MODCOM8I.png

Murata COM8 Board

  • To ensure full connectivity, check that both antenna's are connected to the Murata COM8 board(see image below)

Com8 U.FL connector.JPG

Ready your Host PC - Serial Terminal

In order to communicate with the AM335xx EVM board and run the WLAN/BT demos, a serial port terminal program must be installed on your host PC. For Windows, you could use Teraterm or PuTTY. For Linux, we recommend Minicom.
After connecting your PC to the AM335x EVM via the serial DB-9 connector, turn on the PC's serial port terminal program and use the following settings:

Baud rate: 115200
Data : 8 bit
Parity: None
Stop: 1 bit
Flow control: none
Transmit delay msec/char: 1
Transmit delay msec/line: 1


Running the Demos

Boot the Board

To boot the board, simply apply power to the EVM by turning the electric switch to ON. If the serial port is configured correctly, you should see the output on your serial terminal. You will see the board reach u-boot, and then automatically boot into the Linux kernel.

When prompted for a login, use root.

Demo Guide

The demos for both BT & WLAN is available at: WL18xx WLAN and Bluetooth Demos