background image

 

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

Atmel-42417A-Getting-Started-Guide-for-ATWINC1500WiFi-using-SAMD21-Xplained-Pro_UserGuide_032015 

1
7
 

17 

5.  You will be asked to select your debug tool: 

 

6.  Select EDBG and SWD (Serial Wire Debug) as Interface. 

 

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 operation to complete. 

 

The example is now programmed and running. 

 

Содержание ATWINC1500

Страница 1: ...firmware The following topics will be covered How to get Atmel Studio IDE and install it Update new ASF package Target board information How to get weather 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 ATWINC1500 extension Atmel IO1 extension Micro USB cable Micro A Micro B...

Страница 2: ... with Atmel Hardware 8 2 1 Atmel SMART SAMD21 XPRO Evaluation Kit 8 2 2 Atmel SmartConnect ATWINC1500 XPRO Wi Fi Extension Board 9 2 3 Atmel IO1 XPRO Sensor Extension Board 10 2 4 Atmel OLED1 XPRO Display Extension Board 10 3 Getting Started with ATWINC1500 IoT Examples 12 3 1 Organization of ATWINC1500 IoT Examples 12 3 2 Connect the Board 13 3 3 How to Get Weather Client Example Project 14 3 4 H...

Страница 3: ...using SAMD21 Xplained Pro_UserGuide_032015 3 3 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: ...ine 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 6 2 from http www atmel com microsite atmel_studio6 You can find the installed directory C Program Files Atmel Atmel Studio 6 2 1 2 Download and Install the latest ASF ...

Страница 5: ...l 42417A Getting Started Guide for ATWINC1500WiFi using SAMD21 Xplained Pro_UserGuide_032015 5 5 1 2 1 How to update Atmel Studio to the latest version 1 Run Atmel Studio 6 2 2 You can see the start page of Atmel Studio 6 3 Update ASF to the latest version Menu Tools Extension Manager ...

Страница 6: ...installed extension 1 3 Download and Install the Latest ATWINC1500 Extension Package ATWINC1500 Extension package contains the ATWINC1500 software latest firmware Firmware update Tools and Example projects As an Atmel Studio Extension vsix file which can be found on the Atmel Gallery web site http gallery atmel com or using the Atmel Studio Extension manager 1 Atmel Studio Menu Tools Extension Man...

Страница 7: ...estart Atmel Studio 5 Open the Tools and Document via File New Example Project Ctrl Shift E 6 Input FIRMWARE in the search window then you can find an example named like WINC1500_FIRMWARE_UPDATE_AND_DOCUMENTATION This project contains documentation and tools to upgrade ATWINC1500 firmware to the specific version which is matched up with the Wi Fi driver in example projects It also contains documen...

Страница 8: ...RT 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 LED...

Страница 9: ...nced mode is a single stream 1x1 802 11n mode providing up to 72Mbps PHY throughput ATWINC1500 features fully integrated Power Amplifier LNA Switch and Power Management The ATWINC1500 provides internal Flash memory as well as multiple peripheral interfaces including UART SPI and I2C The only external clock source needed for the ATWINC1500 is a high speed crystal or oscillator with a wide variety o...

Страница 10: ...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 interface PWM LED control PWM Low pass filter ADC ADC PWM Low pass filter ADC Light sensor UART Loopback interface via pin header TWI AT30TSE758 Temperature sensor with EEPROM Xplained Pro hardware iden...

Страница 11: ...lained Pro_UserGuide_032015 1 1 11 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 Pro http www atmel com images atmel 42077 oled1 xplained pro_user guide pdf ...

Страница 12: ... WPA WPA2 security How to connect to enterprise security network How to connect to security WPS How to set packet monitoring How to get RF signal status by reading RSSI value How to set AP provision How to set HTTP provision 3 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...

Страница 13: ...on to add wireless capabilities to any user application This software is based on the Atmel Software Framework ASF and is configured to use an ATWINC1500 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 ATWINC1500 Wi Fi modules is possible but not supported by the provided Wi Fi Software API ...

Страница 14: ...5 1 4 14 3 3 How to Get Weather Client Example Project This example demonstrates the use of the ATWINC1500 with the SAM D21 Xplained Pro board to receive weather information from a weather server It uses the following hardware The SAM D21 Xplained Pro The ATWINC1500 on EXT1 header The IO1 on EXT2 header A wireless access point A mobile device for provisioning Weather Server ...

Страница 15: ...Getting Started Guide for ATWINC1500WiFi using SAMD21 Xplained Pro_UserGuide_032015 1 5 15 1 Open the Weather client example via File New Example Project Ctrl Shift E 2 Input WEATHER in the search window then you can find an example named like SAMD21_XPLAINED_PRO_WINC1500_WEATHER_CLIENT_EXAMPLE ...

Страница 16: ...e code of the example 3 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 ATWINC1500 Wi Fi extension and the IO1 extension to the SAM D21 Xplained Pro as displayed below 3 Connect the SAM D21 Xplained Pro board to your PC using DEBUG USB connector 4 Program the app...

Страница 17: ...lect EDBG and SWD Serial Wire Debug as Interface 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 operation to complete The ex...

Страница 18: ...ug 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 WINC1500 weather client example SAMD21_XPLAINED_PRO Compiled xxx xx xxxx xx xx xx Provision Mode started Connect to atmelconfig com via AP WINC1500_08 CA and fill up the page 3 5 Provisioning As seen in the log message the...

Страница 19: ...Atmel 42417A Getting Started Guide for ATWINC1500WiFi using SAMD21 Xplained Pro_UserGuide_032015 1 9 19 3 5 1 To set up a desired AP 1 Connect your mobile device to ATWINC1500 in Wi Fi Setting 2 Browse the webpage atmel com for setting AP fill up the page then press Connect button ...

Страница 20: ... device will be disconnected from your ATWINC1500 4 After the network is online the device will communicate with the weather server The weather info will be shown on the terminal window Wi Fi IP is xxx xxx xxx xxx wifi_cb M2M_WIFI_RESP_PROVISION_INFO Wi Fi connected Wi Fi IP is xxx xxx xxx xxx Host IP is 144 76 102 166 Host Name is openweathermap org City Seoul Temperature 20 63 Weather Condition ...

Страница 21: ...B serial COM port with the following settings 115200 bauds 8 bit data No parity One stop bit No flow control Open a serial terminal tool to see the result ATWINC1500 Wi Fi Firmware Debug information 1 Chip ID 1502b1 1 Flash ID c21320c2 Size 4 MBit 1 Working Image offset 0x3000 Rollback 0x40000 2 M2M Efuse successfully loaded from bank 1 2 EFUSE MAC 2 M2M MAC_ADDR F8 F0 05 20 AE BF 3 NMI M2M SW VER...

Страница 22: ...owing hardware The SAM D21 Xplained Pro The ATWINC1500 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 and run the Serial Bridge application on the SAMD21 Board 1 Open SAMD21_XPLAINED_PRO_WINC1500_FIRMWARE_UPDATE project via File New Example Project Refer to Section 3 3 How to Get Weather Client E...

Страница 23: ...Firmware check OK Chiperase completed successfully Firmware check OK Programming completed successfully Mode UART Can not find image_builder path Downloading Image Programmer for WINC1500 SPI Flash Owner Atmel Corporation Init Programmer Detecting ports EDBG Virtual COM Port COM4 APP INFO WINC1500 Serial Bridge Found Avail port COM4 1 of ports found Start erasing Done Erase time 4 633000 sec Start...

Страница 24: ...pleted successfully Firmware check OK Programming completed successfully Mode UART Can not find image_builder path Downloading Image Programmer for WINC1500 SPI Flash Owner Atmel Corporation Init Programmer Detecting ports EDBG Virtual COM Port COM4 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 mu...

Страница 25: ...r to Section 1 3 Download and Install the Latest ATWINC1500 Extension Package 2 Go to src firmware Tools root_certificate_downloader crt You can find some cer files in the directory FreeRadius_Root cer NMA_Root cer PROWL_Root cer Radius_Root cer Copy your Test_Root cer file FreeRadius_Root cer NMA_Root cer PROWL_Root cer Radius_Root cer Test_Root cer 3 Modify the bat file as below Find the RootCer...

Страница 26: ...n kit and an example of use of the Atmel ATWINC1500 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 weather client example project How to update firmware certificates and getting log message You have seen how to use the ATWINC1500 Wi Fi module and manage module software up to date It is an ess...

Страница 27: ...C1500 W Fi using SAM D21 Xplained Pro USER GUIDE Atmel 42417A Getting Started Guide for ATWINC1500WiFi using SAMD21 Xplained Pro_UserGuide_032015 2 7 27 7 Revision History Doc Rev Date Comments 42417A 03 2015 Initial document release ...

Страница 28: ...ECT CONSEQUENTIAL 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 accuracy or completeness of the contents of this do...

Отзывы: