An Nucleo F401RE and Ethernet shiled based on W5100

06 Dec 2014

Hello Folks, Today I was bit lucky to get an Arduino Ethernet shield based on W5100 chip. The question is, is it possible to connect it to Nucleo board (F401RE), and if so, then how? Can you point me on some examples or working exmaple code, where do I start with that? Thanks everyone! I'm bit new to STM boards, did some LED blinking and terminal messaging and thats it.

23 Dec 2014

Hi Nickolay:

Were you able to make an progress with this project?

I tried to interface the Wiznet 820io with the F401RE but found it very hard to make work reliably. Some of the issues are with the base SPI libraries which seem to have some problems on the nucleo. Many of the cookbook spi routines do not work at all with the STM boards unless you are willing to port it over to stm processors.

From my experience UDP was easier to get started with than TCP.

Doug

24 Dec 2014

Hi Nickolay

I think that you had better use WIZnet Library. If you want, you can download it this URL. http://developer.mbed.org/teams/WIZnet/code/WIZnet_Library/

And then you have to change wiznet.h file as below.

#pragma once

#include "mbed.h"
#include "mbed_debug.h"

//#define USE_W5500
//#define USE_W5200
#define USE_W5100

#if defined(USE_W5500)
#include "W5500.h"

//#define USE_WIZ550IO_MAC    // using the MAC address stored in the WIZ550io

#endif

#if defined(USE_W5200)
#include "W5200.h"
#endif

#if defined(USE_W5100)
#include "W5100.h"

#endif

If you use it, you can develop what you want more easy.

25 Dec 2014

Thanks for your input!

Doug Morgan, I've stepped back until I learn more. Unfortunately, mbed forums appear to be low populated, and it takes a lot of time to get an answer :)

DongEun Koak, Thanks, Ill get back to this project later in January. Gonna try this!

Ill keep this thread updated upon my research. Regards

25 Dec 2014

Hi, I just performed successful test MQTT client with Nucleo F401RE and W5200 today. You may take a look how to wire the shield and board and my modified code.

http://developer.mbed.org/users/hillkim7/notebook/ibmiotclientethernetexample_w5200/ https://developer.mbed.org/users/hillkim7/code/IBMIoTClientEthernetExample_W5200/

28 Dec 2014

Hi Nickolay,

I got a set up with the Nucleo F401 and the Arduino Ethernet shield R3 working with the Wiznet library as suggested by DongEun Koak. I also agree with Doug there are some problems with SPI on these boards. I think the chip selects need to be set very carefully. Passing the spi instance into the function did not work when I tried it. I published my code if you want to try it out.

Import programEmbedded_web_wiznet

Local version for working on Nucleo F401 and Ethernet shield

Regards

Ian

29 Dec 2014

ths, Nickolay.

29 Dec 2014

Hey friends, Im currently on my mobile, will get back to this by middle of january. Thanks for help, much appreciated, Nick