USER GUIDE. ATWILC1000 Getting Started with SAMA5D3 Xplained Board. Atmel SmartConnect. Introduction. Features

Similar documents
AT03975: Getting Started with SAM L21. Descripton. Features. SMART ARM-Based Microcontroller APPLICATION NOTE

APPLICATION NOTE. Scope. Reference Documents. Software Ethernet Bridge on SAMA5D3/D4. Atmel SMART SAMA5D3/D4 Series

EDBG. Description. Programmers and Debuggers USER GUIDE

AT06467: Getting started with SAM D09/D10/D11. Features. Description. SMART ARM-based Microcontrollers APPLICATION NOTE

AVR42789: Writing to Flash on the New tinyavr Platform Using Assembly

This user guide describes how to run the Atmel ATWINC3400 Bluetooth Low Energy (BLE) Provisioning demo from out-of-box conditions.

Ethernet1 Xplained Pro

USER GUIDE. Atmel QT6 Xplained Pro. Preface

AT60142H/HT. Rad-Hard 512Kx8 Very Low Power CMOS SRAM ERRATA-SHEET. Active Errata List. Errata History. Abbreviations. 1.

ATAES132A Firmware Development Library. Introduction. Features. Atmel CryptoAuthentication USER GUIDE

AT09381: SAM D - Debugging Watchdog Timer Reset. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

USER GUIDE. ATWINC1500 Xplained Pro. Preface

QT3 Xplained Pro. Preface. Atmel QTouch USER GUIDE

SAMA5D2 Quad SPI (QSPI) Performance. Introduction. SMART ARM-based Microprocessor APPLICATION NOTE

QT2 Xplained Pro. Preface. Atmel QTouch USER GUIDE

Smart RF Device Family - Getting Started Guide. Features. Description. References ATAN0115 APPLICATION NOTE

USER GUIDE EDBG. Description

APPLICATION NOTE. Atmel QT4 Xplained Pro User Guide ATAN0114. Preface

APPLICATION NOTE. AT6486: Using DIVAS on SAMC Microcontroller. SMART ARM-Based Microcontroller. Introduction. Features

AVR42772: Data Logger Demo Application on XMEGA A1U Xplained Pro. Introduction. Features. AVR XMEGA Microcontrollers APPLICATION NOTE

ATtiny104 Xplained Nano. Preface. AVR 8-bit Microcontrollers USER GUIDE

APPLICATION NOTE. AT04470: Differences between SAM D21 Variants A, B, and L. 32-bit Microcontroller. Introduction

Hardware Prerequisites Atmel Xplained Pro Evaluation Kit Atmel WINC1500 extension USB Micro Cable (TypeA / MicroB)

AT11512: SAM L Brown Out Detector (BOD) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

USER GUIDE. Atmel QT1 Xplained Pro. Preface

AT88CK101 HARDWARE USER GUIDE. Atmel CryptoAuthentication Development Kit. Atmel CryptoAuthentication AT88CK101 Daughterboard

APPLICATION NOTE. AT11008: Migration from ATxmega16D4/32D4 Revision E to Revision I. Atmel AVR XMEGA. Introduction. Features

OLED display with pixels resolution Ambient light sensor CPU load Analog filter Quadrature Encoder with push button Digital I/O

AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Features. Introduction. AVR 8-bit Microcontrollers APPLICATION NOTE

I/O1 Xplained Pro. Preface. Atmel MCUs USER GUIDE

APPLICATION NOTE. Generating Random Secrets. ATSHA204A, ATECC108A, and ATECC508A. Description. Topics

AT03262: SAM D/R/L/C System Pin Multiplexer (SYSTEM PINMUX) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

AT21CS Series Reset and Discovery. Introduction. Serial EEPROM APPLICATION NOTE

APPLICATION NOTE. Atmel AT03304: SAM D20 I 2 C Slave Bootloader SAM D20. Description. Features

ATtiny817 QTouch Moisture Demo User Guide. Description. Features. AVR 8-bit Microcontrollers USER GUIDE

AT10942: SAM Configurable Custom Logic (CCL) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

USER GUIDE. Atmel Segment LCD1 Xplained Pro. Preface

APPLICATION NOTE. AT05567: TC Capture on External Interrupt with the Event System on SAM D20. Preface ASF PROJECT DOCUMENTATION

USER GUIDE. Atmel maxtouch Xplained Pro. Preface

USER GUIDE. Atmel OLED1 Xplained Pro. Preface

ATECC108/ATSHA204 USER GUIDE. Atmel Firmware Library. Features. Introduction

APPLICATION NOTE. 3-lead CONTACT Package Usage. ATSHA204A, ATECC108A, and ATECC508A. Introduction. 3-lead CONTACT Package

GM8126 MAC DRIVER. User Guide Rev.: 1.0 Issue Date: December 2010

ATECC508A Public Key Validation. Introduction. Atmel CryptoAuthentication APPLICATION NOTE

ATZB-SAMR21-XPRO. Preface. SmartConnect USER GUIDE

USER GUIDE. ZigBit USB Stick User Guide. Introduction

USER GUIDE. ATmega168 Xplained Mini User Guide. Introduction

SAM4 Reset Controller (RSTC)

Native route discovery algorithm

APPLICATION NOTE. AT07216: SAM G55 Schematic Checklist. Atmel SMART SAM G55. Introduction

AT02667: XMEGA-E5 Xplained Hardware User's Guide. Features. Description. AVR XMEGA Microcontrollers APPLICATION NOTE

SMART ARM-based Microcontrollers ATSAMD21E16LMOTOR USER GUIDE

SBAT90USB162 Atmel. SBAT90USB162 Development Board User s Manual

LBAT90USB162 Atmel. LBAT90USB162 Development Board User s Manual

DGILib USER GUIDE Atmel-42771A-DGILib_User Guide-09/2016

APPLICATION NOTE. AT03324: Atmel REB212BSMA-EK Quick Start Guide. Atmel MCU Wireless. Introduction

APPLICATION NOTE. Atmel AT03160: Migrating Bootloader from ATxmega128A1 to other Atmel XMEGA Devices. Atmel AVR XMEGA. Features.

Atmel AVR ATxmega384C3 microcontroller OLED display with 128x32 pixels resolution Analog sensors. Ambient light sensor Temperature sensor

APPLICATION NOTE. How to Securely Switch Atmel s LIN Transceiver ATA6662/ATA6662C to Sleep Mode ATA6662/ATA6662C. Concerning Atmel ATA6662

AVR1518: XMEGA-A1 Xplained Training - XMEGA Clock System. 8-bit Atmel Microcontrollers. Application Note. Prerequisites.

Atmel AVR1619: XMEGA-B1 Xplained Demonstration. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

APPLICATION NOTE. CryptoAuthentication Personalization Guide. ATSHA204A and ATECC508A. Introduction. Features

AVR1922: Xplain Board Controller Firmware 8-bit Microcontrollers Application Note Features 1 Introduction

AVR1503: Xplain training - XMEGA Programmable Multi Interrupt Controller 8-bit Microcontrollers Application Note Prerequisites

RELEASE NOTES. GNU Toolchain for Atmel ARM Embedded Processors. Introduction

ATmega328PB Xplained Mini. Introduction. AVR 8-bit Microcontrollers USER GUIDE

ATWINC3400-XPRO. Preface. SmartConnect USER GUIDE

Atmel QT600 Quick Start Guide Touch Solutions

OLED display Sensors readout. Light sensor Temperature sensor

Atmel ATtiny1634 MCU Atmel ATA SBC LIN transceiver with integrated voltage regulator Touch. Three Atmel QTouch buttons One Atmel QTouch slider

USER GUIDE. Atmel PROTO1 Xplained Pro. Preface

USER GUIDE. ATmega328P Xplained Mini User Guide. Introduction

APPLICATION NOTE. Atmel AVR1638: XMEGA RTC Calibration. 8-bit Atmel Microcontrollers. Features. Introduction

Atmel AVR1926: XMEGA-B1 Xplained Getting Started Guide. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

APPLICATION NOTE. Atmel AT02260: Driving AT42QT1085. Atmel QTouch. Features. Description

USER GUIDE. Wireless Production Test Reference Protocol Specification Document. Atmel MCU Wireless. Description

Atmel ATMXT143E touchscreen controller Capacitive touch ITO 320 x 240 pixel LCD display with SPI interface LED backlight

APPLICATION NOTE. Atmel AT01080: XMEGA E Schematic Checklist. Atmel AVR XMEGA E. Features. Introduction

DATASHEET. MK-070C-HP High Performance 7 Inch Capacitive Touch Display. Amulet. Technologies. July 2015 Revision A

AVR32401: AVR32 AP7 Linux Interfacing DataFlash. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Atmel AVR32847: Migration from/to the UC3L0 64/32/16 from/to the UC3L0 256/ bit Atmel Microcontrollers. Application Note.

GM8126 U-BOOT. User Guide Rev.: 0.2 Issue Date: May 2011

AVR32752: Using the AVR32 UC3 Static Memory Controller. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

APPLICATION NOTE. Atmel AVR2131: Lightweight Mesh Getting Started Guide. Atmel MCU Wireless. Features. Description

APPLICATION NOTE. Atmel AT03261: SAM D20 System Interrupt Driver (SYSTEM INTERRUPT) SAM D20 System Interrupt Driver (SYSTEM INTERRUPT)

AVR based 125kHz RFID Evaluation Kit (Re)Programming Guide ATA2270-EK1. Overview. Fuse Settings: ISP Programming

a clock signal and a bi-directional data signal (SCL, SDA)

AT03664: Getting Started with FreeRTOS on SAM D20/D21/R21/L21/L22. Introduction. Features. SMART ARM-based Microcontrollers APPLICATION NOTE

APPLICATION NOTE. Atmel AVR3009: Driving QTouch Device with I 2 C Interface. Atmel QTouch. Introduction

AVR1501: Xplain training XMEGA Timer/Counter 8-bit Microcontrollers Application Note Prerequisites 1 Introduction

STEVAL-PCC010V1. ST802RT1A Ethernet PHY demonstration board with STM32F107 controller add-on board. Features. Description

USER GUIDE. SAMW25-MR210/510PA Hardware Design Guidelines - IEEE b/g/n IoT Module. Atmel SmartConnect. Introduction

AVR32901: EVKLCD100/EVKLCD101 Hardware User's Guide. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

Getting Started with the SAM4L-EK Demo

ATBTLC1000 Xplained Pro. Preface. SmartConnect Bluetooth USER GUIDE

APPLICATION NOTE. AT03197: Thermostat with Touch and Wireless Connectivity Hardware User's Guide. Atmel 32-bit Microcontroller. Description.

AVR1303: Use and configuration of IR communication module. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

UM User Manual for LPC54018 IoT Module. Rev November Document information

AT07942: SAM4L Asynchronous Timer (AST) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

Atmel AVR1924: XMEGA-A1 Xplained Hardware User's Guide. 8-bit Atmel Microcontrollers. Application Note. Preliminary. Features.

Transcription:

USER GUIDE ATWILC1000 Getting Started with SAMA5D3 Xplained Board Atmel SmartConnect Introduction This document explains how to get started with the Atmel SmartConnect ATWILC1000 on SAMA5D3 Xplained board. This document also describes how to set up the build environment, how to connect the ATWILC1000 on the SAMA5D3 Xplained board for SDIO or SPI, and how to flash the prebuilt image to the target board. Features Hardware Prerequisites Atmel SAMA5D3 Xplained Evaluation Kit Atmel ATWILC1000 SD Pro Card or ATWILC1000-MR110PA Micro-USB cable (Micro-A / Micro-B) USB to Serial Adaptor (for DBGU port) Environment Prerequisites Linux Host PC Figure 1. Click and type. (Style - fft.features figure title)

Icon Key Identifiers Delivers contextual information about a specific topic. Highlights useful tips and techniques. Highlights objectives to be completed. Highlights the expected result of an assignment step. Indicates important information. Highlights actions to be executed out of the target when necessary. 2

1 Configure a Linux Host 1.1 Install Linux OS Playing the demo is possible on Microsoft Windows PCs. However, users need a Linux machine to develop the ATWILC1000 with the distributed SDK. The Linux host machine may have higher performance and a lot more memory than the typical embedded system. The Linux host machine requires more than 1G RAM and 50G hard disk. There are many kinds of Linux distribution. Because we can t validate all distribution, we focus on Ubuntu and Mint which many users are using as the host Linux distribution. Atmel recommend the Long-term Supports (LTS) version of the Linux. Ubuntu 14.04 LTS: http://releases.ubuntu.com/14.04/ Mint17 LTS: http://www.linuxmint.com/release.php?id=22 This document was written based on Linux Mint17 LTS. 1.2 Mandatory Package If you can t set up another Linux Host PC, there is a way to use virtual machines. Virtual Machines have come a long way over the years and many users are using them without any problems. We already tested there aren t the problems through VirtualBox and VMware. (Downloading Link: VirtualBox, VMware). To get correct output (build, configure, etc ), certain standard Linux utilities are expected to be already installed on the Linux Host PC. Note that package names may vary between distributions. Build tools which, sed, make (version 3.81 or later), Binutils, build-essential (only for Debian based systems), GCC (version 2.95 or later), g++ (version 2.95 or later), Bash, patch, gzip, bzip2, Perl (version 5.8.7 or later), tar, cpio, Python (version 2.6 or 2.7), unzip, rsync, u-boot-tools Configuration interface dependencies ncurses5 to use the menuconfig interface Qt4 to use the xconfig interface GLib2, Gtk2, and glade2 to use the gconfig interface source downloading and fetching tools GLib2, Gtk2, and glade2 to use the gconfig interface Wget, Bazaar, CVS, Git, Mercurial, rsync, SCP, subversion 3

2 Getting Started with Atmel Hardware 2.1 Atmel SmartConnect ATWILC1000 Atmel SmartConnect-ATWILC1000 is an IEEE 802.11 b/g/n IOT link controller SoC. The WILC1000 connects to any Atmel AVR or SMART MCU with minimal resource requirements. The WILC1000 most advanced mode is a single stream 1x1 802.11n mode providing up to 72Mbps PHY throughput. WILC1000 features fully integrated Power Amplifier, LNA, Switch and Power Management. The WILC1000 provides multiple peripheral interfaces including SDIO and SPI. ATWILC1000-MR110PA is small form factor optimized with ATWILC1000. The ATWILC1000 SD pro is extended to SD Card type by using ATWILC1000-MR110PA. Figure 2-1. ATWILC1000 SD Pro and ATWILC1000-MR110PX Overview Refer to ATWILC1000 Datasheet, and ATWILC1000-MR110PA Datasheet. 2.2 Atmel SAMA5D3 Xplained Kit The SAMA5D3 Xplained is a fast prototyping and evaluation platform for microprocessor-based design. The board comes with a rich set of ready to use connectivity and storage peripherals and expansion headers for easy customization. A Linux distribution and software package gets you evaluating fast. A USB device connector can be used to power the board as well as programming and debugging it. Figure 2-2. SAMA5D3 Xplained Board Overview 4

Features SAMA5D36 Cortex -A5 Microprocessor 256MB DDR2 256MB NAND Flash LCD connectors Dual Ethernet (GMAC + EMAC) with PHY and connectors Three USB connectors (two host + one device) 1x SD/eMMC and 1x microsd slots Expansions headers, Arduino R3 Shield compatible Power measurement straps Expansion Ports UARTs: UART0, UART1 USARTs: USART0, USART1, USART2, USART3 SPI: SPI1 I²C: TWI0, TWI1 Timer capture and compare: TIOA, TIOB Clock out: PCK0, PCK1, PCK2 PWMs: PWML0, PWMH0, PWML1, PWMH1 Refer to the SAMA5D3-Xplained User Guide for more information. 2.3 Demo Environment Overview The ATWILC1000 may connect to SAMA5D3 Xplained board via SDIO or SPI interface. Figure 2-3 shows the demo environment which this document describes through several sections. Figure 2-3. Connection Overview 5

2.4 SDIO Interface The SAMA5D3 Xplained board has two SDIO ports. Refer to Figure 2-4 if the ATWILC1000 SD pro card is available to work on WLAN via SDIO interface. Figure 2-4. ATWILC1000 SD Pro with SAMA5D3 Xplained Board via J20 Socket Figure 2-5 shows the pin map and layout to connect the ATWILC1000-MR110PA if ATWILC1000-MR110PA is available instead of ATWILC1000 SD pro card. If J20 socket is reserved, J20 socket can be replaced by J11. Figure 2-5. SDIO Pin Routing 6

2.5 SPI Interface The ATWILC1000 has SPI interface for WLAN. The ATWILC1000 SD pro is dedicated to the SDIO interface, however, the ATWILC1000-MR110PA module installed in the ATWILC1000 SD pro card has SPI pins connectable to the SAMA5D3 Xplained SPI socket. Refer to the Figure 2-6 for SPI use. Figure 2-6. SPI Pin Routing 7

3 Getting Started with Flashing Prebuilt Binary 3.1 Install Flashing Tool (SAM-BA) Before flashing the demo, make sure that you have installed the SAM-BA tool on your host computer. SAM-BA tool is provided for both Windows and Linux. Atmel SAM-BA software provides an open set of tools for programming the Atmel SAMA5, SAM3, SAM4, SAM7, and SAM9 ARM core-based microcontrollers. 3.2 Flashing Prebuilt Binary The prebuilt image working WILC1000 on the SAMA5D3 Xplained board is downloadable in the demo4sc GitHub site. This section describes how to flash prebuilt image to the target board. For more information, visit the AT91 site. 1. Connect SAMA5D3 Xplained board with host PC. 2. Open JP9 to disable NAND Flash memory access. 3. Press BP2 reset button to boot from on-chip BOOT ROM. Find the RomBOOT message from the console if DBGU port is already connected to the host PC. This means the SAMA5D3 Xplained is in boot mode. 4. Close JP9 to enable NAND Flash memory access. 5. Check ACM driver in your PC. If you are a Microsoft Windows user, AT91 USB to serial converter should appear in Device Manager, otherwise install the driver in your PC. Figure 3-1. AT91 USB to Serial Converter in Device Manger 8

If you are a Linux user, check if there is /dev/ttyacmx. Or issue the command, lsusb grep at91 and check the output message. $ lsusb grep at91 Bus 001 Device 002: ID 03eb:6124 Atmel Corp. at91sam SAMBA bootloader 6. Run demo_linux_nandflash.bat for Windows users or demo_linux_nandflash.sh for Linux users. When the logfile.log appears (this will take a few minutes), check that = Done. = is written at the end of the file. 7. Press BP2 reset button to boot on NAND Flash memory and launch the demo. 9

4 Getting Started Simple Work (AP Scan) You can access the serial console via two ways. One is to use the DBGU port (J23) with the help of a USB TTL serial cable. And another is to use USB CDC port (J6). USB CDC device is easily accessible, however, you cannot get access to the console until system boot is completed. In contrast, you can get access to the console immediately after the system boot starts with DBGU. 4.1 Register ATWILC1000 Driver Connect the ATWILC1000 SD pro card to the SAMA5D3 board. Make sure the card is available in the kernel system by checking the following log message. mmc0: new high speed SDIO card at address 0001 Load the wilc1000 module by issuing the following command. buildroot login: root # insmod wilc1000_sdio.ko *** WILC1000 driver VERSION=[xxx] REVISON=[xxx] FW_VER=[xxx] *** Driver Initialzing success In case of SPI Interface, use wilc1000_spi.ko instead of wilc1000.ko. 4.2 Activate Network Interface The following command causes the interface to be activated. $ ifconfig wlan0 up If network interface rightly is activated, the following information is outputted as ifconfig command. $ ifconfig wlan0 wlan0 Link encap:ethernet HWaddr 00:80:C2:B7:D5:B6 inet6 addr: fe80::280:c2ff:feb7:d5b6/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:398 (398.0 B) 4.3 Scanning Neighboring AP Scan the neighboring AP by issuing the following command. 10

$ iw wlan0 scan grep SSID SSID: AVRGUEST SSID: DEMO_AP If there is more neighboring AP, you can find more result. Refer to the ATWILC1000 Getting Started with SAMA5D3 document for further usage. 11

5 Conclusion This application note described how to set up the development environment for the ATWILC1000 with SAMA5D3 Xplained board. This document also provided how to work on WLAN with simple demo. 12

6 Revision History Doc Rev. Date Comments 42434A 03/2015 Initial document release. 13

SAFETY-CRITICAL, MILITARY, AND AUTOMOTIVE APPLICATIONS DISCLAIMER: Atmel products are not designed for and will not be used in conne ction with any applications where the failure of such products would reasonably be expected to result in significant personal injury or death ( Safety-Critical Applications ) without an Atmel officer's specific written consent. Safety-Critical Applications include, without limitation, life support devices and systems, equipment or systems for the operation of nuclear facilities and weapons systems. Atmel products are ATWILC1000 not designed nor intended Getting for use Started in military with or aerospace SAMA5D3 applications Xplained or environments Board unless [APPLICATION specifically desi gnated by NOTE] Atmel as military-grade. Atmel products are not designed nor intended for use automotive applications unless specifically designated by as automotive -grade. 14 Atmel Corporation 1600 Technology Drive, San Jose, CA 95110 USA T: (+1)(408) 441.0311 F: (+1)(408) 436.4200 www.atmel.com 2015 Atmel Corporation. / Rev.:. Atmel, Atmel logo and combinations thereof, AVR, Enabling Unlimited Possibilities, SAM-BA, and others are registered trademarks or trademarks of Atmel Corporation in U.S. and other countries. ARM, ARM Connected logo, and others are the registered trademarks or trademarks of ARM Ltd. Windows is a registered trademark of Microsoft Corporation in U.S. and or other countries. Other terms and product names may be trademarks of others. DISCLAIMER: The information in this document is provided in connection with Atmel products. No license, express or implied, b y estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON -INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS AND PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and products descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, auto motive applications. Atmel products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.