[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]
Getting Started [Wiznet Github]
0
Project description
I’m thrilled to write this post, thanks to the tremendous help of Team Leader Viktor!
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883411333%5F1736418437%2Epng.jpg)
Continuing from the previous post, this time we’ll walk through running Wiznet’s Loopback example from their GitHub repository in the VS Code environment. The reason for choosing the Loopback example is simply because it’s easy to test. For the setup, make sure your network environment allows the PC and the board to use the same IP range (e.g., connecting them via the same router).
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883411333%5F1736418460%2Epng.jpg)
First, download GitHub Desktop. You can follow the link below or search for it online: https://desktop.github.com/download/
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883411333%5F1736418481%2Epng.jpg)
Install the file you downloaded.
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883411333%5F1736418498%2Epng.jpg)
After installation, log in to your GitHub account.
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883411333%5F1736418515%2Epng.jpg)
Once logged in, you’ll see the initial screen.
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883411333%5F1736418530%2Epng.jpg)
Using your web browser, visit the WIZnet-ioNIC GitHub repository and select WIZnet-PICO-C:
https://github.com/orgs/WIZnet-ioNIC/repositories
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883411333%5F1736418553%2Epng.jpg)
On the right, select Code and then choose Open with GitHub Desktop.
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883411333%5F1736418858%2Epng.jpg)
GitHub Desktop will launch, and the repository URL will be added automatically. Choose an appropriate Local Path, then click Clone.
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883411333%5F1736418871%2Epng.jpg)
You’ll see the cloning process in progress.
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883411333%5F1736418886%2Epng.jpg)
Once cloning is complete, select Open in Visual Studio Code.
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883412169%5F1736428138%2Epng.jpg)
VS Code will launch, and a prompt asking if you want to import the project will appear in the bottom right. Select YES.
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883411333%5F1736418908%2Epng.jpg)
A Pico Import screen will appear with the Location field pre-filled. Click the Import button.
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883412169%5F1736428091%2Epng.jpg)
The WIZnet-PICO-C project will open, and you may see error messages in the OUTPUT panel.
Select C/C++ Configuration at the bottom right and choose CMake/Build.
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883412169%5F1736428198%2Epng.jpg)
Next, open the CMakeLists.txt file and choose the board to use.
By default, W5500_EVB_PICO is selected. Comment it out by adding a # in front.
Uncomment the board you want to use, in this case, W55RP20_EVB_PICO, and save the file.
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883411333%5F1736418948%2Epng.jpg)
Navigate to the examples folder and open CMakeLists.txt. Comment out all examples except the one you plan to use. Since I’ll be using the Loopback example, I’ve commented out the others.
(Note: If you don’t comment out unused examples, the compilation will take much longer.)
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883411333%5F1736418961%2Epng.jpg)
In the examples folder, select the Loopback directory and open w5x00_loopback.c.
Update the network settings to match your environment. For the port, enter an appropriate value (the default is 5000).
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883411333%5F1736418975%2Epng.jpg)
Compile the code by pressing F5.
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883411333%5F1736418991%2Epng.jpg)
Using File Explorer, navigate to WIZnet-PICO-C/build/examples/loopback.
You’ll find the newly created w5x00_loopback.uf2 file.
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883411333%5F1736418998%2Epng.jpg)
Prepare the W55RP20-EVB-PICO by holding down the BOOTSEL button, pressing the RUN switch for one second, and releasing it. The RPI-RP2 driver will appear.
Copy the w5x00_loopback.uf2 file to this driver.
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883411333%5F1736419011%2Epng.jpg)
Connect the Ethernet network. You’ll see the LED light up, as shown above.
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883411333%5F1736419022%2Epng.jpg)
Ensure the PC is on the same network. Use the command line to send a PING and confirm a response, as shown on the right.
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883412169%5F1736428315%2Epng.jpg)
Launch Hercules (or any other TCP Client program).
Select TCP Client, enter the server information from the example code, and click Connect.
![[W55RP20 Project #3] Development Environment: Getting Started[Wiznet Github]](/upload/_thumb/1280/ckeditor5/883412169%5F1736428368%2Epng.jpg)
In the Sendbox at the bottom, enter any data and press Send. You should receive the same message in response.
Finally, the environment setup is complete!
Thank you!