STM32F4 Ethernet Bring-Up

Job ID: 40162202

Budget: $250 – $750 AUD

I have designed a board using an STM32F417VG cpu. I am using this device with PlatformIO, arduino framework (stm32duino) and using the board genericSTM32F417VG in the configuration file. I have implemented a wired ethernet MAC using RMII and LAN8710A.

When I try to compile demo code, I get errors like the following one amongst others. I have tried many solutions and cannot get them to work.

bin/libdeps/genericSTM32F417VG/STM32Ethernet/src/utility/ethernetif.cpp:556:37: error: 'ETH_MODE_HALFDUPLEX' was not declared in this scope
556 | EthHandle.Init.DuplexMode = ETH_MODE_HALFDUPLEX;


Scope of the project

Essentially, I want to be able to compile the demo code for this processor. Ideally I would like to have operational wired ethernet, but since this requires hardware, I am happy for code that compiles.

I would like the changes to be predominantly with the platformio.ini file, specifying libraries and such. I want to be able to maintain this solution in the long term.

I have attached the project that I want to be able to compile.