Issue compiling dedic_gpio.c
Posted: Sat Mar 25, 2023 9:07 pm
Hello,
I am currently working on a project which requires me to bit-bang data to an external LED. I have been following Espressif documentation (https://docs.espressif.com/projects/esp ... _gpio.html) on how to use the dedicated GPIO feature to perform bit banging.
Unfortunately, I have run into a issue during compilation where the program has an undefined reference to 'dedic_gpio_new_bundle'. As you may already know, this means the program is not linking the dedic_gpio.c file into the main application. I traced down this file into the CMakeLists.txt located in the "frameworks\esp-idf-v5.0\components\driver" directory. I also noticed that this file is compiled only if CONFIG_SOC_DEDICATED_GPIO_SUPPORTED is set. I have looked at the menuconfig GUI to see if I can find this flag, but I could not find it.
So my question is, what do I have to do to get my program to compile the correct files so I can use the dedicated gpio feature? Do I need to enable CONFIG_SOC_DEDICATED_GPIO_SUPPORTED, and if so, how do I do this?
Thank you in advance! I really appreciate the help.
I am currently working on a project which requires me to bit-bang data to an external LED. I have been following Espressif documentation (https://docs.espressif.com/projects/esp ... _gpio.html) on how to use the dedicated GPIO feature to perform bit banging.
Unfortunately, I have run into a issue during compilation where the program has an undefined reference to 'dedic_gpio_new_bundle'. As you may already know, this means the program is not linking the dedic_gpio.c file into the main application. I traced down this file into the CMakeLists.txt located in the "frameworks\esp-idf-v5.0\components\driver" directory. I also noticed that this file is compiled only if CONFIG_SOC_DEDICATED_GPIO_SUPPORTED is set. I have looked at the menuconfig GUI to see if I can find this flag, but I could not find it.
So my question is, what do I have to do to get my program to compile the correct files so I can use the dedicated gpio feature? Do I need to enable CONFIG_SOC_DEDICATED_GPIO_SUPPORTED, and if so, how do I do this?
Thank you in advance! I really appreciate the help.