Page 1 of 1

About disable default component in IDF

Posted: Tue Feb 28, 2023 12:05 pm
by XiotSamuel
Hi. If I need to disable default component in IDF (\esp\esp-idf\components\hal\i2c_hal.c) and replace with my own components. Is it possiable to disable the hal at cmake and replace it with my own?

Re: About disable default component in IDF

Posted: Tue Feb 28, 2023 11:47 pm
by MicroController
One quick and easy way is to copy any components you want to modify from the IDF into your project's components directory. While building, project-local components will be given preference over external components of the same name.

Re: About disable default component in IDF

Posted: Wed Mar 01, 2023 2:27 am
by XiotSamuel
yes, you are correct. Just copy whole compoent to the project file will be ok.