So I use the MCUXpresso sdk to get a sample code of freeRTOS sample. I worked on it and it is time to add I2C stack (driver and sample). I noticed in standalone freeRTOS sample, I did not see the I2C driver. To get I2C sample, I have to take different sample code base than freeRTOS, but what I want is both.
How should I go about it?
Solved! Go to Solution.
Hi misterbee
You can add i2c component to a freertos project from SDK components manager.
add it from "Drivers" tab
Hope this helps,
Jun Zhang
Thank you @ZhangJennie
Hi misterbee
You can add i2c component to a freertos project from SDK components manager.
add it from "Drivers" tab
Hope this helps,
Jun Zhang
Thank you @ZhangJennie , that works and would be one feasible option. But this means I have to be limited using MCUXpresso IDE.
My preference is to use GNU tool chain with visual studio code or vim editor. I was hoping there is somekind of config file in which we add and remove component like I2C driver and generate the C/h files respectively to be integrated into the codebase. Are you aware if there is such feature in NXP SDK?
Hi misterbee
No, we don't have such an option for your tools.
You can generate I2C source code with the method I provided. then import it to your project.
Thanks,
Jun Zhang