ESP32S3 : How to include a Driver in My Project please ?

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

ESP32S3 : How to include a Driver in My Project please ?

Postby ThomasESP32 » Thu Feb 22, 2024 10:03 am

Good morning,

I am working with an Esp32S3 WROOM Module.
In order to dialog with some particular chips, I had to modify the I2C esp_idf_component driver
in order to add 2 methods. In order to do that, I have directly modified the I2C.C and I2C.H files
that are in the : C:\Espressif\frameworks\esp-idf-v5.0\components\driver
directory.

I fear I might loose this job. Or I fear I might not compile my project if compiling it on another computer (Wchich will not have the two files modified)...
How can I add these 2 files directly in my project so that the I2C can be compiled with them instead of using the I2C "standard" driver which is in the esp-idf-v5.0 directory ? Is it possible to retrieve the I2C modified driver in my project please ?

Best regards,

Thomas TRUILHE

joseMiguel
Posts: 22
Joined: Sun Oct 25, 2020 11:43 pm

Re: ESP32S3 : How to include a Driver in My Project please ?

Postby joseMiguel » Thu Feb 22, 2024 10:46 am

Hello Thomas,

Try
>idf.py create-component <component name>

I do no know exactly if it is the right solution.
You should have new names of the I2C functions or methods.

Best regards

Jose Michel
José Michel

MicroController
Posts: 1707
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: ESP32S3 : How to include a Driver in My Project please ?

Postby MicroController » Thu Feb 22, 2024 11:03 am

You can simply copy the (modified) driver from the IDF into a "components" directory in your project.

https://docs.espressif.com/projects/esp ... -same-name

Who is online

Users browsing this forum: Baidu [Spider], Michael_mhr and 130 guests