background image

 

Getting Started Guide for ATWINC3400 W-Fi using SAM D21 Xplained Pro [USER GUIDE] 

Atmel-42640A-Getting-Started-Guide-for-ATWINC3400WiFi-using-SAMD21-Xplained-Pro_UserGuide_02/2016 

8
 

– 

One green board power LED 

– 

Symbolic debug of complex data types including scope information 

– 

Programming and debugging 

– 

Data Gateway Interface: SPI, I²C, four GPIOs 

– 

Virtual COM port (CDC) 

 

USB powered 

 

Supported with application examples in Atmel Software Framework 

More detailed information about SAM D21

http://www.atmel.com/tools/atsamd21-xpro.aspx

 

3.2 

Atmel SmartConnect ATWINC3400-XPRO Wi-Fi Extension Board 

Atmel SmartConnect ATWINC3400 is an IEEE

®

 802.11 b/g/n IOT network controller SoC. It is the ideal add-on 

to existing MCU solutions bringing Wi-Fi and Network capabilities through SPI-to-Wi-Fi interface. The 
ATWINC3400 connects to any Atmel AVR or SMART MCU with minimal resource requirements. The 
ATWINC3400 most advanced mode is a single stream 1x1 802.11n mode providing up to 72Mbps PHY 
throughput. ATWINC3400 features fully integrated Power Amplifier, LNA, Switch, and Power Management. 
The ATWINC3400 provides internal Flash memory as well as multiple peripheral interfaces including UART, 
SPI, and I

2

C. The only external clock source needed for the ATWINC3400 is a high-speed crystal or oscillator 

with a wide variety of reference clock frequencies supported (between 12 

– 32MHz). The ATWINC3400 is 

available in a QFN package. 

 

 

 

 

IEEE 802.11 b/g/n (1x1) for up to 72Mbps 

 

BLE Provisioning 

 

Integrated PA and T/R Switch 

 

Superior sensitivity and range via advanced PHY signal processing 

 

Wi-Fi Direct

®

, station mode, and Soft-AP support 

 

Supports IEEE 802.11 WEP, WPA2 Security Enterprise 

 

On-chip memory management engine to reduce host load 

 

8Mb internal Flash memory with OTA firmware upgrade 

 

SPI as host interfaces 

 

TCP/IP protocol stack (client/server) sockets applications 

 

Network protocols (DHCP/DNS) 

Содержание ATWINC3400

Страница 1: ... following topics will be covered How to get Atmel Studio IDE and install it Update new ASF package Target board information How to get time client example project How to get log message How to download firmware and certificate Prerequisites Hardware Prerequisites Atmel SAM D21 Xplained Pro Evaluation Kit Atmel ATWINC3400 XPRO extension board Atmel IO1 extension board Micro USB cable Micro A Micro...

Страница 2: ...th Atmel Hardware 7 3 1 Atmel SMART SAMD21 XPRO Evaluation Kit 7 3 2 Atmel SmartConnect ATWINC3400 XPRO Wi Fi Extension Board 8 3 3 Atmel IO1 XPRO Sensor Extension Board 9 3 4 Atmel OLED1 XPRO Display Extension Board 10 4 How to Debug ATWINC3400 Wi Fi Firmware 11 5 How to Download New ATWINC3400 Firmware 12 5 1 Download Firmware 12 6 Getting Started with ATWINC3400 IoT Examples 15 6 1 Organization...

Страница 3: ...sing SAMD21 Xplained Pro_UserGuide_02 2016 3 3 1 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 ...

Страница 4: ...ne apps store for development tools and embedded software Atmel Spaces is a cloud based collaborative development workspace allowing you to host software and hardware projects targeting Atmel MCUs Download and install Atmel Studio 7 0 from http www atmel com tools ATMELSTUDIO aspx You can find the installed directory C Program Files x86 Atmel Atmel Studio 7 0 2 2 Download and Install the Latest AS...

Страница 5: ...ide for ATWINC3400WiFi using SAMD21 Xplained Pro_UserGuide_02 2016 5 5 2 2 1 How to Update Atmel Studio to the Latest Version 1 Run Atmel Studio 7 0 2 You can see the start page of Atmel Studio 7 0 Update ASF to the latest version Menu Tools Extension Manager Available Downloads Updates Atmel Software Framework ...

Страница 6: ...arted Guide for ATWINC3400WiFi using SAMD21 Xplained Pro_UserGuide_02 2016 6 6 Select an extension and proceed with download and installation Restart Atmel Studio to take effect of the newly installed extension 3 Restart Atmel Studio 4 Open the Tools and Document via File New Example Project Ctrl Shift E ...

Страница 7: ...ART SAMD21 XPRO Evaluation Kit The Atmel SAM D21 Xplained Pro evaluation kit is ideal for evaluating and prototyping with the Atmel SAM D21 ARM Cortex M0 based microcontrollers Extension boards to the SAM D21 Xplained Pro can be purchased individually SAMD21J18A microcontroller One mechanical reset button One mechanical user pushbutton wake up bootloader entry or general purpose One yellow user LE...

Страница 8: ...SMART MCU with minimal resource requirements The ATWINC3400 most advanced mode is a single stream 1x1 802 11n mode providing up to 72Mbps PHY throughput ATWINC3400 features fully integrated Power Amplifier LNA Switch and Power Management The ATWINC3400 provides internal Flash memory as well as multiple peripheral interfaces including UART SPI and I2C The only external clock source needed for the A...

Страница 9: ...1 Xplained Pro extension board is a generic extension board for the Xplained Pro platform It connects to any Xplained Pro standard extension header on any Xplained Pro MCU board The extension board utilizes all functions on the standard Xplained Pro extension header to further enhance the feature set of Xplained Pro MCU boards microSD card connector 2GB microSD card included Accessed with SPI inte...

Страница 10: ...oard to the Atmel Xplained Pro evaluation platform The board enables the user to experiment with user interface applications with buttons LEDs and a display UG 2832HSWEG04 monochrome OLED display 128 x 32 pixels Controlled by 4 wire SPI interface up to 100MHz Three LEDs Three mechanical push buttons Xplained Pro hardware identification system More detailed information about Atmel OLED1 Xplained Pr...

Страница 11: ...3400 Xplained Pro board provides UART interface for debugging You can connect the ATWINC3400 XPRO board to your PC using a USB to Serial device and a debug USB connector to get firmware debug information Open the ATWINC3400 DEBUG USB serial COM port with the following settings 460800 baud 8 bit data No parity One stop bit DTR DSR flow control Open a serial terminal tool to see the result ATWINC340...

Страница 12: ...re The SAM D21 Xplained Pro The ATWINC3400 XPRO on EXT1 header Connect the SAM D21 DEBUG USB PORT to the USB port on your PC Do not connect SAM D21 VIRTUAL COM PORT via terminal program STEP1 Build the Serial Bridge application on the SAM D21 Board 1 Open samd21_xplained_pro_serial_bridge project located under src Tools from the release package This project supports serial bridge function on SAM D...

Страница 13: ...d Firmware check OK Chiperase completed successfully Firmware check OK Programming completed successfully Mode UART Downloading Image Programmer for WINC3400 SPI Flash Owner Atmel Corporation TX Gain Builder for WINCxxxx Owner Atmel Corporation WINC3400 Root Certificate Flash Downloader Done This task finished after 2 92 sec OK Downloading ends successfully FAILED firmware download The following i...

Страница 14: ...path Downloading Image Programmer for WINC3400 SPI Flash Owner Atmel Corporation 2B0 Path firmware m2m_aio_2b0 bin 3A0 Path firmware m2m_aio_3a0 bin 3400 Path firmware m2m_aio_3400 bin Init Programmer Detecting ports EDBG Virtual COM Port COM37 APP ERR nm_bus_port_detect 567 Failed to find any COM ports 0 of ports found ERR Failed To intilize programmer Fail If you see a failed message you must ch...

Страница 15: ...re Wi Fi with using WEP WPA WPA2 security How to connect to enterprise security network How to connect to security WPS How to get RF signal status by reading RSSI value How to set AP provision How to set HTTP provision 6 1 2 Protocol Examples After basic code examples the user may be interested in how to send and receive network packets Here are protocol examples that can be extended for IoT appli...

Страница 16: ...lution to add wireless capabilities to any user application This software is based on the Atmel Software Framework ASF and is configured to use an ATWINC3400 Wi Fi module on EXT1 by default Note that switching to another extension port EXT2 or EXT3 is possible by modifying a configuration file Connecting several ATWINC3400 Wi Fi modules is possible but not supported by the provided Wi Fi Software ...

Страница 17: ..._02 2016 1 7 17 6 3 How to Get Time Client Example Project This example demonstrates the use of the ATWINC3400 with the SAM D21 Xplained Pro board to receive time information from a time server It uses the following hardware The SAM D21 Xplained Pro The ATWINC3400 on EXT1 header The IO1 on EXT2 header A wireless access point A mobile device for provisioning Time Server ...

Страница 18: ... Getting Started Guide for ATWINC3400WiFi using SAMD21 Xplained Pro_UserGuide_02 2016 1 8 18 1 Open the Time client example via File New Example Project Ctrl Shift E Input Time Client in the search window then you can find an example named like WINC3400 Time Client Example SAM D21 Xplained Pro ...

Страница 19: ... MAIN_WLAN_SSID MAIN_WLAN_AUTH and MAIN_WLAN_PSK to reflect your own AP settings 6 4 How to Build and Execute This guide demonstrates how to build an example and execute it on the SAM D21 Xplained Pro 1 Build the solution F7 and ensure you get no errors 2 Connect the ATWINC3400 Wi Fi extension and the IO1 extension to the SAM D21 Xplained Pro as displayed below 3 Connect the SAM D21 Xplained Pro b...

Страница 20: ...al Wire Debug as Interface and increase the SWD clock frequency to 12MHz 7 Click again on the Start Debugging and Break icon 8 The application will be programmed in the SAM D21 embedded flash and breaks at main function Click on continue to execute the application You may be asked to upgrade your EDBG firmware If so click on Upgrade button Upgrade operation may take a few minutes wait for the oper...

Страница 21: ...erred serial terminal such as PuTTY TeraTerm etc You can also use terminal window plug in in Atmel studio You can install it through below menu Menu Tools Extension Manager Connect to the device The following information will be displayed on the terminal window WINC3400 time client example SAMD21_XPLAINED_PRO Compiled XXX XX XXXX XX XX XX APP INFO Chip ID 3400d0 APP INFO Firmware ver X X X wifi_cb...

Страница 22: ...valuation kit and an example of use of the Atmel ATWINC3400 Wi Fi module The following topics have been covered How to get Atmel Studio IDE and install it Update new ASF package Target board information How to get time client example project How to update firmware and getting log message You have seen how to use the ATWINC3400 Wi Fi module and manage module software up to date It is an essential p...

Страница 23: ...3400 W Fi using SAM D21 Xplained Pro USER GUIDE Atmel 42640A Getting Started Guide for ATWINC3400WiFi using SAMD21 Xplained Pro_UserGuide_02 2016 2 3 23 8 Revision History Doc Rev Date Comments 42640A 02 2016 Initial document release ...

Страница 24: ...QUENTIAL PUNITIVE SPECIAL OR INCIDENTAL DAMAGES INCLUDING WITHOUT LI MITATION 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 accurac y or completeness of the contents of this document a...

Отзывы: