Replies: 6 comments
-
@technyon It is an Arduino as an IDF component project? I don't see enabling the DM9051 driver in sdkconfig. Have you made changes to REMOVE this lib https://github.com/technyon/nuki_hub/tree/master/lib/Ethernet It conflicts with the Arduino core 3.0.x!! By using pioarduino you can remove all changes to get WifiClientSecure working. This is only needed since it is removed by design in my Tasmota framework. WifiClientSecure is there in the |
Beta Was this translation helpful? Give feedback.
-
Why are you adding an entry for an IDF framework here? There is an actual version included in the platform.
|
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for giving plenty of input :). Interestingly I've missed pioarduino so far, I'll have a look into it. Yes Arduino as an IDF component, you have to switch to the DM9051 branch, there "-DCONFIG_ETH_SPI_ETHERNET_DM9051" is added. I think some things aren't setup perfectly yet because initially the project was using this cmake toolchain: https://github.com/a9183756-gh/Arduino-CMake-Toolchain I've just copied a lot of required libraries into my project, you're right they could now just be added as a dependency. The Ethernet library is still there to support the W5500 chip but, but as far as I've seen this should now be directly supported by ETH.h. |
Beta Was this translation helpful? Give feedback.
-
What happens if you add to sdkconfig additionaly this settings?
|
Beta Was this translation helpful? Give feedback.
-
It builds successfully with the following added in sdkconfig.defaults:
and removing the following from platformio.ini:
|
Beta Was this translation helpful? Give feedback.
-
That indeed did the trick, thank you |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm trying to add support for the DM9051 ethernet chip to my project. Everything compiles, but then I get a linker error (see below). I've enabled "CONFIG_ETH_SPI_ETHERNET_DM9051", the missing symbols in questions are esp_eth_mac_new_dm9051 and esp_eth_phy_new_dm9051. I'm not sure why the linker is missing these symbols, where are they supposed to come from?
The linker error only occurs when I call
ETH.begin(_type, _phy_addr, _cs, _irq, _rst, *_spi, _spi_freq_mhz);
LAN8720 on the other hand works just fine.
The project is this, branch DM9051:
https://github.com/technyon/nuki_hub
Beta Was this translation helpful? Give feedback.
All reactions