Skip to content
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

error: invalid conversion from 'int' to 'emac_rmii_clock_gpio_t' (IDFGH-13352) #14265

Closed
3 tasks done
stkw0 opened this issue Jul 29, 2024 · 2 comments
Closed
3 tasks done
Assignees
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Bug bugs in IDF

Comments

@stkw0
Copy link
Contributor

stkw0 commented Jul 29, 2024

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.3

Operating System used.

Linux

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

What is the expected behavior?

It builds correctly

What is the actual behavior?

/usr/share/esp-idf/components/esp_eth/include/esp_eth_mac_esp.h:205:35: error: invalid conversion from 'int' to 'emac_rmii_clock_gpio_t' [-fpermissive]
205 | #define DEFAULT_RMII_CLK_GPIO CONFIG_ETH_RMII_CLK_IN_GPIO
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
/usr/share/esp-idf/components/esp_eth/include/esp_eth_mac_esp.h:233:31: note: in expansion of macro 'DEFAULT_RMII_CLK_GPIO'
233 | .clock_gpio = DEFAULT_RMII_CLK_GPIO
| ^~~~~~~~~~~~~~~~~~~~~
/home/droman/Develop/Work/Virgo/bsda/shared/common/fw/eth.cpp:139:49: note: in expansion of macro 'ETH_ESP32_EMAC_DEFAULT_CONFIG'
139 | eth_esp32_emac_config_t esp32_emac_config = ETH_ESP32_EMAC_DEFAULT_CONFIG();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/droman/Develop/Work/Virgo/bsda/shared/common/fw/eth.cpp:140:23: warning: 'eth_esp32_emac_config_t::::::smi_mdc_gpio_num' is deprecated: Please use smi_gpio instead [-Wdeprecated-declarations]
140 | esp32_emac_config.smi_mdc_gpio_num = 23;

Steps to reproduce.

Build a small project with the next C++ file:

#include <driver/gpio.h>
#include <driver/spi_master.h>
#include <esp_eth.h>

void app_main(void)
{
    eth_esp32_emac_config_t esp32_emac_config = ETH_ESP32_EMAC_DEFAULT_CONFIG();
}

Build or installation Logs.

No response

More Information.

No response

@stkw0 stkw0 added the Type: Bug bugs in IDF label Jul 29, 2024
@github-actions github-actions bot changed the title error: invalid conversion from 'int' to 'emac_rmii_clock_gpio_t' error: invalid conversion from 'int' to 'emac_rmii_clock_gpio_t' (IDFGH-13352) Jul 29, 2024
@espressif-bot espressif-bot added the Status: Opened Issue is new label Jul 29, 2024
stkw0 added a commit to stkw0/esp-idf that referenced this issue Jul 30, 2024
@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Opened Issue is new labels Sep 4, 2024
@BartVanHofwegen
Copy link

Issue is still present in 5.3.1

@kostaond
Copy link
Collaborator

Issue is still present in 5.3.1

It always be present in 5.3.1 since it didn't make it to this release... However, it's already there in v5.3 branch and it's waiting for next release e9df36a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Bug bugs in IDF
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants