Skip to content

error when build arduino-esp32 as a esp-idf component #5435

@tientu0001

Description

@tientu0001

i used arduino-esp32 with esp-idf, for use library u8g2 with lcd ssd1306, follow
https://docs.espressif.com/projects/arduino-esp32/en/latest/esp-idf_component.html
but when idf.py build. have problem, i cheked, var "esp_eth_phy_new_ksz8081" link with path lib "C:\esp\esp-idf\components\esp_eth\include\esp_eth.h" so don't have var esp_eth_phy_new_ksz8081. This var should link with "path/project/components\arduino\tools\sdk\esp32\include\esp_eth\include\esp_eth.h", right?
i use esp-idf 4.3, can someone help you? sorry about my english

../components/arduino/libraries/WiFi/src/ETH.cpp:291:23: error: 'esp_eth_phy_new_ksz8081' was not declared in this scope
eth_phy = esp_eth_phy_new_ksz8081(&phy_config);
^~~~~~~~~~~~~~~~~~~~~~~
../components/arduino/libraries/WiFi/src/ETH.cpp:291:23: note: suggested alternative: 'esp_eth_phy_new_ksz8041'
eth_phy = esp_eth_phy_new_ksz8081(&phy_config);
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions