ST Americas mbed Team


Information on how to use the STM32 Nucleo board with mbed

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.

/media/uploads/johnbloomfield/img_7617.jpg

  • Plug the STM32F401 Nucleo to your PC with a USB cable

The mbed page for the Wiznet W5500 Host Library is found here:

/media/uploads/johnbloomfield/wiznet_libs.jpg

Wiznet W5500 libary import

The API documentation for the library will show you all the library commands available for this module.

/media/uploads/johnbloomfield/wiznet_api_capture.jpg

  • Go to Wiznet_Libs and import this example program into your mbed compiler by clicking the “Import this program” button

/media/uploads/johnbloomfield/wiznet_import.jpg

  • Click the “Import” button on the pop up window shown below
  • Open the "main.cpp file"
  • Add TARGET_NUCLEO_F401RE to the file"

/media/uploads/johnbloomfield/wiznet_target_nucleo_f401re_capture.jpg

  • 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.

/media/uploads/johnbloomfield/wiznet_ping_capture.jpg

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.


All wikipages