Avnet CC3000-Pmod User manual

Getting Started Guide
CC3000-Pmod™
Compatible Wi-Fi®Adapter
Version 1.0

2 Getting Started with the CC3000-Pmod™Compatible Wi-Fi®Adapter Version 1.0
REVISION HISTORY
DATE VERSION REVISION
08/21/2012 1.0 Initial Release

Version 1.0 Getting Started with the CC3000-Pmod™Compatible Wi-Fi®Adapter 3
AVNET DESIGN KIT TECHNICAL
SUPPORT FILES AND DOWNLOADS
WEB ACCESS INSTRUCTIONS
Thank you for purchasing an Avnet design kit. The technical support documents associated with this kit,
including the User Guide, Bill of Materials, Schematics, Source Code and Application Notes, are available online.
You, the Customer, can access these documents at any time by visiting Avnet’s Design Resource Center (“DRC”)
at: www.em.avnet.com/drc
On your rst visit to the DRC, You will be required to site register before you can download the documents. To
get started, select the name of the manufacturer associated with your design kit from the drop down menu. A
complete listing of available design kits will appear. Select the kit you purchased. Scroll to the bottom of the
design kit page to access the support files. Before you download a file, you will be prompted to login. If you are
an existing user, please login. If you are a new user, click on the “Need to sign-up?” text. Please complete the
short registration form. Upon completion, be sure to retain your login and password information for future visits
to Avnet’s DRC. Logging in once gives you unlimited access to all technical support files and downloads. You will
also have the chance to request email notifications whenever there are updates to your design kit.
LICENSE AGREEMENT
THE AVNET DESIGN KIT (“DESIGN KIT” OR “PRODUCT”) AND ANY SUPPORTING DOCUMENTATION
(“DOCUMENTATION” OR “PRODUCT DOCUMENTATION”) IS SUBJECT TO THIS LICENSE AGREEMENT (“LICENSE”).
USE OF THE PRODUCT OR DOCUMENTATION SIGNIFIES ACCEPTANCE OF THE TERMS AND CONDITIONS OF THIS
LICENSE. THE TERMS OF THIS LICENSE AGREEMENT ARE IN ADDITION TO THE AVNET CUSTOMER TERMS AND
CONDITIONS, WHICH CAN BE VIEWED AT www.em.avnet.com. THE TERMS OF THIS LICENSE AGREEMENT WILL
CONTROL IN THE EVENT OF A CONFLICT.
1. Limited License. Avnet grants You, the Customer, (“You” “Your” or “Customer”) a limited, non-exclusive,
non-transferable, license to: (a) use the Product for Your own internal testing, evaluation and design
efforts at a single Customer site; (b) create a single derivative work based on the Product using the same
semiconductor supplier product or product family as used in the Product; and (c) make, use and sell the
Product in a single production unit. No other rights are granted and Avnet and any other Product licensor
reserves all rights not specifically granted in this License Agreement. Except as expressly permitted in this
License, neither the Design Kit, Documentation, nor any portion may be reverse engineered, disassembled,
decompiled, sold, donated, shared, leased, assigned, sublicensed or otherwise transferred by Customer.
The term of this License is in effect until terminated. Customer may terminate this license at any time by
destroying the Product and all copies of the Product Documentation.
2. Changes. Avnet may make changes to the Product or Product Documentation at any time without notice.
Avnet makes no commitment to update or upgrade the Product or Product Documentation and Avnet
reserves the right to discontinue the Product or Product Documentation at any time without notice.
3. Limited Warranty. ALL PRODUCTS AND DOCUMENTATION ARE PROVIDED “AS IS” WITHOUT WARRANTY
OF ANY KIND. AVNET MAKES NO WARRANTIES, EITHER EXPRESS OR IMPLIED, WITH RESPECT TO THE
PRODUCTS AND DOCUMENTATION PROVIDED HEREUNDER. AVNET SPECIFICALLY DISCLAIMS THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AND ANY
WARRANTY AGAINST INFRINGEMENT OF ANY INTELLECTUAL PROPERTY RIGHT OF ANY THIRD PARTY
WITH REGARD TO THE PRODUCTS AND DOCUMENTATION.

4 Getting Started with the CC3000-Pmod™Compatible Wi-Fi®Adapter Version 1.0
4. LIMITATIONS OF LIABILITY. CUSTOMER SHALL NOT BE ENTITLED TO AND AVNET WILL NOT LIABLE
FOR ANY INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND OR
NATURE, INCLUDING, WITHOUT LIMITATION, BUSINESS INTERRUPTION COSTS, LOSS OF PROFIT OR
REVENUE, LOSS OF DATA, PROMOTIONAL OR MANUFACTURING EXPENSES, OVERHEAD, COSTS OR
EXPENSES ASSOCIATED WITH WARRANTY OR INTELLECTUAL PROPERTY INFRINGEMENT CLAIMS,
INJURY TO REPUTATION OR LOSS OF CUSTOMERS, EVEN IF AVNET HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES. THE PRODUCTS AND DOCUMENTATION ARE NOT DESIGNED,
AUTHORIZED OR WARRANTED TO BE SUITABLE FOR USE IN MEDICAL, MILITARY, AIR CRAFT,
SPACE OR LIFE SUPPORT EQUIPMENT NOR IN APPLICATIONS WHERE FAILURE OR MALFUNCTION
OF THE PRODUCTS CAN REASONABLY BE EXPECTED TO RESULT IN A PERSONAL INJURY, DEATH
OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. INCLUSION OR USE OF PRODUCTS IN SUCH
EQUIPMENT OR APPLICATIONS, WITHOUT PRIOR AUTHORIZATION IN WRITING OF AVNET, IS NOT
PERMITTED AND IS AT CUSTOMER’S OWN RISK. CUSTOMER AGREES TO FULLY INDEMNIFY AVNET
FOR ANY DAMAGES RESULTING FROM SUCH INCLUSION OR USE.
5. LIMITATION OF DAMAGES. CUSTOMER’S RECOVERY FROM AVNET FOR ANY CLAIM SHALL NOT EXCEED
CUSTOMER’S PURCHASE PRICE FOR THE PRODUCT GIVING RISE TO SUCH CLAIM IRRESPECTIVE OF THE
NATURE OF THE CLAIM, WHETHER IN CONTRACT, TORT, WARRANTY, OR OTHERWISE.
6. INDEMNIFICATION. AVNET SHALL NOT BE LIABLE FOR AND CUSTOMER SHALL INDEMNIFY,
DEFEND AND HOLD AVNET HARMLESS FROM ANY CLAIMS BASED ON AVNET’S COMPLIANCE WITH
CUSTOMER’S DESIGNS, SPECIFICATIONS OR INSTRUCTIONS, OR MODIFICATION OF ANY PRODUCT
BY PARTIES OTHER THAN AVNET, OR USE IN COMBINATION WITH OTHER PRODUCTS.
7. U.S. Government Restricted Rights. The Product and Product Documentation are provided with “RESTRICTED
RIGHTS.” If the Product and Product Documentation and related technology or documentation are provided
to or made available to the United States Government, any use, duplication, or disclosure by the United
States Government is subject to restrictions applicable to proprietary commercial computer software as
set forth in FAR 52.227-14 and DFAR 252.227-7013, et seq., its successor and other applicable laws
and regulations. Use of the Product by the United States Government constitutes acknowledgment of the
proprietary rights of Avnet and any third parties. No other governments are authorized to use the Product
without written agreement of Avnet and applicable third parties.
8. Ownership. Licensee acknowledges and agrees that Avnet or Avnet’s licensors are the sole and exclusive
owner of all Intellectual Property Rights in the Licensed Materials, and Licensee shall acquire no right,
title, or interest in the Licensed Materials, other than any rights expressly granted in this Agreement.
9. Intellectual Property. All trademarks, service marks, logos, slogans, domain names and trade names
(collectively “Marks”) are the properties of their respective owners. Avnet disclaims any proprietary
interest in Marks other than its own. Avnet and AV design logos are registered trademarks and service
marks of Avnet, Inc. Avnet’s Marks may be used only with the prior written permission of Avnet, Inc.
10. General. The terms and conditions set forth in the License Agreement or at www.em.avnet.com will
apply notwithstanding any conflicting, contrary or additional terms and conditions in any purchase order,
sales acknowledgement confirmation or other document. If there is any conflict, the terms of this License
Agreement will control. This License may not be assigned by Customer, by operation of law, merger
or otherwise, without the prior written consent of Avnet and any attempted or purported assignment
shall be void. Licensee understands that portions of the Licensed Materials may have been licensed to
Avnet from third parties and that such third parties are intended beneciaries of the provisions of this
Agreement. In the event any of the provisions of this Agreement are for any reason determined to be void
or unenforceable, the remaining provisions will remain in full effect.This constitutes the entire agreement
between the parties with respect to the use of this Product, and supersedes all prior or contemporaneous
understandings or agreements, written or oral, regarding such subject matter. No waiver or modification
is effective unless agreed to in writing and signed by authorized representatives of both parties. The
obligations, rights, terms and conditions shall be binding on the parties and their respective successors
and assigns. The License Agreement is governed by and construed in accordance with the laws of the
State of Arizona excluding any law or principle, which would apply the law of any other jurisdiction. The
United Nations Convention for the International Sale of Goods shall not apply.

Version 1.0 Getting Started with the CC3000-Pmod™Compatible Wi-Fi®Adapter 5
TABLE OF CONTENTS
ABOUT THIS GUIDE ...........................................6
Additional Documentation ..................................................... 6
Additional Support Resources .................................................. 7
INTRODUCTION ..............................................8
What’s Inside The Box ........................................................ 8
What’s Available Online ....................................................... 8
GETTING STARTED ...........................................9
Wi-Fi®Webserver Reference Design Demo Requirements ............................. 9
Reprogramming the Xilinx®Spartan®-6 FPGA LX9 MicroBoard ......................... 9
Wi-Fi®Webserver Demo Setup Instructions ....................................... 11
NEXT STEPS ...............................................14
Downloading the Source Project ............................................... 14
Getting Help And Support ..................................................... 15
INSTALLATION AND LICENSING OF LAB TOOLS ....................16
Lab Tools Software Installation ................................................. 16

6 Getting Started with the CC3000-Pmod™Compatible Wi-Fi®Adapter Version 1.0
ABOUT THIS GUIDE
Additional Documentation
Available from Avnet: Documents specically regarding the Avnet designed Xilinx Spartan-6 FPGA LX9
MicroBoard (PN: AES-S6MB-LX9-G) are available for download at: http://www.em.avnet.com/s6microboard
• Xilinx Spartan-6 FPGA LX9 MicroBoard User Guide
This specication provides a detailed description of the S6LX9 MicroBoard circuitry.
• Xilinx Spartan-6 LX9 FPGA MicroBoard Conguration Guide
This guide provides instructions on how to congure the FPGA on the S6LX9 MicroBoard as well as
program the on-board serial ash.
• CP201x USB-to-UART Setup Guide
This document provides step-by-step instructions for installing the Silicon Labs CP210x USB-to-UART
drivers onto your PC.
LSR Module and TI CC3000 documentation:
• TiWi-SL Module DataSheet: http://www.lsr.com/downloads/products/330-0085.pdf
• TiWi-SL Wiki page: http://wiki.lsr.com/TiWi-SL-Main-Page.ashx
• TI CC3000 Wiki landing page: http://processors.wiki.ti.com/index.php/CC3000_Wi-Fi_for_MCU
• TI CC3000 Wiki Site Map: http://processors.wiki.ti.com/index.php/CC3000_Wi-Fi_Site_Map
Available from Xilinx at http://www.xilinx.com/products/spartan6
• Spartan-6 Family Overview
This overview outlines the features and product selection of the Spartan-6 family
• Spartan-6 FPGA Data Sheet: DC and Switching Characteristics
This data sheet contains the DC and switching characteristic specications for the Spartan-6/
• Spartan-6 FPGA Packaging and Pinout Specications
This specication includes the tables for device/package combinations and maximum I/Os, pin
denitions, pinout tables, pinout diagrams, mechanical drawings, and thermal specications.
• Spartan-6 FPGA Conguration User Guide
This all-encompassing conguration guide includes chapters on conguration interfaces (serial and
parallel), multi-bitstream management, bitstream encryption, boundary-scan and JTAG conguration,
and reconguration techniques.
• Spartan-6 FPGA SelectIO Resources User Guide
This guide describes the SelectIO™resources available in all Spartan-6 devices.
• Spartan-6 FPGA Clocking Resources User Guide
This guide describes the clocking resources available in all Spartan-6 devices, including the DCMs
and PLLs.
• Spartan-6 FPGA Block RAM Resources User Guide
This guide describes the Spartan-6 device block RAM capabilities.

Version 1.0 Getting Started with the CC3000-Pmod™Compatible Wi-Fi®Adapter 7
• Spartan-6 FPGA DSP48A1 Slice User Guide
This guide describes the architecture of the DSP48A1 slice in Spartan-6 FPGAs.
• Spartan-6 FPGA PCB Designers Guide
This guide provides information on the PCB design for Spartan-6 devices, with a focus on strategies for
making design decisions at the PCB interface level.
Additional Support Resources
Please post questions to the specic kit thread on the Avnet Development Kit Community Forum at
http://community.em.avnet.com/t5/Avnet-Development-Boards/ct-p/Avtbds
To search the database of silicon and software questions and answers or to create a technical support case in
WebCase, see the Xilinx website at: http://www.xilinx.com/support
Files specically regarding the CC3000-Pmod™Compatible Wi-Fi®Adapter (PN: AES-PMOD-TIWI-G) are available
for download at: http://www.em.avnet.com/pmodwi
• S6LX9_CC3000_PMOD_WiFi_Demo_mcs_13_4_1.zip - This zip le contains the following les:
1. MM_DROP_073112.mcs – PROM File that is the FPGA Conguration and Webserver application
together in an Intel MCS-86 Hexadecimal Object
2. P1_USB_programming_of_PROD-CC3000-PMOD_Webserver_to_LX9_Board_SPI-
Flash_073112.bat – batch les used to load the .mcs le into the LX9 SPI Flash
3. sfutil.exe - SPI Serial Flash programming utility, Rev 1.4.1. This program will read the contents of
an SPI serial ash memory and write it to a le, or write the contents of a le to the ash memory.
• S6LX9_CC3000_PMOD_WiFi_Demo_src_13_4_1.zip - This zip le contains the complete source for
the project discussed in this Getting Started Guide.

8 Getting Started with the CC3000-Pmod™Compatible Wi-Fi®Adapter Version 1.0
INTRODUCTION
The CC3000-Pmod™Compatible Wi-Fi®Adapter, designed by Avnet, is a self-contained, certied 802.11b/g
Wi-Fi adapter based on the Texas Instruments SimpleLink™CC3000. Conforming to the Digilent Pmod Interface
Specication and 2 x 6 pinout, it is designed to attach to Avnet FPGA development boards that comply with the
Pmod Interface Specication. The built-in IP networking stack provides ubiquitous Wi-Fi and Internet access
without needing a complex CPU and OS. The module’s small API command set is easily incorporated into the
FPGA using a MicroBlaze microcontroller core.
This guide assumes the user has the Xilinx Spartan-6 FPGA LX9 MicroBoard hardware and has completed
verication of the MicroBoard via the “Getting Started With Spartan-6 LX9 MicroBoard Development Kit”
instructions supplied with that hardware kit and located on the Avnet Design Resource Center.
This Getting Started Guide will walk you through the procedure to install the CC3000-Pmod™Compatible
Wi-Fi®Adapter into the Spartan-6 LX9 MicroBoard and program the MicroBoard’s SPI Flash with the pre-built
embedded WiFi Webserver based demonstration that is designed to illustrate the features of the LS Research
TiWi Module, TI SimpleLink and Xilinx MicroBlaze 32-bit soft processor IP core.
What’s Inside the Box
• CC3000-Pmod Board with the 802.11b/g TiWi-SL Module from LS Research, utilizing the SimpleLink
Wi-Fi CC3000 solution from Texas Instruments.
• This Getting Started Guide
• Welcome Letter
What’s Available Online
• The Development Kit’s home page with Documentation and Reference Designs, along with additional
Avnet FPGA development board reference designs
• http://www.em.avnet.com/pmodwi
• http://www.em.avnet.com/s6microboard
• http://www.em.avnet.com
• Technical Support
• http://www.em.avnet.com/techsupport
• http://www.xilinx.com/support
If you already have the ISE Design Suite installed on computer or intend to just run this demo “standalone”,
without any development intensions, then you can proceed to the next section, “GETTING STARTED WITH THE
CC3000-PMOD™COMPATIBLE Wi-Fi ADAPTER KIT.” If you need to install ISE Design Suite, please proceed with
the instructions found in the “Getting Started With Spartan-6 LX9 MicroBoard Development Kit” located at
http://www.em.avnet.com/s6microboard.

Version 1.0 Getting Started with the CC3000-Pmod™Compatible Wi-Fi®Adapter 9
GETTING STARTED WITH THE CC3000-
PMOD™COMPATIBLE WI-FI ADAPTER KIT
As shipped from the factory, the Spartan®-6 LX9 MicroBoard’s SPI Flash is preprogrammed with an embedded
demonstration project that tests the on-board circuitry. The objective of this CC3000 WiFi PMOD Getting Started
Guide is to introduce the user to a reference design that utilizes the CC3000 WiFi PMOD of a Xilinx MicroBlaze
embedded project’s bitle, to be programmed into the MicroBoard’s SPI Flash. Then, using a terminal program,
a Wireless Access Point (WAP)/Router and a web browser, you can interact with the demo to validate the
functionality of the WiFi board.
As discussed, this reference design has been developed using the Xilinx ISE®Design Suite 13.4: Embedded
Edition software. These tools are not required for executing the procedures outlined in this getting started
guide. But users who wish to modify or investigate this design will need an EDK license (see Xilinx’s Embedded
website for licensing information: http://www.xilinx.com/tools/platform.htm EDK will be needed for rebuilding
the reference design as discussed in the “Next Steps” section of this document, where you will be introduced to
some of the details surrounding the development of the reference design.
Wi-Fi Webserver Reference Design Demo Requirements
• Computer running Windows XP or later, with an Internet browser installed.
• Wi-Fi Access Point/Router whose SSID,etc can be congured by the user.
• Avnet Spartan-6 FPGA LX9 MicroBoard
• CC3000-PMOD Wi-Fi module
• S6LX9_CC3000_PMOD_WiFi_Demo_mcs_13_4_1.zip le
• Type A male to Type A female USB extension cable and/or a +5V power supply with Type A female USB
connector (eg. cellphone charger)
• Type A to Micro-B USB cable (Optional)
Note: The LX9 MicroBoard Kit contains the two USB Cables listed above. The MicroBoard uses the Type A
male to Type A female USB extension cable to connect it to a computer USB Port or the MicroBoard could be
directly connected to a computer USB port, via P1, which is the USB to JTAG Bridge interface. The Micro-B USB
connector J3 on the MicroBoard, is a USB to UART Bridge interface that is optional for this exercise.
Note: Power can be supplied to the LX9 MicroBoard through either of the USB connectors (P1 or J3).
Re-programming the Spartan-6 FPGA LX9 MicroBoard
The LX9 MicroBoard SPI Flash is now to be programmed with the FPGA conguration and an application that
will run on the MicroBlaze Soft Core Processor of the FPGA.
1. Unzip the S6LX9_CC3000_PMOD_WiFi_Demo_mcs_13_4_1.zip le to a new folder named c:\
cc3000_test. Three les should be extracted:
• P1_USB_programming_of_CC3000_Webserver_to_LX9_Board_SPI-Flash_073112.bat
• sfutil.exe
• MM_DROP_073112.mcs

10 Getting Started with the CC3000-Pmod™Compatible Wi-Fi®Adapter Version 1.0
The results should look as follows:
Figure 1
2. Connect LX9 MicroBoard’s P1 USB connector on the LX9 board by plugging in to an available USB
port on the computer
3. From a DOS command prompt window, go to the directory where the les have been extracted to and
execute the provided .bat le to commence sfutil.exe re-programming of LX9 board’s N25Q128 serial
ash (only the rst 4MB erased/programmed) with the MM_DROP_073112.mcs Xilinx conguration le.
The results should be as shown in the following two DOS windows.
4. Once completed, remove the LX9 MicroBoard from the computer’s USB Port
Figure 2
Figure 3
The IP parameters shown in the DOS window above have been hard-coded in the project’s demo_cong.h and
cc3000.c les. Thus the Wireless Access Point/Router conguration must be edited accordingly on your WAP:
Access Point/Router SSID = xfest2012-s6lx9
AP LAN subnet IP address = 192.168.1.1

Version 1.0 Getting Started with the CC3000-Pmod™Compatible Wi-Fi®Adapter 11
An example router status after conguration is shown below.
Figure 4
Demo Setup Instructions
At this point the LX9 MicroBoard has its’ FPGA Conguration SPI Flash loaded with the Webserver conguration
and WiFi application. The WAP has been congured. All that is left is to install the WiFi PMOD, power up the
MicroBoard, let it connect to the WAP and then connect to the MicroBoards Webserver from some WiFi device.
Note: the application running on the MicroBoard has additional functionality (driving a servo motor via a the second
PMOD) that we not will not be covering in this Getting Started Guide as it requires additional PMOD Hardware.
1. Install the CC3000-Pmod™Compatible Wi-Fi®Adapter into the Spartan-6 FPGA LX9 MicroBoard’s J5
PMOD Connector. Ensure that on the WiFi PMOD, J4 is installed and J3 is set with a jumper between
pins 2-3 “Normal Mode”, as shown below.
Figure 5

12 Getting Started with the CC3000-Pmod™Compatible Wi-Fi®Adapter Version 1.0
2. (Optional Step) It is very interesting to see the timing of the of the FPGA conguration and application
bootloader results through the MicroBlaze UART, but is not required for this exercise. Details of LX9
MicroBoard related supplemental drivers, installation, etc. are discussed in the LX9 Getting Started
Guide and other related documents. The assumption here is that the user is already familiar with
MicroBoard Reference designs.
• Connect MicroBoard J3 to the computer using the Type A to Micro-B USB cable (Optional)
• Set the terminal application mapped to the USB Port connected to J3 as follows:
Figure 6
3. Connect LX9 MicroBoard P1 to a power source via Type A male to Type A female USB extension cable or
a +5V power supply with Type A female USB connector.
4. Pressing “SW4” on the MicroBoard will recongure the FPGA, then the bootloader will take over
and begin writing the application program to DDR memory. Finally the MicroBlaze will reset and the
application will run out of DDR.
a. FPGA conguration is completed when Blue LED “D1” illuminates.
b. Bootloader begins when “SREC Bootloader” is seen in terminal window (see below) and completes
when “Executing program starting at address: 00000000” is seen.
Note: Bootloader Processes (0x)00001ae2 S-records, which is the application size in S-Record ASCII Format.
c. MicroBlaze program execution (initialization of WiFi Module) is seen when Red LEDS (D2, D3, D9,
D10) begin toggling on and off for about 3 seconds.
Note: After the application has been “bootloaded” into DDR, pressing “SW5” will reset the MicroBlaze,
beginning execution at address 0, exhibiting the same ashing Red LEDS (D2, D3, D9, D10).
The following two gures show two points in time of the terminal output:
Figure 7

Version 1.0 Getting Started with the CC3000-Pmod™Compatible Wi-Fi®Adapter 13
Figure 8
5. When the LX9 MicroBoard’s Red LED “D2” goes on steady, this is an indication that it has contacted the
WAP/Router’s SSID “xfest2012-s6lx9” and is now connected.
a. If LED “D2” does not come on, attempt to:
– Reset the Microblaze application by pressing “SW5”.
– Recongure all (FPGA, DDR…) by pressing “SW4”.
6. At this point you should be able to open browser and make the connection to the webserver that is
running on the Microboard at 192.168.1.10 (http://192.168.1.10/), and the page you pull up should look
like the following:
Figure 9
a. Clicking “Dispense” should turn off LED “D2” and turn on LEDs “D9 & D10”.
b. Clicking “Reload” should turn off LEDs “D9 & D10” and turn on LEDs “D3 & D2”.
c. Alternately clicking the web page buttons will toggle the LEDs in the pairs listed.
This takes us to the end of the WiFi Webserver demonstration. For any issues with this demonstration please
http://www.em.avnet.com/techsupport

14 Getting Started with the CC3000-Pmod™Compatible Wi-Fi®Adapter Version 1.0
NEXT STEPS
Downloading the Source Project
Now that you have run through the embedded demo, you should have at least the Xilinx 13.4 development tools
ISE WebPACK and EDK in order to proceed.
The source project can be downloaded from http://www.em.avnet.com/pmodwi, after selecting the “support
& downloads” button.
The source project S6LX9_CC3000_PMOD_WiFi_Demo_src_13_4_1.zip contains the complete source to
generate the application discussed in this Getting Started Guide. Some details of this project are as follows:
In the ZIP le are the following folders:
S6LX9_CC3000_PMOD_WiFi_Demo_src_13_4_1
|__ MM_Drop
|__ SDK4
Once you load-up the SDK project, you will nd the User Webserver Application les under the
…\SDK4\CC3000_HOST_DRIVER\src folder
Key aspects in the CC3000_HOST_DRIVER source les are:
demo_cong.h
line 43-57 is where the static IP address, port number, security and Access Point/Router’s SSID are dened:
#dene STATIC_IP_OCT1 192
#dene STATIC_IP_OCT2 168
#dene STATIC_IP_OCT3 1
#dene STATIC_IP_OCT4 10
#dene DEFAULT_OUT_OF_BOX_SSID “xfest2012-s6lx9”
#dene AP_SECURITY NONE
#dene HTTP_SERVER_PORT 80
cc3000.c
line 180-183 is where the static IP address for the Access Point/Router is dened
webserver.c
line# 102 myindex[] is where to make changes to the HTML source:
This user editable HTML text string is what is sent-out by the webserver and interpreted accordingly by
whatever Internet browser is being used to access the 192.168.1.10 webpage
This string is in HTML format and it is recommended that any edits should be tested using an HTML validator
before running on the FPGA:
The essential HTML tools used in development were:
a. Online HTML Validator: http://www.onlinewebcheck.com/check.php?adv=1
b. Downloaded HTML Validator App: http://www.htmlvalidator.com/htmldownload.html
c. Online Web Design w3schools.com coaching site: http://www.w3schools.com/tags/tag_div.asp

Version 1.0 Getting Started with the CC3000-Pmod™Compatible Wi-Fi®Adapter 15
Select the applicable HTML tag and then use the “Try it yourself >>” button
Note: Before checking the HTML string in one of these validators you need to strip-out all the “\” backslash
characters (search & replace)
webserver.c
line# 245-261 toggleLEDFunc() is where the LEDs and Servo are activated.
line 252 and 258 to make changes to the servo rotation range
As discussed earlier, below is a diagram of the existing demonstration which is the “Spartan-6 LX9 Internet
Appliance Demo” shown at 2012 X-fests. “Plan B” is only needed if hardwired ethernet is desired. A full
description, including the hardware requirements of this full application will be place on the Avnet DRC at
http://www.em.avnet.com/pmodwi
Figure 10
Note: With the WiFi module on the LX9 MicroBoard an additional load is now added to the USB supply of a typical
PC. If you seem to be having power problems, try powering the board via both connectors as the demonstration
runs or consider a separate USB Hub, as many PCs do not provide enough power through a single USB Port.
Note: It is not possible to connect to the WiFi_Pmod in ad hoc mode, an Access Point/Router is always required!
Getting Help and Support
For technical support including the installation and use of your product license les from Xilinx you may
contact Xilinx Online Technical Support at www.support.xilinx.com. On this site you will also nd the following
resources for assistance:
• Software, IP and Documentation Updates
• Access to Technical Support Web Tools
• Searchable Answer Database with Over 4,000 Solutions
• User Forums
• Training – Select instructor-led classes and recorded e-learning options
Contact Avnet Support for any questions regarding the Spartan-6 FPGA LX9 MicroBoard reference designs or
kit hardware:
http://www.em.avnet.com/s6microboard
http://www.em.avnet.com/pmodwi

Copyright © 2012,Avnet, Inc.All rights reserved. Published by Avnet Electronics Marketing, a group of Avnet, Inc. Avnet, Inc. disclaims any
proprietary interest or right in any trademarks, service marks, logos, domain names, company names, brands, product names, or other
form of intellectual property other than its own. AVNET and the AV logo are registered trademarks of Avnet, Inc.
AES-PMOD-TIWI-G-13.4-v1
Table of contents