How to get I2C code stack from freeRTOS sample code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to get I2C code stack from freeRTOS sample code

ソリューションへジャンプ
2,157件の閲覧回数
misterbee
Contributor II

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? 

タグ(1)
0 件の賞賛
返信
1 解決策
2,151件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi misterbee 

You can add i2c component to a freertos project from SDK components manager.

ZhangJennie_1-1652242149847.png

 

add it from "Drivers" tab

ZhangJennie_0-1652242114861.png

 

Hope this helps,

Jun Zhang

 

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
2,121件の閲覧回数
misterbee
Contributor II

Thank you @ZhangJennie 

0 件の賞賛
返信
2,152件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi misterbee 

You can add i2c component to a freertos project from SDK components manager.

ZhangJennie_1-1652242149847.png

 

add it from "Drivers" tab

ZhangJennie_0-1652242114861.png

 

Hope this helps,

Jun Zhang

 

0 件の賞賛
返信
2,138件の閲覧回数
misterbee
Contributor II

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?

0 件の賞賛
返信
2,130件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信