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

Undeclared defines while building native (DR_REG_EMAC_BASE) #77

Closed
teamplayer3 opened this issue Mar 11, 2022 · 1 comment
Closed

Undeclared defines while building native (DR_REG_EMAC_BASE) #77

teamplayer3 opened this issue Mar 11, 2022 · 1 comment

Comments

@teamplayer3
Copy link
Contributor

teamplayer3 commented Mar 11, 2022

I try to build the crate for the esp32c3 with native feature #10 enabled and get the following error:

FAILED: esp-idf/esp_eth/CMakeFiles/__idf_esp_eth.dir/src/esp_eth_mac_openeth.c.obj
In file included from /root/.espressif/esp-idf-release/v4.4/components/esp_eth/src/esp_eth_mac_openeth.c:36:
  /root/.espressif/esp-idf-release/v4.4/components/esp_eth/src/openeth.h: In function 'openeth_tx_desc':
  /root/.espressif/esp-idf-release/v4.4/components/esp_eth/src/openeth.h:40:37: error: 'DR_REG_EMAC_BASE' undeclared (first use in this function); did you mean 'DR_REG_HMAC_BASE'?
   #define OPENETH_BASE                DR_REG_EMAC_BASE
...

I use the version release/v4.4 and have CONFIG_ETH_USE_OPENETH=y enabled.

It could be a wrong configuration, so I tried to use the cargo-idf tool. But it depends on the same build, so it fails with the same error.

I recognized the macro is defined in soc/esp32/../reg_base.h. But this header is not be included when building for the esp32c3 in my configuration.

@teamplayer3 teamplayer3 changed the title Undeclared macros while building native (DR_REG_EMAC_BASE) Undeclared defines while building native (DR_REG_EMAC_BASE) Mar 11, 2022
@ivmarkov
Copy link
Collaborator

CONFIG_ETH_USE_OPENETH=y only works for the Xtensa esp32 chip & target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants