Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
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:
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
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?
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 2015I had to connect the WIZ SPI pins to the Arduino SPI pins. Like this: