아두이노 IDE (ESP32) 문의 드립니다.
페이지 정보
작성일
2024.07.03 20:23
239 조회
2 댓글
0 추천
본문
https://github.com/ldijkman/WT32-ETH01-LAN-8720-RJ45-/blob/main/WT32-ETH01_pinout.jpg
알리에서 WT32-ETH01 ESP32보드를 구매했습니다.
위의 링크에 있는 보드와 같은 모델입니다.
https://github.com/ldijkman/WT32-ETH01-LAN-8720-RJ45-/blob/main/WT32-ETH01-wired-webserver-dhcp.ino
샘플 소스를 받아서 그대로 컴파일 해도 에러가 뜨네요…
ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE);
위의 소스에서 에러가 발생을 합니다.
ETH.H의 문제인가요? 아님 버젼의 문제일까요?
아두이노 IDE는 2.3.2 입니다.
댓글 2
/ 1 페이지
진짜적님의 댓글의 댓글
@이십센치님에게 답글
note:
initializing argument 1 of 'bool ETHClass::begin(eth_phy_type_t, int32_t, int, int, int, eth_clock_mode_t)'
126 | bool begin(eth_phy_type_t type, int32_t phy_addr, int mdc, int mdio, int power, eth_clock_mode_t clk_mode);
| ~~~~~~~~~~~~~~~^~~~
Compilation error: invalid conversion from 'int' to 'eth_phy_type_t' [-fpermissive]
ETH.h 의 버전이 업그레이드 되거나 달라서 생기는 문제 같습니다. ㅠㅠ
initializing argument 1 of 'bool ETHClass::begin(eth_phy_type_t, int32_t, int, int, int, eth_clock_mode_t)'
126 | bool begin(eth_phy_type_t type, int32_t phy_addr, int mdc, int mdio, int power, eth_clock_mode_t clk_mode);
| ~~~~~~~~~~~~~~~^~~~
Compilation error: invalid conversion from 'int' to 'eth_phy_type_t' [-fpermissive]
ETH.h 의 버전이 업그레이드 되거나 달라서 생기는 문제 같습니다. ㅠㅠ
이십센치님의 댓글