background image

 

Copyright 2021 WIZnet Co., Ltd. All rights reserved.

 

 

 

 

 

 

 

W5100S-EVB-Pico

 

Getting Started Guide

 

for AWS IoT Core

 

 

Version 1.0.0

 

 

 

 

 

 

 

 

 

 

 

 

 

http://www.wiznet.io/

 

 

 

Содержание W5100S-EVB-Pico

Страница 1: ...Copyright 2021 WIZnet Co Ltd All rights reserved W5100S EVB Pico Getting Started Guide for AWS IoT Core Version 1 0 0 http www wiznet io ...

Страница 2: ...verview 3 3 Hardware Description 4 4 Set up your Development Environment 6 5 Set up your hardware 15 6 Setup your AWS account and Permissions 17 7 Create Resources in AWS IoT 18 8 Provision the Device with credentials 18 9 Build the demo 19 10 Run the demo 19 11 Debugging 24 12 Troubleshooting 28 ...

Страница 3: ... 2 Overview The W5100S EVB Pico is a microcontroller evaluation board based on the Raspberry Pi RP2040 microcontroller chip and full hardwired TCP IP controller W5100S chip The W5100S EVB Pico has the same role as the Raspberry Pi Pico platform and includes W5100S so the Ethernet function is basically included Raspberry Pi Pico Clone Ethernet W5100S Hardwired TCP IP CHIP Figure 1 W5100S EVB Pico ...

Страница 4: ...3 Hardware Description 3 1 DataSheet https docs wiznet io assets images w5100S evb_pico_schematic 52444497b86d1ef0550d99aba4c0c164 png Figure 2 W5100S EVB Pico schematic 3 2 Standard Kit Contents W5100S EVB Pico 1EA 1 x 20 2 54mm pitch pin header 2EA ...

Страница 5: ...eserved Figure 3 W5100S EVB Pico package 3 3 User Provided items USB type A to USB micro B cable Figure 4 USB type A to USB micro B cable Ethernet cable Desktop or laptop 3 4 3rd Party purchasable items None 3 5 Additional Hardware References ...

Страница 6: ...ise there is no difference Please refer to the guide in section 4 4 to find instructions for installing toolchain on Linux and MacOS 1 Install the Toolchain To build you will need to install extra tools below ARM GCC compiler CMake Build Tools for Visual Studio Python 3 9 Git Visual Studio Code Download the executable installer for each of these from the links above and then carefully follow the i...

Страница 7: ...ing installation you should check the box to register the path to the ARM compiler as an environment variable in the Windows shell when prompted to do so Install CMake Figure 6 Install CMake During the installation add CMake to the system PATH for all users when prompted by the installer ...

Страница 8: ...y the Build Tools for Visual Studio installer you need to install the C build tools only Install Python 3 9 During the installation ensure that it s installed for all users and add Python 3 9 to the system PATH when prompted by the installer You should additionally disable the MAX_PATH length limit when prompted at the end of the Python installation ...

Страница 9: ...Copyright 2021 WIZnet Co Ltd All rights reserved Figure 8 Install Python Install Git When installing Git you should ensure that you change the default editor away from vim Figure 9 Install Git ...

Страница 10: ...berry Pi Pico SDK and WIZnet example repository using below commands SDK https github com raspberrypi pico sdk Example https github com Wiznet RP2040 HAT AWS C create a project directory D mkdir RP2040 D cd RP2040 get the SDK D RP2040 git clone b master https github com raspberrypi pico sdk git D RP2040 cd pico sdk D RP2040 pico sdk git submodule update init get the example D RP2040 pico sdk cd ...

Страница 11: ...b com Wiznet RP2040 HAT AWS C git D RP2040 cd RP2040 HAT AWS C D RP2040 RP2040 HAT AWS C git submodule update init Figure 11 Get the SDK and example 3 Set up Visual Studio Code Open a new Visual Studio 2019 Developer Command Prompt Run the below command to open Visual Studio Code D code ...

Страница 12: ...ensions Figure 12 Install Extensions in Visual Studio Code Install some tools CMake Tools C C Open CMake Tools Extension Settings Scroll down and set up some items Add Cmake Configure Environment Item as PICO_SDK_PATH Add Cmake Configure Environment Value as D RP2040 pico sdk Add Cmake Generator as NMake Makefiles ...

Страница 13: ...Copyright 2021 WIZnet Co Ltd All rights reserved Figure 13 CMake Tools Extension Settings in Visual Studio Code Figure 14 Add CMake Configure Environment path ...

Страница 14: ... project upon opening Click CMake in the bottom bar to select the kit RP2040 HAT AWS C Select Debug Release based on your preference Visual Studio Code will save all file and configure the project Click on Build to build all examples if no error Build will finish with exit code 0 4 2 Other software required to develop and debug applications for the device Serial terminal program is required for op...

Страница 15: ...tion of Getting started with Raspberry Pi Pico document below to set up the development environment Getting started with Raspberry Pi Pico And refer to the links below for instructions how to setup environment and proceed with tests Getting Started with AWS IoT SDK Examples Connect AWS IoT through MQTT 5 Set up your hardware Figure 16 W5100S EVB Pico front ...

Страница 16: ...Copyright 2021 WIZnet Co Ltd All rights reserved Figure 17 W5100S EVB Pico back Figure 18 W5100S EVB pico pin out ...

Страница 17: ... 3 Apart from GPIO and ground pins there are 7 other pins on the main 40 pin interface Pin no Pin name Description PIN40 VBUS Micro USB input voltage connected to micro USB port pin 1 Nominally 5V PIN39 VSYS Main system input voltage which can vary in the allowed range 4 3V to 5 5V and is used by the on board LDO to generate the 3 3V PIN37 3V3_EN Connects to the on board LDO enable pin To disable ...

Страница 18: ...h credentials You need to enter the root certificate client certificate and private key that were downloaded earlier Root certificate uses the RSA 2048 bit key Amazon Root CA 1 and does not use the public key Device certificate and key can be set in mqtt_certificate h in RP2040 HAT AWS C Interface directory uint8_t mqtt_root_ca BEGIN CERTIFICATE r n r n END CERTIFICATE r n uint8_t mqtt_client_cert...

Страница 19: ...Visual Studio Code or press the F7 button on the keyboard to build When the build is completed aws_iot_mqtt uf2 is generated in RP2040 HAT AWS C build examples aws_iot_mqtt directory 10 Run the demo While pressing the BOOTSEL button of Raspberry Pi Pico or W5100S EVB Pico power on the board the USB mass storage RPI RP2 is automatically mounted ...

Страница 20: ...tomatically mounted USB mass storage RPI RP2 Drag and drop aws_iot_mqtt uf2 onto the USB mass storage device RPI RP2 Connect to the serial COM port of Raspberry Pi Pico or W5100S EVB Pico with Tera Term Figure 21 Connect to the serial COM port of W5100S EVB Pico ...

Страница 21: ...to set up the serial port Baud rate 115 200 Data bit 8 Parity bit none Stop bit 1 Flow control none Figure 22 Set up serial port Reset your board If the Connect AWS IoT through MQTT example works normally on W5100S EVB Pico you can see the network information of W5100S EVB Pico connecting to the AWS IoT and publishing the message ...

Страница 22: ...Copyright 2021 WIZnet Co Ltd All rights reserved Figure 23 Publish the message from W5100S EVB Pico Figure 24 Receive the message about subscribed topic from IoT Core ...

Страница 23: ...rights reserved If you publish the message through the test function in AWS IoT Core to the subscribe topic you can see that the W5100S EVB Pico receive the message about the subscribe topic Figure 25 Publish the message from IoT Core ...

Страница 24: ...1 WIZnet Co Ltd All rights reserved Figure 26 Receive the message about subscribed topic from W5100S EVB Pico 11 Debugging Connect to the serial COM port of W5100S EVB Pico with Tera Term to view logs and debugging ...

Страница 25: ...rved Figure 27 Connect to the serial COM port of W5100S EVB Pico When connecting to the serial COM port of W5100S EVB Pico use following settings to set up the serial port Baud rate 115 200 Data bit 8 Parity bit none Stop bit 1 Flow control none ...

Страница 26: ...ts reserved Figure 28 Set up serial port If everything works normally you can see the W5100S EVB Pico s network information publishing the message at intervals of 10 seconds and receiving the message about the subscribe topic through logs ...

Страница 27: ...Copyright 2021 WIZnet Co Ltd All rights reserved Figure 29 works normally If there occurs any problem the error log is printed showing function what the problem has occurred ...

Страница 28: ...hts reserved Figure 30 Failed in DNS 12 Troubleshooting If you have any questions or problems while using the W5100S EVB Pico examples please leave them at the link below WIZnet Developer Forum RP2040 HAT C Issues RP2040 HAT AWS C Issues ...

Отзывы: