background image

 

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

 

 

Figure 30. Failed to connect to IoT Core

 

 

12

 

Troubleshooting 

 
If you have any questions or problems while using the WizFi360-EVB-Pico examples, please 
leave them at the link below. 
 

 

WIZnet Developer Forum

 

 

WizFi360-EVB-Pico-C Issues

 

 

WizFi360-EVB-Pico-AWS-C Issues

 

 

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

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

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

Страница 3: ...Copyright 2022 WIZnet Co Ltd All rights reserved 1 Document Information 1 1 Revision History Version Date Description of change Version Date Description of change V1 0 0 2022 06 24 Initial Release ...

Страница 4: ...Fi connectivity using WizFi360 The WizFi360 EVB Pico has the same role as the Raspberry Pi Pico platform and includes WizFi360 so the Wi Fi function is basically included Raspberry Pi Pico Clone Wi Fi WizFi360 Wi Fi Module Figure 1 WizFi360 EVB Pico 3 Hardware Description 3 1 DataSheet https docs wiznet io assets images WizFi360 EVB Pico_SCH_V100 1 44628336cfa4d71657c04fbf4bf9b8c4 png ...

Страница 5: ...opyright 2022 WIZnet Co Ltd All rights reserved Figure 2 WizFi360 EVB Pico schematic 3 2 Standard Kit Contents WizFi360 EVB Pico 1EA 1 x 20 2 54mm pitch pin header 2EA Figure 3 WizFi360 EVB Pico package ...

Страница 6: ...en Source Hardware wizfi360 evb pico 4 Set up your Development Environment 4 1 Tools Installation IDEs Toolchains SDKs Windows 10 was used during preparation of this guide document Linux and MacOS user should use compatible software hardware wise 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 ...

Страница 7: ...rom 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 Figure 5 Install ARM GCC compiler During 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 ...

Страница 8: ...llation add CMake to the system PATH for all users when prompted by the installer Install Build Tools for Visual Studio Figure 7 Install Build Tools for Visual Studio When prompted by the Build Tools for Visual Studio installer you need to install the C build tools only Install Python 3 9 ...

Страница 9: ... 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 Figure 8 Install Python Install Git When installing Git you should ensure that you change the default editor away from vim ...

Страница 10: ...Copyright 2022 WIZnet Co Ltd All rights reserved Figure 9 Install Git Install Visual Studio Code During the installation add Visual Studio Code to the system PATH ...

Страница 11: ...iznet WizFi360 EVB Pico 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 D RP2040 git clone b main https github com Wiznet WizFi360 EVB Pico AWS C git D RP2040 cd WizFi360 EVB Pico AWS C D RP2040 WizFi360 ...

Страница 12: ...ed 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 Opening Visual Studio Code from Developer Command Prompt Open Extensions ...

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

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

Страница 15: ...the project upon opening Click CMake in the bottom bar to select the kit WizFi360 EVB Pico 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 requi...

Страница 16: ...ion 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 WizFi360 EVB Pico front ...

Страница 17: ...e 18 WizFi360 EVB Pico pin out WizFi360 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 GPIO4 GPIO5 GPIO6 GPIO7 GPIO20 are connected to WizFi360 inside the board These pins enable UART ...

Страница 18: ... 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 the 3 3V which also de powers the RP2040 and WizFi360 short this pin low PIN36 3V3 Main 3 3V supply to RP2040 and WizFi360 generated by the on board LDO PIN35 ADC_VREF ADC power supply and reference voltage and is generated on WizFi360 EVB Pico by ...

Страница 19: ...ed 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 WizFi360 EVB Pico AWS C examples aws_mqtt_demo directory uint8_t mqtt_root_ca BEGIN CERTIFICATE r n r n END CERTIFICATE r n uint8_t mqtt_client_cert BEGIN CERTIFICATE r n r n END CERTIFICATE r n uint8_t mqtt_private_key BEGIN RSA PRIV...

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

Страница 21: ...ure 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 WizFi360 EVB Pico with Tera Term Figure 21 Connect to the serial COM port of WizFi360 EVB Pico ...

Страница 22: ...o 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 WizFi360 EVB Pico you can see the network information of WizFi360 EVB Pico connecting to the AWS IoT and publishing the message ...

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

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

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

Страница 26: ...ed Figure 27 Connect to the serial COM port of WizFi360 EVB Pico When connecting to the serial COM port of WizFi360 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 ...

Страница 27: ... All rights reserved Figure 28 Set up serial port If everything works normally you can see the Wi Fi connection log publishing the message at intervals of 10 seconds and receiving the message about the subscribe topic through logs ...

Страница 28: ...Copyright 2022 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 ...

Страница 29: ...ure 30 Failed to connect to IoT Core 12 Troubleshooting If you have any questions or problems while using the WizFi360 EVB Pico examples please leave them at the link below WIZnet Developer Forum WizFi360 EVB Pico C Issues WizFi360 EVB Pico AWS C Issues ...

Отзывы: