Adding Connectivity Wiznet W5500 module
Adding Connectivity: Wiznet W5500 Ethernet Module¶
The Wiznet W5500 Shield is an 802.11 Ethernet module that will allow your device to connect to an Ethernet network.
- Connect the Wiznet W5500 shield board into your Nucleo board as shown in picture below.
- Plug the STM32F401 Nucleo to your PC with a USB cable
The mbed page for the Wiznet W5500 Host Library is found here:
The API documentation for the library will show you all the library commands available for this module.
- Go to Wiznet_Libs and import this example program into your mbed compiler by clicking the “Import this program” button
- Click the “Import” button on the pop up window shown below
- Open the "main.cpp file"
- Add TARGET_NUCLEO_F401RE to the file"
- Compile and load the image onto the F401 Nucleo drive
- Open a terminal window to display the status of your Cellular connection. For this example, set the terminal BAUD rate to 115200
Note
Additional information on how to set up a terminal window for console output can be found here: Creating Console Output
Once the BAUD rate is set, you may need to unplug then replug your Nucleo board and restart your terminal program with the correct BAUD rate settings. You can also reset your program by pushing the Black reset button on the Nucleo board.
You will receive a message on your terminal console of the IP address assigned from the network to your W5500 module and if you ping that IP of the module via another PC or laptop (from the command prompt) your device is connected if ping returns data.