9 years, 9 months ago.

Compatibility with F411RE

Is this compatible with F411RE? I see that the Hello world example uses some conditionals #elif defined(TARGET_LPC1768) to define the EthernetInterface.

Question relating to:

Hi Daniel, I also like to know. It couldn't get any Ethernet shield working on this Nucleo board sofar. Regards, Jack.

posted by Jack Berkhout 09 Feb 2015

I had to connect the WIZ SPI pins to the Arduino SPI pins. Like this:

    SPI spi(D11, D12, D13); // mosi, miso, sclk
    EthernetInterface eth(&spi, D10, D7); // spi, cs, reset
    spi.format(8,0); // 8bit, mode 0
    spi.frequency(7000000); // 7MHz
posted by Daniel Blendea 15 Feb 2015

3 Answers

9 years, 9 months ago.

Hi,

Nucleo F411 of ST has also same initialization. I think all nucleo board could use the code of serial and SPI init.

Use it at main:

    Serial pc(USBTX, USBRX);
    pc.baud(115200);
    SPI spi(SPI_MOSI, SPI_MISO, SPI_SCK); // mosi, miso, sclk
    EthernetInterface eth(&spi, PB_6, PA_9);//, nRESET(p9); // reset pin is dummy, don't affect any pin of WIZ550io
    spi.format(8,0); // 8bit, mode 0
    spi.frequency(7000000); // 7MHz
    wait(1); // 1 second for stable state

Accepted Answer
9 years, 9 months ago.

I found similar one in http://developer.mbed.org/teams/EthernetInterfaceW5500-makers/code/WIZnet_PPPoE/ please refer this. and our collegue have NUCLEO_F401 Board so i ask him to add it. maybe he answer again of his work.

#elif defined (TARGET_NUCLEO_F030R8)
    Serial pc(USBTX, USBRX);
    pc.baud(115200);
    SPI spi(SPI_MOSI, SPI_MISO, SPI_SCK); // mosi, miso, sclk
    EthernetInterface eth(&spi, PB_6, PA_9);//, nRESET(p9); // reset pin is dummy, don't affect any pin of WIZ550io
    spi.format(8,0); // 8bit, mode 0
    spi.frequency(7000000); // 7MHz
    wait(1); // 1 second for stable state
#elif defined (TARGET_NUCLEO_F334R8)
    Serial pc(USBTX, USBRX);
    pc.baud(115200);
    SPI spi(SPI_MOSI, SPI_MISO, SPI_SCK); // mosi, miso, sclk
    EthernetInterface eth(&spi, PB_6, PA_9);//, nRESET(p9); // reset pin is dummy, don't affect any pin of WIZ550io
    spi.format(8,0); // 8bit, mode 0
    spi.frequency(7000000); // 7MHz
    wait(1); // 1 second for stable state
#endif

9 years, 9 months ago.

Quickly scanning through it I don't see a reason why it shouldn't work. Where did you find the #ifdef part?

In Websocket_Ethernet_HelloWorld_W5500/main.cpp

posted by Daniel Blendea 10 Feb 2015

Those are just example pinouts in the HelloWorld program. In your program replace them with the pins you are using.

posted by Erik - 10 Feb 2015

Ok, thanks. I wouldn't want to buy the shield only to discover that I can't use it with my F411RE.

posted by Daniel Blendea 10 Feb 2015

I don't have the shield or the F411 myself, so I cannot give you any guarantees, only that I don't see any problems in the code.

posted by Erik - 10 Feb 2015