Hi,
I would like to add among other new ADC functions in the machine_adc.c. For that, I want to use esp_adc_cal.h include in my esp-idf/components directory.
If I build the Micropython for ESP32 without modifications, everything is OK, it works.
But as soos as I add the line #include "esp_adc_cal.h" in the machine_adc.c file, the build doesn't work. Make command return : fatal error: esp_adc_cal.h: No such file or directory. It's the same with all other files includes in my components directory.
IDF_PATH is well declared.
Is there something else to do for that ?
Many thanks
unable to include .h files from ESP-IDF components directory
Re: unable to include .h files from ESP-IDF components directory
You need to add the additional include dirs -- if you look in ports/esp32/Makefile you can see the big list of -I flags that get created.
Re: unable to include .h files from ESP-IDF components directory
Pefect, it works !
Thank you so much.
Thank you so much.
Re: unable to include .h files from ESP-IDF components directory
Running into the same issue however my makefile has no reference to -I and idf.py doesn't show it as an option and when I try to execute it anyway, I receive:
Thank you
Any insight would be appreciated.Error: No such option: -I
Thank you
Re: unable to include .h files from ESP-IDF components directory
Nevermind I figured it out. I must have flubbed the git checkout back to 4.2 and was working with 5.0 which through all the logic off in main/CMakeLists.txt