Create Resources in AWS IoT ..................... 18 Provision the Device with credentials ................. 18 Build the demo ........................19 10 Run the demo ........................19 11 Debugging ..........................24 12 Troubleshooting ........................28 Copyright 2021 WIZnet Co., Ltd. All rights reserved.
Initial Release 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.
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 Copyright 2021 WIZnet Co., Ltd. All rights reserved.
Page 5
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 3 Party purchasable items None 3.5 Additional Hardware References Copyright 2021 WIZnet Co., Ltd. All rights reserved.
Download the executable installer for each of these from the links above, and then carefully follow the instructions in the following sections to install all six packages on to your Windows computer. ① Install ARM GCC compiler Copyright 2021 WIZnet Co., Ltd. All rights reserved.
Page 7
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. Copyright 2021 WIZnet Co., Ltd. All rights reserved.
Page 8
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. Copyright 2021 WIZnet Co., Ltd. All rights reserved.
Page 9
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 Copyright 2021 WIZnet Co., Ltd. All rights reserved.
Page 10
⑥ Install Visual Studio Code During the installation add Visual Studio Code to the system PATH. Figure 10. Install Visual Studio Code 2) Clone the Raspberry Pi Pico SDK and WIZnet example repository using below commands ∙ SDK : https://github.com/raspberrypi/pico-sdk ∙...
Page 11
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 Copyright 2021 WIZnet Co., Ltd. All rights reserved.
Page 12
⑥ 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 Copyright 2021 WIZnet Co., Ltd. All rights reserved.
Page 13
Figure 13. CMake Tools Extension Settings in Visual Studio Code Figure 14. Add CMake Configure Environment path Copyright 2021 WIZnet Co., Ltd. All rights reserved.
Page 14
4.2 Other software required to develop and debug applications for the device Serial terminal program is required for operation check and debugging. ∙ Tera Term You may use your preferred serial terminal program. Copyright 2021 WIZnet Co., Ltd. All rights reserved.
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 Copyright 2021 WIZnet Co., Ltd. All rights reserved.
Page 16
Figure 17. W5100S-EVB-Pico back Figure 18. W5100S-EVB-pico pin-out Copyright 2021 WIZnet Co., Ltd. All rights reserved.
W5100S-EVB-Pico pin-out is directly connected to the GPIO of RP2040 as shown in the picture above. It has the same pinout as the Raspberry Pi Pico board. However, GPIO16, GPIO17, GPIO18, GPIO19, GPIO20, GPIO21 are connected to W5100S inside the board. These pins enable SPI communication with W5100S to use Ethernet function.
② 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. Copyright 2021 WIZnet Co., Ltd. All rights reserved.
Page 20
Figure 20. Automatically 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...
Page 21
④ 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 Figure 22. Set up serial port ⑤...
Page 22
Figure 23. Publish the message from W5100S-EVB-Pico Figure 24. Receive the message about subscribed topic from IoT Core Copyright 2021 WIZnet Co., Ltd. All rights reserved.
Page 23
⑦ 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 Copyright 2021 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. Copyright 2021 WIZnet Co., Ltd. All rights reserved.
Page 25
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...
Page 26
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. Copyright 2021 WIZnet Co., Ltd. All rights reserved.
Page 27
Figure 29. works normally ④ If there occurs any problem, the error log is printed showing function what the problem has occurred. Copyright 2021 WIZnet Co., Ltd. All rights 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 Copyright 2021 WIZnet Co., Ltd. All rights reserved.