Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Arduino source code for KC868-A2]-03 LAN8720_UDP
#2
(03-02-2023, 06:48 AM)KinCony Support Wrote:


trying to compile with arduino ide:

Code:
/tmp/.arduinoIDE-unsaved202567-24315-icayej.r967/sketch_jul7a/sketch_jul7a.ino: In function 'void setup()':
/tmp/.arduinoIDE-unsaved202567-24315-icayej.r967/sketch_jul7a/sketch_jul7a.ino:4:25: error: invalid conversion from 'int' to 'eth_phy_type_t' [-fpermissive]
    4 | #define ETH_ADDR        0
      |                         ^
      |                         |
      |                         int
/tmp/.arduinoIDE-unsaved202567-24315-icayej.r967/sketch_jul7a/sketch_jul7a.ino:25:13: note: in expansion of macro 'ETH_ADDR'
   25 |   ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE); //start with ETH
      |             ^~~~~~~~
In file included from /tmp/.arduinoIDE-unsaved202567-24315-icayej.r967/sketch_jul7a/sketch_jul7a.ino:1:
/home/zital/.arduino15/packages/esp32/hardware/esp32/3.2.1/libraries/Ethernet/src/ETH.h:160:29: note:   initializing argument 1 of 'bool ETHClass::begin(eth_phy_type_t, int32_t, int, int, int, eth_clock_mode_t)'
  160 |   bool begin(eth_phy_type_t type, int32_t phy_addr, int mdc, int mdio, int power, eth_clock_mode_t clk_mode);
      |              ~~~~~~~~~~~~~~~^~~~
exit status 1

Compilation error: invalid conversion from 'int' to 'eth_phy_type_t' [-fpermissive]
Reply


Messages In This Thread
RE: [Arduino source code for KC868-A2]-03 LAN8720_UDP - by zital - 07-07-2025, 05:14 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)