-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ETH.cpp: Compilation error in release/3.1.x branch (CONFIG_ETH_RMII_CLK_IN_GPIO) #10440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
addendum: But apprerently, without these lines, compilation fails with |
@hurricanefrog - This is the default sdkconfig settings used in Aduino Core:
|
While this will probably solve compiling, I am not sure if this will help me in practice. My hardware is the way it is. As documented in https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/network/esp_eth.html , option c is used. |
I am not sure, maybe something like this would solve the problem for all possible hardware configs? #undef DEFAULT_RMII_CLK_GPIO
#if defined(CONFIG_ETH_RMII_CLK_IN_GPIO)
#define DEFAULT_RMII_CLK_GPIO (emac_rmii_clock_gpio_t)CONFIG_ETH_RMII_CLK_IN_GPIO
#endif
#if defined(CONFIG_ETH_RMII_CLK_OUT_GPIO)
#define DEFAULT_RMII_CLK_GPIO (emac_rmii_clock_gpio_t)CONFIG_ETH_RMII_CLK_OUT_GPIO
#endif |
@hurricanefrog |
Ah, I should probably elaborate my problem: I am using arduino-esp32 as git submodule. Since the firmware is built in a CI/CD server, I would like to avoid "local modifications" as much as possible, i.e. use the submodule/component as-it-is. For the time being, I have a patch file (with the code I posted above) which I apply with I am not using the ETH class in my code anyway, but I need a clean compile. edit: But yeah, setting this to 0 works just as well then :) |
It's already merged in git (release/v3/1/x branch) and will be part of next 3.1 release: 6dfd958 |
Board
ESP32 based custom board (doesn't matter)
Device Description
Doesn't matter
Hardware Configuration
Doesn't matter
Version
latest development Release Candidate (RC-X)
IDE Name
VScode
Operating System
Windows 11, Linux
Flash frequency
Doesn't matter
PSRAM enabled
no
Upload speed
Doesn't matter
Description
I am using arduino as a component in an ESP-IDF project, included as a submodule. Both the RC tag and the currect branch
release/3.1.x
suffer from the following problem.ESP-IDF is v5.3.1.
With this configuration, compilation fails with
This is because my
sdkconfig
looks like this:So the value for
CONFIG_ETH_RMII_CLK_IN_GPIO
is not there, and can not be due to the Kconfig.Master branch compiles fine, because it doesn't undefine-then-redefine the value for
DEFAULT_RMII_CLK_GPIO
:The value
DEFAULT_RMII_CLK_GPIO
would be the correct one for my project, becauseesp-idf\components\esp_eth\include\esp_eth_mac_esp.h
defines it correctly.The lines were introduced in e1673e4.
Sketch
Doesn't matter, compilation fails as soon as arduino is used as a component.
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: