PlatformIO Community

Ethernet/wizchip_conf.h: No such file or directory

I use the W5500 with mbed os. Unfortunately, I need a configuration and I have no idea how to set it. I just get the error message:
Ethernet/wizchip_conf.h: No such file or directory
There are also some examples, but they look a bit extensive for just configuration.
I just want to use the W5500 with mbed os. I need a posix socket API in order to use another library. Is there any other good libraries which fulfills the same purpose?

The projects references https://os.mbed.com/users/xeon011/code/Ethernet/ as a ‘Dependent’, in which there is also the file you seem need, along with socket functionality.

Okay. So how can I use it in platformio?

Declaring lib_deps = W5500 in the platformio.ini and copying the 4 files from the example code (zip) into the src/ folder should get it running. What’s your current platformio.ini and code?

The same as in the other thread.

By copying the afformentioned Ethernet example in the src/ folder of the project and adding it as an include path in the build_flags (-I src), and renaming close() to wiznet_socket_close() (because of a conflict with existing functions in the mbed-os stack), this compiles.

However, looking at the project at whole, that seems like the wrong way to integrate it. This library is extremely old and doesn’t integrate into mbed-os’ unified Ethernet stack interface.

Therefore you should use the latest https://github.com/WIZnet-MbedEthernet/wiznet-eth-driver/ driver as presented on WIZNet’s main page (https://os.mbed.com/teams/WIZnet/).

Also you’re using https://github.com/oopsmonk/iota.c.git#pio_esp32 and not the right https://github.com/oopsmonk/iota.c.git#pio_mbed so that won’t properly work.

I opened pull request https://github.com/Citrullin/iota_ethernet_platformio/pull/1 with a compilable example that uses the correct driver, along with other fixes.