Issue in including driver files in project directory in ESP32C3 using ESP-IDE
Posted: Thu Jan 23, 2025 9:04 am
I am trying to include UART driver files in my project folder and for that I have make appropriate changes in CMAKE file. I have added a custom function in "uart.c" file and it needs to be in that particular file only.
Now this works perfectly in ESP-IDF v5.2.2 but when I import the code any try to build it with versions 5.3+ I am having issues of multiple definitions. These are all the functions of "uart.c" files one from the file I have included locally and one from the original component directory of framework.
I am using ESP IDE
[img]FAILED: 4G_Module.elf [/img]
This is my file structure
Project
->driver
-->uart.c
-->uart.h
-->cmake.txt
->main
-->main.c
-->other files
-->cmake.txt
->cmake.txt
From the online reference I read about migration guide the have changed the structure of driver files and have added linking method but I am unclear about it.
Can somebody guide me through this, am I missing something or it is not possible?
Now this works perfectly in ESP-IDF v5.2.2 but when I import the code any try to build it with versions 5.3+ I am having issues of multiple definitions. These are all the functions of "uart.c" files one from the file I have included locally and one from the original component directory of framework.
I am using ESP IDE
[img]FAILED: 4G_Module.elf [/img]
This is my file structure
Project
->driver
-->uart.c
-->uart.h
-->cmake.txt
->main
-->main.c
-->other files
-->cmake.txt
->cmake.txt
From the online reference I read about migration guide the have changed the structure of driver files and have added linking method but I am unclear about it.
Can somebody guide me through this, am I missing something or it is not possible?