-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Using ulp_riscv_i2c.h and ulp_riscv_gpio.h in the same file leads to enumerator redeclarations of GPIO_NUM_* (IDFGH-14439) #15219
Comments
IIRC this was logged and fixed somewhat recently. You might need to refresh to the tip of the release-5.3 branch as it may not be available in that version of a release just yet |
Hello @Mychaylo-evox, thanks for pointing this one out! EDIT: The backport had been created. It will be available on 5.3 with the next sync. |
Thank you, can I know when it will be available for update? Thank you |
I will let you know when the fix will be available. |
Yes, I am using the extention. |
You can try using the setup wizard express and select Alternatively you can try to run the
These steps will only update current ESP-IDF itself and not ESP-IDF tools or ESP-IDF python Virtual environment packages. If you need to update those too, you can try using the Express install with |
Answers checklist.
IDF version.
v5.3.2
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
What is the expected behavior?
It should compile the project.
What is the actual behavior?
When compiling, IDE gives an error stating that GPIO_NUM_* is being redeclared, below are the libraries that are being mentioned:
v5.3.2/esp-idf/components/ulp/ulp_riscv/ulp_core/include/ulp_riscv_gpio.h
v5.3.2/esp-idf/components/soc/esp32s3/include/soc/gpio_num.h
Steps to reproduce.
Adding the libraries "ulp_riscv_gpio.h" and "ulp_riscv_i2c.h" in the main.c that is to be run in the risc-v coprocessor and (trying to) compiling it
Build or installation Logs.
More Information.
After looking around, I found out that "ulp_riscv_gpio.h" declares GPIO_NUM_*, while "ulp_riscv_i2c.h" includes "hal/gpio_types.h" which also include "soc/gpio_num.h" which also declares GPIO_NUM_*, creating the conflict.
The text was updated successfully, but these errors were encountered: